You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Srinivas Kurella <Sr...@cosinecom.com> on 2001/02/06 00:39:25 UTC

Unable to load servlet on startup ??

> Hi,
> 
> I am trying to use Tomcat in a standalone mode. I have a working
> application under jrun and am trying to move it to
> Tomcat. I am trying to use my existing directory structure and hence am
> not using the /webapps/  path.
> I have a servlet which i need to load on startup. This servlet reads a
> properties files. I have this information (load-on-startup and param
> name/value) in the web.xml  file in the conf directory. I have added a
> <context> </context> block in the server.xml file.
> I have all the necessary jars and class files in the CLASSPATH.
> 
> However, when tomcat starts , i don't think the servlet is being loaded.
> How do i check if the servlet is loaded ?? What am i doing wrong ??
> I donot see any errors in the log files.
> 
> Any help is appreciated.
> 
> Srini

RE: Unable to load servlet on startup ??

Posted by Stefan Langer <ma...@gmx.de>.
If you are using tomcat 3.2.1 or higher you have to move the web.xml file to the WEB-INF directory of your webapp since tomcat 3.2/.1 ignores the web.xml in the conf directory.

Stefan