tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Shea <s...@gtsdesign.com>
Subject Re: Using Xalan 1.0.1 with Tomcat 3.1 - Classloader problems?
Date Fri, 16 Jun 2000 05:53:29 GMT
Hi James --

On Fri, 16 Jun 2000 JamesW@cardsetc.com wrote:
> Hello,
> I'm attempting to deploy my web application in the usual way, with our own
> classes in WEB-INF/classes and the 3rd party jar files in WEB-INF/classes
                                                                   ^^^^^^^^
Shouldn't that be WEB-INF/lib?  Be great if it was that simple ;)

> (xalan.jar, xerces.jar, bsf.jar and bsfengines.jar).  I start tomcat with a
> blank classpath.  I find that as soon as Xalan attempts to invoke my
> extension element and thus needs to start dynamically loading classes,
> things quickly go awry and IllegalAccessExceptions get thrown.
> 
> If I start Tomcat with a classpath that includes the Xalan, Xerces and BSF
> jars then everything works fine.
> 
> Xalan does not implement its own class loader, rather it would load these
> classes via Class.forName().  Is it possible that Xalan is using the
> default class loader and getting that class path (which in the ideal
> scenario would only have the Jars added by the tomcat startup script) -
> rather than the Tomcat class loader?  Is it possible for a class to
> circumvent Tomcat in this manner, WITHOUT implementing its own class
> loader?
> 
> Regards,
> James W.
> 
> --------------------------------------------------------------------------
> Visit us at Cards Australia 2000 on Stand 31A.  Cards Australia will be
> held at the Melbourne Convention Centre from July 4-6 2000.
> --------------------------------------------------------------------------
> This e-mail is from Cards Etc Pty Ltd (ACN: 069 533 302). It may contain
> privileged and confidential information. It is intended for the named
> recipient(s) only. If you are not an intended recipient, please notify us
> immediately by reply e-mail or by phone on +61 2 9212 7773 & delete this
> e-mail from your system.
> --------------------------------------------------------------------------
> 
> 
> 
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
> 
> 



Mime
View raw message