thx very much, it works now.

I put the <Context path="....... > outside the <Host......>


----- Original Message -----
From: "staf wagemakers" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, March 24, 2004 9:05 PM
Subject: Re: HTTP Status 404 -- Please Help


> The path "" is IMHO correct. The context below should work.
>
> Anyway, to find out why is doesn't work I would first test it with
> the tomcat built-in webserver (on port 8080). If it doesn't work on
> tomcat it will certainly not work on apache.
>
> So if you surf to http://localhost:8080/test.jsp do you still get the
> error 404 page?
>
> If it doesn't work check your server.xml the <Context path="" ... line
> should be within you default <Host name="localhost">. There is a example
> line root context line in the default server.xml (search ROOT), uncomment
> it, update the docbase to your apache's docroot and restart tomcat.
>
> Hope this helps,
>
> --
> Staf Wagemakers
>
> email: staf at patat.org
> homepage: http://staf.patat.org
>
>
> On Wed, Mar 24, 2004 at 11:37:58AM -0000, Adam Fowler wrote:
> > That path should actually have your context path in it. I.e. "/" not ""
> >
> > Adam.
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: 24 March 2004 11:36
> > To: Tomcat Users List
> > Subject: Re: HTTP Status 404 -- Please Help
> >
> >
> > I have add the line <Context path="" docBase="/usr/local/apache2/htdocs"
> > debug="0" reloadable="true" crossContext="true"/> to server.xml, but it
> > still doesn't work, what do I need to do more for set the context.
> >
> > And please give me more information about the second point you state as
I
> > have no idea what is that.
> >
> > ----- Original Message -----
> > From: "Adam Fowler" <[EMAIL PROTECTED]>
> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > Sent: Wednesday, March 24, 2004 7:15 PM
> > Subject: RE: HTTP Status 404 -- Please Help
> >
> >
> > > Aye,
> > >
> > > Just set up a context in Tomcat that points to the same directory as
> > Apache
> > > is using.
> > >
> > > WARNING: Be sure to add a <Directory> Directive in Apache to Deny
anyone
> > > from accessing the WEB-INF directory where your web.xml file (amongst
> > other
> > > things) are kept.
> > >
> > > Adam.
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: 24 March 2004 11:10
> > > To: Tomcat Users List
> > > Subject: Re: HTTP Status 404 -- Please Help
> > >
> > >
> > > thx, I want to install JSP on my Apache document directory, is it
> > possible.
> > > sorry I am newbie in JSP, please explain me more detail about what I
have
> > > done wrong.
> > >
> > > ----- Original Message -----
> > > From: "staf wagemakers" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, March 24, 2004 6:55 PM
> > > Subject: Re: HTTP Status 404 -- Please Help
> > >
> > >
> > > > you've to install the jsp in tomcat not in the apache docroot.
> > > >
> > > >
> > > > On Wed, Mar 24, 2004 at 06:41:18PM +0800, [EMAIL PROTECTED] wrote:
> > > > > I have setup Tomcat 5 with Apache 2, Java SDK 2 and JK2.
> > > > >
> > > > > However, I got the following error when try to run a test.jsp.
> > > > >
> > > > > HTTP Status 404 - /test.jsp
> > > > >
> > > > > type Status report
> > > > >
> > > > > message /test.jsp
> > > > >
> > > > > description The requested resource (/test1.jsp) is not available.
> > > > > Apache Tomcat/5.0.19
> > > > >
> > > > > Here is my setting:
> > > > >
> > > > > *workers2.properties*
> <snip>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to