Hello,

I'm running Tomcat 5.0.19, Apache 2.0.49 and mod_jk2-2.0.4, stand alone (NOT
in-process), on a W2K box.  Tomcat is listening on port 8009 (port 8080 is
commented out) and Apache passes all requests of type "/psi/servlet/* to
Tomcat, via the workers2.properties file redirect (see below).  I have a
servlet defined in my web.xml file to load up at Tomcat startup.  I've
verified that the servlet is loading by writing debugging information in the
servlet init() method.  So, the servlet is loading at Tomcat startup but
when Apache redirects the servlet request to Tomcat, I get a 404 served up
by Tomcat.  I know this because the Tomcat version is displayed at the
bottom of the error page.  I'm using a context configuration file to define
my path and docbase (see below).  This same configuration works with another
application that uses Struts, .jsp and servlets.  Any ideas?

Thanks,

Dave

workers2.properties file:

# Set level to ERROR or EMERG for production - check path
[logger.file:0]
level=ERROR
file=C:/Apache2/logs/mod_jk2.log

[logger]
level=ERROR

[config:]
file=c:/Apache2/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

####################################################################
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
port=8009
host=localhost
lb_factor=1
group=lb
disabled=0
debug=0

# Define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
####################################################################

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=${serverRoot}/logs/jk2.shm
size=1000000
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0
logger=logger.file:0

# Announce a "status" worker
[status:status]
info=Status worker. Displays runtime information.

[uri:/jkstatus/*]
group=status:status

[uri:/psi/servlet/*]
info=PSI default context.
group=lb
debug=0


context configuration file:

<!-- Tomcat psi Context -->
<!-- change reloadable="false" when deployed to production -->

<Context path="/psi" docBase="psi" debug="100" privileged="true"
         reloadable="true" crossContext="false">

  <Logger className="org.apache.catalina.logger.FileLogger"
          directory="logs"  prefix="localhost_psi_log." suffix=".txt"
          timestamp="true"/>

</Context>



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

Reply via email to