> From: Duncan MacRae [mailto:[email protected]]
> Subject: RE: Tomcat 6.0 and 7.0 Class Loaders
> I have installed the JAXWS JAR files at
> ${catalina.home}/jaxws/*.jar for Tomcat 6.0.20.
Might want to upgrade your Tomcat version - that one's almost two years old.
> This catalina.properties configurations works:
> common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar,
> ${catalina.home}/jaxws/*.jar
> shared.loader=
> This one does not:
> common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar
> shared.loader=${catalina.home}/jaxws/*.jar
What does "does not work" mean? (Exact error, please, including stack trace.)
What classes are trying to reference the JAXWS ones? If it's any handled by
the common loader, they will not be able to see classes from the shared loader.
Just to verify that the shared loader does work properly, I modified
catalina.properties for Tomcat 7.0.5 to use this line:
shared.loader=${catalina.base}/shared,${catalina.base}/shared/*.jar
and moved (not copied) the following files from the examples webapp to it:
WEB-INF/classes/CookieExample.class
WEB-INF/classes/HelloWorldExample.class
WEB-INF/classes/LocalStrings.properties
WEB-INF/lib/jstl.jar
WEB-INF/lib/standard.jar
Cleared out the work and logs directories, started Tomcat, and all examples
worked as expected. The first time, I forgot to move LocalStrings.properties,
and that resulted in a 500 status, with this exception:
java.util.MissingResourceException: Can't find bundle for base name
LocalStrings, locale en_US
since the classes processed by the shared loader can't look downwards for the
messages file.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]