You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ch...@ihonet.com on 2004/03/24 11:41:12 UTC

HTTP Status 404 -- Please Help

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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org