facebook

Adding new EJB project to existing EAR project

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #248409 Reply

    zambizzi
    Member

    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!

    #248436 Reply

    Riyad Kalla
    Member

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

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Adding new EJB project to existing EAR project

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