RE: NoClassDefFoundError: HttpServlet

2009-02-03 Thread Caldarale, Charles R
> From: Ladislav Gaspar [mailto:ladislav.gas...@it-vision.com]
> Subject: AW: NoClassDefFoundError: HttpServlet
>
> The sample servlets work.

Good - which says the problem is isolated to your webapp, so that narrows the 
focus.

> But what could that be?

It looks like somewhere in your webapp, you're carrying around a second copy of 
HttpServlet.  You'll need to go through all your jars, looking for classes that 
duplicate ones that Tomcat provides.  Also look in the META-INF/MANIFEST.MF 
entries of each jar, to see if there's a Class-Path entry that links to other 
jars it shouldn't.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: NoClassDefFoundError: HttpServlet

2009-02-02 Thread Caldarale, Charles R
> From: Ladislav Gaspar [mailto:ladislav.gas...@it-vision.com]
> Subject: AW: NoClassDefFoundError: HttpServlet
>
> Sorry for the misinformation. The the servlet-api.jar is in
> $catalina_home/lib. The %CLASSPATH% is not adjusted

The symptoms are still identical with those that appear when servlet-api.jar is 
in WEB-INF/lib or otherwise appears in multiple places in a given branch of the 
classloader tree.  Note that the conflicting servlet classes might also be 
hidden inside a jar of a different name, such as j2ee.jar.

Do the sample servlet and JSP apps that come with Tomcat work?  If so, the 
problem is inside your webapp; if not, then there's another copy of the servlet 
classes lurking somewhere visible to Tomcat, perhaps in the endorsed directory.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: NoClassDefFoundError: HttpServlet

2009-01-30 Thread Konstantin Kolinko
2009/1/30 Ladislav Gaspar :
>
>
> As I wrote in the original post
>>(I've cleaned up the classpath, there are no duplicate servlet-api.jar files 
>>around)
>
> The servlet-api.jar is there and it's also in the classpath. (in 
> $catalina_home/lib)
>

I do not understand.  "is there and it's also"  It should be in one
place exactly. And it should NOT be mentioned in any %CLASSPATH%
variable (you should not adjust %CLASSPATH%, as it breaks classloading
hierarchy).

Also, how you are starting Tomcat (service? bat file? from inside an
IDE ?), and at what exact moment (at what step?, what you are doing?)
the message is displayed?


Also, the stacktrace that you cited - is it from the log file?

Can you provide a longer stacktrace? I am wondering where that class
loading is called from.



Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: NoClassDefFoundError: HttpServlet

2009-01-30 Thread André Warnier

Ladislav Gaspar wrote:
[...]

 
What strikes me as very strange is that in the error message:
java.lang.NoClassDefFoundError: HttpServlet 
there is no package name in HttpServlet (that's why the ClassLoader

can't find the Class, I suppose).
 
Has anyone got an idea what could be wrong?
 
No, but to this beginner, that sounds like a pretty basic class to be 
missing.  Must take quite a bit out of the functionality of Tomcat, no ?

;-)

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org