- This topic has 1 reply, 2 voices, and was last updated 18 years, 10 months ago by Riyad Kalla.
-
AuthorPosts
-
zambizziMemberI have a simple EAR project w/ a web, EJB, and EAR project…created from the wizard. I later created a new EJB project and tried to manually make my references so that the EJB would deploy w/ the EAR in JBoss 4.
I also added this line to the application.xml file in the EAR:
... <module> <ejb>MyNewEJB.jar</ejb> </module>
In the web project I made a reference to the new EJB project. I am manually deploying an exploded archive (the EAR project) and I have my projects set to be deployed as dependent JARs.
I get this exception when deploying to JBoss 4.0.4RC1:
org.jboss.deployment.DeploymentException: url file:/C:/Program Files/jboss-4.0.4RC1/server/default/deploy/MyEAR.ear/MyNewEJB.jar could not be opened, does it exist? at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:211) at org.jboss.deployment.EARDeployer.init(EARDeployer.java:250) at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
What am I doing wrong?
Thanks!
Riyad KallaMemberI have a simple EAR project w/ a web, EJB, and EAR project
I don’t think I’m understanding what you mean here by a “EAR Project w/ web, ejb and *EAR project*, you can’t have two ear projects rely on eachother if that IS what you meant.
I later created a new EJB project and tried to manually make my references so that the EJB would deploy w/ the EAR in JBoss 4.
Just right click on the EAR > MyEclipse > Add/Remove Modules, then select your EJB project there.
org.jboss.deployment.DeploymentException: url file:/C:/Program Files/jboss-4.0.4RC1/server/default/deploy/MyEAR.ear/MyNewEJB.jar could not be opened, does it exist?
Does it exist? Can you open this file?
-
AuthorPosts