The name of the WEB-INF folder must be all capital letters. If you truely did name it Web-Inf Tomcat should ignore the folder.
Steve Fyfe CNI Corporation 394 Elm Street Milford NH 03055 [EMAIL PROTECTED] (603) 673-6600 x242 >>> [EMAIL PROTECTED] Thursday, February 21, 2002 12:15:52 PM >>> No body replied to this yet .. I'd like to explain it again and see if some body can help me. I have a web application running perfectly fine with Tomcat 3.2.1. When I upgrade to 4.0.2 I couldn't run that. After installing 4.0.2, I've added a servlet context for my web application in <CATALINA_HOME>/conf/server.xml and registered my servlet (servlet name: MainController) in WEBAPP/Web-Inf/web.xml. I've also added a url-pattern for it. After all that and restarting tomcat, I've tried to access that servlet by localhost:8080/testwebapp/main - I'm getting a response 404 error. The error is some thing like this: -------------------------------------------------- Apache Tomcat/4.0.2 - HTTP Status 404 - /main type: Status report message: /main description: The requested resource (/main) is not available. --------------------------------------------------- What is that I'm missing? Can some body please help ... -Surya --- Surya Suravarapu <[EMAIL PROTECTED]> wrote: > I've observed that Tomcat is reading conf/web.xml in > version 4.0 unlike 3.2. > > I have a web-inf/web.xml in my web application > folder. > I have my servlet registered there and have a > URL-pattern mapped for it. But when I try to run the > application I am getting 404 File Not Found error. > > Error message: > Apache Tomcat/4.0.2 - HTTP Status 404 - /main > > Can some body please help me. > > Thanks. > -Surya > > __________________________________________________ > Do You Yahoo!? > Yahoo! Sports - Coverage of the 2002 Olympic Games > http://sports.yahoo.com > > -- > To unsubscribe: > <mailto:[EMAIL PROTECTED]> > For additional commands: > <mailto:[EMAIL PROTECTED]> > Troubles with the list: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>