facebook

Exploded deployment problem

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

    rshan
    Member

    Eclipse 3.0.1 Build 200409161125
    MyEclipse 3.8.4 20051171200-3.8.4
    j2sdk1.4.2_07
    JBoss 3.2.6
    Windows XP SP2

    I have an enterprise project with 3 associated web project modules. Each web project uses the same set of jars, so I created a lib dir in the enterprise (ear) project for the jars. I created a META-INF/MANIFEST.mf file for each web project that specifies the class path to each jar, e.g. Class-Path: lib/jar1.jar lib/jar2.jar

    For development, I deploy the project exploded. Whenever I start JBoss, however, deployment of the web modules fails because of ClassNotFoundException — i.e. can’t find classes from jars in the lib directory of the exploded ear. Upon inspection, the ear layout is correct, all necessary jars are in the lib directory and all of the MANIFEST.mf files are correct. Furthermore, when I build a packaged ear with Ant outside of Eclipse/MyEclipse and deploy everything works fine.

    Anyone have any ideas? Is this an Eclipse/MyEclipse issue or JBoss or Java?

    I realize I can work around the problem (for the sake of dev environment) by either copying all jars to $JBOSS_HOME/server/default/lib or to each web modules WEB-INF/lib directory, but that is messy. Would appreciate advice on the correct way to resolve this.

    #226505 Reply

    Riyad Kalla
    Member

    rshan,
    What I would suggest you do is make all these JARs into a User Library, then add that User Library to each Web Project, then adjust your deployment rules to include JARs from User Libraries, that way the JARs should be deployed when you deploy your EAR and all the WEb modules.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Exploded deployment problem

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