I 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!