I think I asked this on the forums just before the crash, it's just too
bad that the best Jboss resource is down for the moment..

Anyway, I'm having some classpath problems. I packaged my app properly
(made an ear file, previously I used to deploy my beans seperately and
have webapps under the tomcat/webapps dir, with most of my classes in
the system classpath), which is obiously a cleaner solution. 

The only problem I'm facing now is getting Tomcat (Catalina or 3.2.3,
both fail) to find libraries in a web applications WEB-INF/lib
directory. I need to include an utlity class that is used both by my
servlets and beans, and I have tried to stuff it in every possible
place, without success. The servlet always fails with an "class not
found" exception. 

If I include the utility jar file directly in the ear file, and
reference to it from the beans manifest.mf file, the jar file should be
loaded by the parent classloader, right? In this case, the web
application's class loader (child?), should be able to find the class
(this is, if I've understood things correctly). But it just ain't
working. Any ideas what's causing this failure? How about including it
both in the ear file, and in the WEB-INF/lib directory in the war file?
(I've tried this also, without success). Java seems not to like having
the  same classes many times in the classpath...

My setup is either the Jboss-2.4.4_Tomcat-2.3.2 or
Jboss-2.4.4_Tomcat_4.0.1 bundle, same problem on both. I'm also using
Cocoon in the web app, which I managed to get working (I have both
Xerces and Crimson in my system classpath, which is a bit odd as they
both have implementations of the same classes). It works, though.

Thanks for ideas as to what might be causing this problem,

- Anders










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

Reply via email to