facebook

Enterprise Application Project Demo (WAR Missing)

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #234262 Reply

    atassano
    Member

    Dear Sirs:

    I’m following the tutorial Enterprise Application Project – QuickStart.

    Everything is ok about Jboss and ME.

    but when I start Jboss (Ver 4), after the deployment of TradeX project,
    I can read this message

    org.jboss.deployment.DeploymentException: url file:/C:/jboss-4.0.3RC1/server/default/deploy/TraderX.ear/TraderXWeb.war could not be opened, does it exist?

    I have unzip the file indicated in the tutorial.

    Is there anything wrong?

    I’m using Eclipse 3.1.0,
    JBoss 4.0. 3 RC1
    JDK 1.5.0.1
    MyEclipse Version: 3.9.210

    Thanks

    Alfred

    #234307 Reply

    Scott Anderson
    Participant

    Alfred,

    I’m confused about what you did based on this:

    I have unzip the file indicated in the tutorial.

    Do you mean that you unzipped the file into your workspace, imported all the projects, built in in the IDE, configured JBoss, and deployed the application using the MyEclipse deployment manager? Or, did you do something else? Can you tell us what steps you followed to get to this? Without any more context we’re just guessing.

    #234313 Reply

    atassano
    Member

    Hi Scott!!!

    I tell you what I did.

    I have installed Jboss(4.0.3.RC1) at c:\jboss-4.0.3RC1 , because the problems to use a folder with a space in the name.
    Then check the JBOSS_HOME (same dir)
    I tested starting / stopping it from the prompt, accessing http://localhome:8080.
    Configure into ME : Enabling Jboss 4, set the home dir, run mode, JDK (same as I used for TomCat), no extra parameters. After I started/stopped Jboss from ME for testing.

    I build a HelloWorld web project and test Jboss deploying (exploted archive) in ME successfully.

    Next:
    1) Unzip the tradex_src.zip into c:\Program Files\eclipse\workspace\
    2) Import TradeXEJB ; TradeXweb, and finally TradeX.
    3) Clean them
    4) In TradeXEJB I choose MyEcplise-Xdoclet (to regenerate the xdoclet.xml)
    5) Deploy TradeX, with Jboss using explote archive.
    6) Start Jboss
    7) In the console, I could read
    01:11:46,453 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss-4.0.3RC1/server/default/deploy/TraderX.ear/
    org.jboss.deployment.DeploymentException: url file:/C:/jboss-4.0.3RC1/server/default/deploy/TraderX.ear/TraderXWeb.war could not be opened, does it exist?
    at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:175)
    at org.jboss.deployment.EARDeployer.init(EARDeployer.java:237)
    at org.jboss.deployment.MainDeployer.init(MainDeployer.java:827)

    Any idea Scott?

    #234328 Reply

    Riyad Kalla
    Member

    What does your project setup in MYEclipse look like? IT sounds like you dumbed everything into your EAR project, even though the EAR project is meant to be a meta-project that maps other modules into it. One of the modules would be your WAR which actually contained the Web Application code…

    #234345 Reply

    atassano
    Member

    Riyad:

    Thanks for your quickly response.

    The disposition of the code is the same as it was indicated in the tutorial. (remember I’m following the tutorial)

    Now, I can generate all the files (included the war file), starting eclipse with the -clean flag.

    So, it is working now. But is it normal start with this flag?

    Thanks

    Alfred

    #234348 Reply

    Riyad Kalla
    Member

    Alfred,
    You should only need to use that flag once, you can remove it after that.

    #234421 Reply

    atassano
    Member

    Thank you very much!!

    Alfred

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Enterprise Application Project Demo (WAR Missing)

You must be logged in to post in the forum log in