Hi,

I don't know which version you're running, but with JBoss 3.0, I had to 
manually add in an additional classpath element that will look for files 
under /lib/ext directory.  So what I did was add the following line to my 
jboss-service.xml:

   <classpath codebase="lib/ext" archives="*"/>

Thanks,
Chris

At 10:13 AM 06/05/2002, you wrote:
>Hello,
>I use the Data Access Object pattern to separate my EJBs from the data tier.
>The DAO classes are automatically generated from XML files and compiled at
>runtime.
>This task is performed by a class called DAOBuilder. It parses an XML file
>(for example, AccountDAO.xml), generates some java code (i.e.
>AccountDAO.java) and compiles it (AccountDAO.class)
>The generated classes are copied into a spool directory that has been added
>to the JBOSS_CLASSPATH variable at startup.
>
>
>I have this problem: these automatically-generated classes cannot access the
>classes deployed into $JBOSS_HOME/lib/ext/*.jar.
>
>Suppose that AccountDAO.class has a reference to Foo.class, packed into
>$JBOSS_HOME/lib/ext/foopkg.jar, I obtain the following error
>NoClassDefFoundError     Foo
>
>
>I thinks it is a classloader problem.
>DAOBuilder is deployed into $JBOSS_HOME/lib/ext/builder.jar, and to load the
>class I use the Class.forName(<classname>) method into DAOBuilder
>
>
>Have you got any suggestions ?
>
>
>
>Thanks in advance,
>
>
>--
>Ludovico Basili
>Software Engineer
>Allied Telesis K.K.
>Phone +39 02 41411245  - FAX +39 02 41411260 - email
>[EMAIL PROTECTED]
>
>
>
>_______________________________________________________________
>
>Don't miss the 2002 Sprint PCS Application Developer's Conference
>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
>_______________________________________________
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user

PGP at ldap://certserver.pgp.com/


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to