facebook

EAR Deployment in JBoss 4

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    nagasai
    Member

    Hello, I am having a problem deploying ear in jboss 4. the ear consists of jar for ejb’s and war file.. The jar file has references for some classes of war.. So on deploying the into JBoss, the server is giving an error saying ClassNotFoundException..

    Actually I found one way.. by moving all the data objects from war to jar.. but that is not practical for me as I have to change a lot of then..

    Could any one help on this?

    Thanks

    #269938

    Riyad Kalla
    Member

    Nagasai,
    The way to do this in MyEclipse is to take all your common code, and move it into it’s own Java Project. Then mark that Java project as a dependency of the Web and EJB project, and you will want to add it to the EAR as a dependency. Then double-check your Project Properties > MyEclipse > EAR settings on the EAR project and make sure it’s setup to package your JAR and deploy it into the root of the project.

    After the project is deployed, the EJB and Web projects will be able to see that JAR and use the common classes.

    #270914

    Do you also need to specify the dependent java projects on the Build Path as dependant projects? If I don’t eclipse cannot find classes from the project references.

    #270916

    Riyad Kalla
    Member

    Oh yes absolutely, you need to do both steps. Sorry I should have clarified that.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: EAR Deployment in JBoss 4

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