tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Henderson" <>
Subject RE: Directory Structure
Date Wed, 11 Dec 2002 20:29:11 GMT
For 3+ days I have been trying to get a servlet to run in Tomcat 4.1.12.  It
ran fine in 4.0.  It is the only servlet in webapp package of 6 JSP pages.
The JSP pages work OK, they even use the JSTL. The application is displayed
in a series of HTML frames, with the servlet being the last item to be

If I comment out most of the code in my servlet and comment out the "package
xxx" at the top of the file, it works (no function but is displayed) and it
is pulled out of the java .jar file.  I have tried almost every combination
of <servlet-mapping> in the web.xml file that I can think of.  When I
include the "package mfnettags" at the top of the java source file I have
made subdirectories and copies of it all over the place in the WAR file
	etc ...
in hopes that it would find it.

I have tried to follow every posted suggestion on how to process:

	javax.servlet.ServletException: Cannot allocate servlet instance for path
	java.lang.NoClassDefFoundError: DocViewServlet (wrong name:
	Requested resource ... not available.

The Java servlet name is: DocViewServlet
The Java servlet package is: mfnettags
The web application is: mfnettags

This is driving me bananas.

Any suggestions?

-----Original Message-----
From: Peter []
Sent: Wednesday, December 11, 2002 1:32 PM
Subject: Directory Structure

I have Apache 2.0.4 amd Tomcat 4.1.9 up and running fine.

Can someone tell the best way to set the Tomcat Servlet directory to
/opt/myservlet.Servlet.class ?


The NEW Netscape 7.0 browser is now available. Upgrade now!

Get your own FREE, personal Netscape Mail account today at

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message