Classloading issue

2004-12-09 Thread Yu, John
Hi, I'm using Struts plugin, however, I think the issue mostly related to Tomcat ClassLoading. I have a class (in a jar) under WEB-INF/lib, which loads properties from a file located under WEB-INF/classes. ClassLoader cl = getClass().getClassLoader(); InputStream stream =

Re: Classloading issue

2004-12-09 Thread Wade Chandler
Yu, John wrote: Hi, I'm using Struts plugin, however, I think the issue mostly related to Tomcat ClassLoading. I have a class (in a jar) under WEB-INF/lib, which loads properties from a file located under WEB-INF/classes. ClassLoader cl = getClass().getClassLoader(); InputStream

RE: Classloading issue

2004-12-09 Thread Yu, John
could make a big difference. Better stay away from it? Regards, John -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 4:31 PM To: Tomcat Users List Subject: Re: Classloading issue Yu, John wrote: Hi, I'm using Struts plugin

Re: Classloading issue

2004-12-09 Thread Wade Chandler
: when using /, CL could make a big difference. Better stay away from it? Regards, John -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 4:31 PM To: Tomcat Users List Subject: Re: Classloading issue Yu, John wrote: Hi, I'm using Struts plugin

Classloading issue on startup and catalina.properties

2004-04-22 Thread Emmanuil Batsis (Manos)
Hi tribe, I've set up a resource and realm in my server.xml and placed the mysql driver in ~DOMAIN_DOCROOT/WEB-INF/lib. I get an exception on Tomcat startup [1]. It seems that driver must be in shared/lib for my tomcat to start without errors, but due to the shared nature of my tomcat

RE: Classloading issue: common/lib/servlet-api.jar

2004-01-27 Thread Guy Rouillier
to Senor Duffy's post, read the Classloader How-To in the tomcat documentation. Yoav Shapira Millennium ChemInformatics -Original Message- From: Guy Rouillier [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 4:17 PM To: Tomcat Users List Subject: Classloading issue: common

RE: Classloading issue: common/lib/servlet-api.jar

2004-01-27 Thread Shapira, Yoav
Howdy, ClassNotFoundException - class you explicitly asked for is not found NoClassDefFoundError - a class required by your class (through a new, e.g.) was available at compile time but cannot be found now. I know what the errors mean, thanks ;) The most common cause for the latter is version

Re: Classloading issue: common/lib/servlet-api.jar

2004-01-27 Thread Jeanfrancois Arcand
Can you post the entire stack trace? This exception usually occurs when a doPrivileged block is missing (when -security). I will try to reproduce the problem since it is a bug in Tomcat. Do you have the same exception if you don't turn security on? What your servlet is trying to do? Thanks

RE: Classloading issue: common/lib/servlet-api.jar

2004-01-27 Thread Guy Rouillier
Shapira, Yoav wrote: Howdy, ClassNotFoundException - class you explicitly asked for is not found NoClassDefFoundError - a class required by your class (through a new, e.g.) was available at compile time but cannot be found now. I know what the errors mean, thanks ;) The most common cause

RE: Classloading issue: common/lib/servlet-api.jar

2004-01-27 Thread Guy Rouillier
Jeanfrancois Arcand wrote: Can you post the entire stack trace? This exception usually occurs when a doPrivileged block is missing (when -security). I will try to reproduce the problem since it is a bug in Tomcat. Jeanfrancois, I'll include the entire stack trace at the bottom on this

Re: Classloading issue: common/lib/servlet-api.jar

2004-01-27 Thread Jeanfrancois Arcand
Guy Rouillier wrote: Jeanfrancois Arcand wrote: Can you post the entire stack trace? This exception usually occurs when a doPrivileged block is missing (when -security). I will try to reproduce the problem since it is a bug in Tomcat. Jeanfrancois, I'll include the entire stack trace at

Classloading issue: common/lib/servlet-api.jar

2004-01-26 Thread Guy Rouillier
I found this message in the archives from Michael Duffy that is relevant to my question: When Tomcat starts, it assumes the CLASSPATH for your Web app consists of: (1) The rt.jar, of course, (2) All the JARs in TOMCAT_HOME/common/lib, which are visible to all apps, (3) All the JARs in the

RE: Classloading issue: common/lib/servlet-api.jar

2004-01-26 Thread Shapira, Yoav
the Classloader How-To in the tomcat documentation. Yoav Shapira Millennium ChemInformatics -Original Message- From: Guy Rouillier [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 4:17 PM To: Tomcat Users List Subject: Classloading issue: common/lib/servlet-api.jar I found