You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sasha Kraljevic <sk...@progress.com> on 2002/09/12 18:06:12 UTC

Setting the inprocess worker

Hi,

First let me apologize if I ask something obvious but
as this is my first appearance on this list please bear with me.
Here is the problem...
I have Apache 2.40/Tomcat 4.1.0/JDK 1.4.0_02/Win2000
I have set the inprocess worker and the Tomcat starts within Apache
process but when I try to access one of the mapped uri's it comes back
with the 'Internal error 500' and the following error in the log file:

[Snip]
12-Sep-2002 14:26:16 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
12-Sep-2002 14:26:23 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
12-Sep-2002 14:26:23 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/94  config=C:\JSE\Tomcat41\conf\jk2.properties
[Thu Sep 12 14:27:37 2002] [notice] service.init() Can't find child in scoreboard 2664
[Thu Sep 12 14:27:37 2002] [error] mod_jk.handler() Error connecting to tomcat 21000
[Thu Sep 12 14:27:42 2002] [error] mod_jk.handler() Error connecting to tomcat 21000
[Snip]

What am I doing wrong?

This is my workers2.properties :
[logger]
level=DEBUG

[config:]
file=$(serverRoot)/conf/workers2.properties
debug=0
debugEnv=0

[shm]
file=C:\progra~1\apache~1\apache2\logs\shm.file
size=1048576

[status:]
info=Status worker, displays runtime information

[vm:]
info=Parameters used to load JVM in the server process
OPT=-Djava.class.path=C:/JSE/Tomcat41/bin/tomcat-jni.jar
OPT=-Dtomcat.home=C:/JSE/Tomcat41
OPT=-Dcatalina.home=C:/JSE/Tomcat41
OPT=-Xmx128M
#disabled=1

[worker.jni:jniCmd1]
info=Command to be executed by the VM. This one will start Tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
#disabled=1

# Inprocess channel
#####[channel.jni]

# define my worker
#####[jni:jni]
#####channel=channel.jni

# Uri mapping
[uri:/examples/*]
worker=worker.jni:jniCmd1

[uri:/admin/*]
worker=worker.jni:jniCmd1

[uri:/manager/*]
worker=worker.jni:jniCmd1

[uri:/tomcat-docs/*]
worker=worker.jni:jniCmd1

[uri:/webdav/*]
worker=worker.jni:jniCmd1

and my jk2.properties:

handler.list=apr,request,channelJni

channelJni.disabled = 0
apr.NativeSo=C:/JSE/Tomcat41/sasha-~1/jkjni.dll
apr.jniModeSo=inprocess

TIA,
Sasha

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>