- This topic has 6 replies, 3 voices, and was last updated 19 years, 4 months ago by atassano.
-
AuthorPosts
-
atassanoMemberDear 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 messageorg.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.210Thanks
Alfred
Scott AndersonParticipantAlfred,
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.
atassanoMemberHi 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?
Riyad KallaMemberWhat 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…
atassanoMemberRiyad:
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
Riyad KallaMemberAlfred,
You should only need to use that flag once, you can remove it after that.
atassanoMemberThank you very much!!
Alfred
-
AuthorPosts