tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Pealing" <apeal...@dcc.govt.nz>
Subject Win2K, ApacheHTTPD2.0.5, Tomcat5 and JK2
Date Wed, 21 Jul 2004 04:56:29 GMT
Hello all

I've got a win2k server running Apache2.0.5, mod_jk2/2.0.2 and tomcat4.1, using the inprocess
worker

I am trying to upgrade to Tomcat 5 and mod_jk2/2.0.4

If I start Tomcat5 manually, then ApacheHTTPd and mod_jk2 succesfully pass the requests through
and jsp and servlets work. However, just starting the ApacheHTTP, tomcat won't start.

I've tried upgrading just the mod_jk2 , and leaving Tomcat at 4.1, with no difference - Tomcat
doesn't appear to attempt to start. 

If I try to upgrade Tomcat to 5 and leave mod_jk2 at mod_jk2/2.0.2, then I get errors in the
error.log regarding classes not found. I've tried various combinations of classpath in the
workers2.properties, including all the jar files in ${CATALINA_HOME}/bin and $(CATALINA_HOME}/server/lib.
The class not found varies depending on the classpath. With all the jar files in the classpath,
there are no errors re class not ofund, but the workers do not start.

Below are my workers2.properties and my jk2.properties.

Anyone made Apache/Tomcat5 communicate using the inprocess worker? Any tips?

Roo

jk2.properties
--------------
apr.jniModeSo=inprocess

workers2.properties
-------------------


[logger]
level=ERROR

[shm]
file=D:/www/logs/jk2.shm
size=1048576
disabled=0

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

#InProcess Channel
[channel.jni:jni]
info=The jni channel - used if Tomcat is started inprocess

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

[vm:]
info=Parameters used to load a JVM in the server process
OPT=-Djava.class.path=C:/Programs/ApacheGroup/tomcat5/server/lib/tomcat-jk2.jar;C:/Programs/ApacheGroup/tomcat5/server/lib/catalina.jar;C:/Programs/ApacheGroup/tomcat5/server/lib/tomcat-jni.jar
OPT=-Dtomcat.home=C:/Programs/ApacheGroup/tomcat5
OPT=-Dcatalina.home=C:/Programs/ApacheGroup/tomcat5
OPT=-Xmx128M
disabled=0

[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
disabled=0
stdout=D:/www/logs/stdout.log
stderr=D:/www/logs/stderr.log

[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
disabled=0

# Uri mapping
[uri:/ROOT/*]
[uri:/jsp-examples/*]
[uri:/servlets-examples/*]
[uri:/balancer/*]
[uri:/tomcat-docs/*]
#worker=ajp13:localhost:8009

# define the worker
[status:status]

# Uri mapping
[uri:/jkstatus/*]
worker=status:status


---------------------------------------------------------------------
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