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.