[jboss-user] [Installation, Configuration & DEPLOYMENT] - NoClassDefFoundError and ClassNotFoundException errors durin

naguilar do-not-reply at jboss.com
Tue Aug 19 12:31:34 EDT 2008


I have an application that I'm trying to deploy to JBossAS 4.2.3, but can't because I keep getting both java.lang.NoClassDefFoundError and java.lang.ClassNotFoundException.  Please note that this application was previously deployed on JBoss 3.2.8 without any problems.

My application is organized as follows:

The EAR file contains the EJB's and some utility classes that are packaged in a jar file (i.e. utility.jar) under the \lib folder.

My WAR file is being deployed outside of the EAR file, but it references some of the utility classes found in the utility.jar file that is packaged in the EAR and it does not contain the utility.jar in its WEB-INF\lib folder.

I've read the JBoss Wiki on the ClassLoaderConfiguration and it seems that JBoss 4.2.3 has the concept a scoped class loader while JBoss 3.2.8 had a shared class loader.  I looked ear-deployer.xml file and the isolation levels seem to be turned off, which I assume means that its using a shared class loader.  Here is what I have in my JBoss 4.2.3 ear-deployer.xml:


    
        false
       false
       true
   


I also checked all my jboss-service.xml and jboss-web.xml file and I had no references to the  <loader-repository> tags, except in the console-mgr-.sar\META-INF\jboss-service.xml file.

Is there any other way to make my server instance use a shared class loader or is there anything else I can check or change to resolve this?

Any help is greatly appreciated.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171321#4171321

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171321



More information about the jboss-user mailing list