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 =
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
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
: 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
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
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
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
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
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
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
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
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
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
13 matches
Mail list logo