Hi Richard,

Tomcat provides a default web.xml in TOMCAT_HOME/conf which provides some 
default stuff like mime-types, directory index filenames and other 
stuff.  However, every webapp *must* have its own web.xml.  creating a 
WEB-INF/web.xml under TOMCAT_HOME will do nothing.  Tomcat will not see 
it.  It is of no use.  Take a look at the way a context such as the 
"examples" context that comes with Tomcat is set up.

The structure looks like:

mywebapp/
     WEB-INF/
         lib/
         classes/
         web.xml

Your static content such as .html and .jpg files go directly under 
"mywebapp".  You servlets, helper libraries, and web.xml configuration go 
under the WEB-INF directory.

You should get a book that discusses this stuff because this is not 
specific to Tomcat, it is the standard for all servlet containers that 
implement the Servlet specification.  I recommend Java Servlet Programming 
by Jason Hunter, O'Reilly.

Jake



At 03:04 AM 7/16/2002 +0000, you wrote:
>Hi
>
>I am getting the following problem with my tomcat configuration.
>
>2002-07-16 12:47:35 ContextConfig[/~richard]: Missing application web.xml, 
>using defaults only
>2002-07-16 12:47:35 Internal Error: File /WEB-INF/web.xml not found
>
>I realise that I could place a web.xml file in the context for /~richard, 
>but I want to try and make the default web.xml work.
>
>I am wondering if anyone else knows of this problem, I have tried creating 
>CATALINA_HOME/WEB-INF/web.xml (thinking that the file may be missing) but 
>it still reports an error. Does anyone knmow where the default web.xml 
>file should be located?, or why I am having this problem?
>
>Any Help appreciated.
>
>Thanks in advance
>
>
>_________________________________________________________________
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to