2 Replies Latest reply on Feb 12, 2003 3:16 PM by russ396

    Classloader Problem?

    llivings

      Hi all,

      I'm using JBoss-2.4.3 and Tomcat 3.2.3

      I have an EAR file with multiple ejb modules, a WAR module and some framework/utility JARs referenced by each module's manifest.mf/classpath. Unfortunately, I have to use embedded cloudscape as my DS. AN SQL exception happens when I try to insert an object into the embedded cloudscape DB. The classes it requires for the insert are in a JAR file in my EAR. All I can figure is the classloader for the container(s) is different than the one used by the process controlling the jdbc connection pool.

      I've tried copying the framework JAR in question into jboss\lib\ext so the embedded cloudscape would have access to the necessary classes. I then get a class not found exception when one of my EJBs tries to use one of the framework classes(found in jboss\lib\ext) to instantiate another class that happens to be in the EAR but not in jboss\lib\ext.

      I was trying to put all my EJB framework/utility classes in the EAR file. Is there any way the embedded cloudscape JDBC driver can see the classes in the classloader of the container?

      Any ideas?