error-page 503 in web.xml not working in tomcat 5.5.9

2005-10-06 Thread Archana Mathur
Hi,I am using tomcat 5.5.9. I have set up global error pages for 404 and 503 in web.xml file under tomcat home dir/conf folder. Example - error-page error-code404/error-code location/systemDown.html/location /error-page error-page error-code503/error-code location/systemDown.html/location

RE: web.xml not working

2001-06-27 Thread Stefan Neumann
give that one a try: url-pattern/story/*/url-pattern using SERVERNAME/sampleapp/story -Original Message- From: Erin Lester [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 26. Juni 2001 16:25 To: [EMAIL PROTECTED] Subject: web.xml not working I have created a web application as per

web.xml not working

2001-06-26 Thread Erin Lester
I have created a web application as per the Servlet API specs and deployed it into the webapps directory of Tomcat in a directory called 'sampleapp.' The only way that I am able to access the webapp's servlet (which is in sampleapp/WEB-INF/classes) is by the url

Re: web.xml not working

2001-06-26 Thread Charles Baker
Here is a servlet definition from my web.xml file: servlet servlet-name Login /servlet-name servlet-class com.beeslender.servlets.LoginServlet /servlet-class servlet-mapping servlet-name Login

Re: web.xml not working

2001-06-26 Thread Erin Lester
Thanks for the suggestion, but I don't think that's it. According to the Java Servlet Spec. v2.2 (ch. 13, pg 65), servlet-mapping isn't contained within the servlet element, but is a seperate element. In my original post I said I couldn't have a web.xml file in my application. That was

Re: web.xml not working

2001-06-26 Thread Krishna Muthyala
Eric If you deploy your servlets using a web.xml then you should have your servlets properly packaged. so in your case you need to package your servlets as com.beeslender.servlets.LoginServlet package com.beelender.servlets; at the top of your Login Servlet and then you should map your web.xml

Re: web.xml not working

2001-06-26 Thread Charles Baker
That was my web.xml for Erin to use as an example. Mine works just fine btw. --- Krishna Muthyala [EMAIL PROTECTED] wrote: Eric If you deploy your servlets using a web.xml then you should have your servlets properly packaged. so in your case you need to package your servlets as

Re: web.xml not working

2001-06-26 Thread Charles Baker
Okay, that sample was just what I had modified/copied from the web.xml that was supplied w/ TomCat. --- Erin Lester [EMAIL PROTECTED] wrote: Thanks for the suggestion, but I don't think that's it. According to the Java Servlet Spec. v2.2 (ch. 13, pg 65), servlet-mapping isn't contained