tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cox, Charlie" <c...@cincom.com>
Subject RE: Strange Class Loading problem
Date Wed, 22 Jan 2003 13:31:46 GMT
you can not have any class in /common/lib that needs to access a class in
/WEB-INF/lib because /common is shared between all webapps. When trying to
find a class, the classloader will query up the classloader heirarchy, but
not down. See the classloader doc which explains this in more detail.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

Charlie

> -----Original Message-----
> From: Jeremy Cavagnolo [mailto:jeremy@paradoxcomponents.com]
> Sent: Tuesday, January 21, 2003 3:28 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Strange Class Loading problem
> 
> 
> Hello:
> 
> I am new to the list.  Thanks in advance for any help.  Also, 
> I am using 
> Version 4.1.12.
> 
> I am deploying my web application with app-specific class files and 
> jar files in /WEB-INF/classes and /WEB-INF/lib respectively.  
> When I start 
> tomcat, these messages appear in my log file:
> 
> WebappLoader[/MSQ]: Deploying class repositories to work 
> directory /var/tomcat4/work/Apache/server/MSQ
> WebappLoader[/MSQ]: Deploy class files /WEB-INF/classes to 
> /var/tomcat4/webapps/MSQ/WEB-INF/classes
> WebappLoader[/MSQ]: Deploy JAR /WEB-INF/lib/msq-data.jar to 
> /var/tomcat4/webapps/MSQ/WEB-INF/lib/msq-data.jar
> WebappLoader[/MSQ]: Deploy JAR /WEB-INF/lib/msq-util.jar to 
> /var/tomcat4/webapps/MSQ/WEB-INF/lib/msq-util.jar
> 
> 
> indicating that tomcat is finding my classes and my 
> libraries.  However, 
> Whenever I make a request that relies on these classes, I get a 
> ClassNotFoundException.  
> 
> When I copy the classes and jars to 
> {$CATALINA_HOME}/common/classes and 
> {$CATALINA_HOME}/common/lib, everything works.
> 
> Any insight?
> 
> Thanks,
> 
> Jeremy 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message