tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emerson <>
Subject Re: Context Or not?
Date Mon, 21 Jan 2002 16:58:57 GMT
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" "">

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
>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"  "">
>    <!-- General description of the application -->
>    <display-name>NAME</display-name>
>    <description>
>      bla bla
>    </description>
>    <context-param>
>      <param-name>webmaster</param-name>
>      <param-value></param-value>
>      <description>
>            bla bla
>      </description>
>    </context-param>
>    <session-config>
>      <session-timeout>10</session-timeout>    <!-- 10 minutes -->
>    </session-config>
>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
Setor de Desenvolvimento 
Tel: (48) 251-3700 - Ramal 3134

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message