tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Choe <choep...@mindspring.com>
Subject Re: web page errors
Date Tue, 11 Feb 2003 18:32:55 GMT
yes.  and i can access it directly, but not indirectly.

Peter Choe

At 01:24 PM 2/11/2003, you wrote:
>Just to re-cap...  Here's what your application structure looks like...
>
>/usr/lib/tomcat/conf/server.xml <-- contains <Context path="petersapp" .../>
>/usr/lib/tomcat/webapps/petersapp/ <-- context root folder
>/usr/lib/tomcat/webapps/petersapp/WEB-INF/web.xml <-- contains
><location>/missing.html</location>
>/usr/lib/tomcat/webapps/petersapp/missing.html <-- world readable file for
>404 errors
>
>Can you confirm this?
>
>Can you access the error document directly?
>http://localhost:8080/petersapp/missing.html
>
>But not indirectly?  http://localhost:8080/petersapp/badmedicine
>
>Make sure that everything is spelled correctly and in the correct upper and
>lower case.
>
>Is Apache running between your browser and Tomcat?  (Perhaps try JkMount
>/petersapp/* instead.)
>
>Do you have any servlet filters or Values running?
>
>I am running out of ideas as to what the problem might be.  If none of these
>point to the problem, then I am uncertain as to what it might be.
>
>Does anyone know what characteristics Tomcat 3.2 (what Peter is using) has
>versus 4.1 (what I'm using) with respect to serving errors documents or
>.html documents?  (relevant spec change?  webapp DTD version?  invoker
>servlet problem perhaps?)
>
>Sean Dockery
>sean@sbdconsultants.com
>Certified Java Web Component Developer
>Certified Delphi Programmer
>SBD Consultants
>http://www.sbdconsultants.com
>
>----- Original Message -----
>From: "Peter Choe" <choepete@mindspring.com>
>To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>Sent: Tuesday, February 11, 2003 11:00
>Subject: Re: web page errors
>
>
> > yes.  i have missing.html in the root directory.
> >
> > Peter Choe
> >
> > At 12:28 PM 2/11/2003, you wrote:
> > >Just a quick question...
> > >
> > >Did you actually put an HTML document named missing.html in the root
>folder
> > >of your context?
> > >
> > >Sean Dockery
> > >sean@sbdconsultants.com
> > >Certified Java Web Component Developer
> > >Certified Delphi Programmer
> > >SBD Consultants
> > >http://www.sbdconsultants.com
> > >
> > >----- Original Message -----
> > >From: "Peter Choe" <choepete@mindspring.com>
> > >To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
> > >Sent: Tuesday, February 11, 2003 10:08
> > >Subject: RE: web page errors
> > >
> > >
> > > > i tried putting the error-page in the web.xml and it seem to go crazy
>when
> > > > i tried it.
> > > >
> > > > i put:
> > > >
> > > > ....
> > > > <error-page>
> > > >     <error-code>404</error-code>
> > > >     <location>/missing.html</location>
> > > > </error-page>
> > > > ...
> > > >
> > > > when i try to go to a page that doesn't exist in the directory, tomcat
> > >goes
> > > > in a loop and i can't get out of until i stop tomcat.
> > > >
> > > > is there a know problem with using <error-page> with tomcat3.2?
> > > >
> > > > Peter Choe
> > > >
> > > > At 10:28 AM 2/11/2003, you wrote:
> > > > >Howdy,
> > > > >You typically need to set up one web.xml for each web application.
> > > > >
> > > > >Yoav Shapira
> > > > >Millennium ChemInformatics
> > > > >
> > > > >
> > > > > >-----Original Message-----
> > > > > >From: Peter Choe [mailto:choepete@mindspring.com]
> > > > > >Sent: Tuesday, February 11, 2003 10:19 AM
> > > > > >To: Tomcat Users List; Tomcat Users List
> > > > > >Subject: RE: web page errors
> > > > > >
> > > > > >do i need to set up the web.xml for each application, or is there
a
>way
> > > > >to
> > > > > >have one set up for all the applications in one place?
> > > > > >
> > > > > >Peter Choe
> > > > > >At 10:04 AM 2/11/2003, Shapira, Yoav wrote:
> > > > > >>Howdy,
> > > > > >>
> > > > > >>
> > > > > >> >can tomcat handle errors such as 404 document not found
without
> > > > >apache?
> > > > > >>
> > > > > >>Yes.  Anything that claims it implements the HTTP protocol
has to
> > > > >handle
> > > > > >>these.
> > > > > >>
> > > > > >> >how can i configure tomcat to direct these errors to
an error
>page?
> > > > > >>
> > > > > >>It'll automatically direct these errors to its default error
>pages.
> > > > >Use
> > > > > >>the <error-page> directive in your web.xml to define
custom error
> > > > >pages.
> > > > > >>See the servlet spec chapter 13 for a full explanation of
the
> > > > > >><error-page> element with examples.
> > > > > >>
> > > > > >>Yoav Shapira
> > > > > >>Millennium ChemInformatics
> > > > > >>
> > > > >
> >>---------------------------------------------------------------------
> > > > > >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > > > >>For additional commands, e-mail:
>tomcat-user-help@jakarta.apache.org
> > > > > >
> > > > > >
> > > > > >
> > > > >
> >---------------------------------------------------------------------
> > > > > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > > > >For additional commands, e-mail:
>tomcat-user-help@jakarta.apache.org
> > > > >
> > > > >
> > > > >---------------------------------------------------------------------
> > > > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message