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.
>
> --
> Staf Wagemakers
>
> email: staf at patat.org
> homepage: http://staf.patat.org
>
>
> 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*
>
> --------------------------------------------------------------------------
--
> > --------------------
> > [shm]
> > file=/usr/local/apache2/logs/shm.file
> > size=1048576
> >
> > [workerEnv:]
> > info=Global server options
> > timing=1
> > debug=0
> >
> > # socket channel
> > [channel.socket:localhost:8009]
> > port=8009
> > host=127.0.0.1
> >
> > # worker for the connector
> > [ajp13:localhost:8009]
> > channel=channel.socket:localhost:8009
> >
> > # Uri mapping
> >
> > [uri:/*.jsp]
> > worker=ajp13:localhost:8009
> >
> > [uri:/*.do]
> > worker=ajp13:localhost:8009
> >
> > [uri:/servlet/*]
> > worker=ajp13:localhost:8009
>
> --------------------------------------------------------------------------
--
> > -----
> > And I added the following line to server.xml
> >     <Connector port="8009"
> >                enableLookups="false" redirectPort="8443" debug="0"
> >                protocol="AJP/1.3" />
> > <Context path="" docBase="/usr/local/apache2/htdocs" debug="0"
> > reloadable="true" crossContext="true"/>
>
> --------------------------------------------------------------------------
--
> > ---------------------------------------------------------
> > And Load JK2 module to http.conf
> >
> > LoadModule jk2_module modules/mod_jk2.so
>
> --------------------------------------------------------------------------
--
> > --------------------------------------------------------
> >
> > Then I make a test.jsp to my apache2 htdocs root which is
> > /usr/local/apache2/htdocs, and try to run it on http:/host/test.jsp
> >
> > It returns me the HTTP Status 404.
> >
> > Please help me on that, do I miss something?
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>
>
>


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


_________________________________________________________

This email and any files attached is intended for the addressee only and may contain 
information that is confidential and/or legally privileged. Unauthorised use is 
strictly prohibited and may be unlawful. If you are not the addressee, you should not 
read, copy, disclose or otherwise use this message, including any attachment, except 
for the purpose of delivery to the addressee.

We make every effort to keep our network free from viruses. However, you do need to 
verify this e-mail and any attachments to it to be virus free as we can take no 
responsibility for any computer virus which might be transferred by way of this e-mail.

Scanning of this message and addition of this footer is performed by SurfControl 
E-mail Filter software in conjunction with virus detection software.
________________________________________________________




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

Reply via email to