Tou must describe the servlet class like this :
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <servlet> <servlet-name>cadservlet</servlet-name> <servlet-class>gov.tresc.app.cadServlet</servlet-class> </servlet> <session-config> <session-timeout>30</session-timeout> </session-config> </web-app> giving the entire path of the servlet class At 20:14 20/1/2002 +0100, you wrote: >Hi all. > >Sorry for bringing this old topic back to the surface... >But I really need help here. > >I have my Tomcat4 up and running as Stand-Alone but it doesn't want to deploy my .WAR files. >All of the "Examles" application do work just fine... > >With Tomcat3.3 all works like a charm :) > >>From what I understand reading the manuals AND sufing the web for several days >I must include my web.xml (descriptor) file into the WEB-INF dir in the app. >Well, i'm doing so and i'm also adding my context in the server.xml wich looks like this: > ><!-- My XXX Context --> ><Context path="/XXX" docBase="XXX" debug="0" reloadable="true"/> > >My web.xml (desccriptor) looks like this: > >### ><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> ><web-app> > <!-- General description of the application --> > <display-name>NAME</display-name> > <description> > bla bla > </description> > > <context-param> > <param-name>webmaster</param-name> > <param-value>[EMAIL PROTECTED]</param-value> > <description> > bla bla > </description> > </context-param> > > <session-config> > <session-timeout>10</session-timeout> <!-- 10 minutes --> > </session-config> ></web-app> >### > >Question: >Must I have a context in server.xml AND a descriptor? >When I do have both I get this error message in the logfile: > >### >Error initializing resources: Document base >/usr/local/jakarta-tomcat-4.0.1/webapps/XXX does not exist or is not a readable directory >### > >When I remove the context entry from the server.xml it all works fine !!! > >So my friends, wich is it... both or one of them? > >Many thanx. >Cheers Pablo > > > Emerson Cargnin TRE-SC Setor de Desenvolvimento Tel: (48) 251-3700 - Ramal 3134 -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
