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
Shapira, Yoav wrote:
Howdy,
- NoClassDefFoundError is different from
ClassNotFoundException. Make sure you understand the
difference. Then make sure you remove extra copies of the
servlet APIs from the classpath, specifically if you have
j2ee.jar or servlet.jar somewhere.
Yoav, thanks for
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
Howdy,
- NoClassDefFoundError is different from ClassNotFoundException. Make
sure you understand the difference. Then make sure you remove extra
copies of the servlet APIs from the classpath, specifically if you have
j2ee.jar or servlet.jar somewhere.
- In addition to Senor Duffy's post, read
10 matches
Mail list logo