Thanks for responding.

I have the default "web.xml" file in my tomcat/conf folder.  I copied this
into a the WEB-INF folder of a new context, which I successfully added using
the "context" directives of "server.xml".  Things only started going wrong
*after* I copied this file ; the context worked fine otherwise.

I didn't change "web.xml" initially ; I just tried to see if Tomcat accepted
it as a basis for making webapp-specific changes.  I guessed this should be
okay after reading the "web.xml" part of the Tomcat user guide, which stated
that Tomcat's "general" web.xml is a "feature", and that it's okay to
override its parameters.  But apparently, this isn't the case, as overriding
the definition of the JSP and Invoker servlets causes both of these servlets
to be refused (see my second posting "--more info", for details of log
files).

So you can consider that the "web.xml" file for my webapp is the standard
default one.  I subsequently changed it, removing everything except the
session-config bit, and then it worked okay.

-Chris

----- Original Message -----
From: "Dennis Leary" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 3:51 PM
Subject: Re: Basic question about web.xml


> Difficult to say what the problem is but it sounds like something in your
web.xml file. I recommend replying with your web.xml contents in your
message.
>
> >>> chris brown <[EMAIL PROTECTED]> 04/23/01 09:12AM >>>
> I'm trying to create my own web.xml file for use in Tomcat.  I've read the
> doc, but I need help to understand what's going on exactly...
>
> I created a new document folder, and added the context mapping in
> server.xml.  I put a simple HTML file and a simple JSP file in the folder,
> and started up Tomcat.  The JSP compiled fine, and both it and the HTML
file
> displayed as intended in the navigator.
>
> I then copied the standard web.xml file from tomcat/conf into my new
> folder... but after restarting Tomcat, I got "HTTP 404 Not Found" errors
for
> the JSP only (although the JSP *does* appear in the directory listing).
If
> I rename "web.xml" as "_web.xml" (and restart Tomcat), no more problem
(but
> obviously, I can no longer configure the web app!), or if I comment out
all
> the default servlet mappings, it runs fine too.
>
> What is the problem?  As I say, I'm using nothing but copies of the
standard
> files, and none of the possible causes of an HTTP 404 error given in
> Tomcat's documentation correspond to my case.  Incidentally, I'm using
> Tomcat 3.1 on top of JDK1.3 on Windows NT4.
>
> Thanks in advance,
> Chris Brown
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to