Ok it doesn't like my properties files
jk2.properties
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.
## COMMENTS WILL BE _LOST_
## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
# Set the desired handler list
handler.list=apr,request,channelJni
#
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config is working
shm.file=c:/Apache2/logs/jk2.shm
#size=10485760
# In order to enable jni use any channelJni directive
channelJni.disabled=0
# And one of the following directives:
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
apr.jniModeSo=inprocess
workers2.properties
# Set level to ERROR or EMERG for production - check path
[logger.file:0]
level=DEBUG
file=C:/Apache2/logs/mod_jk2.log
[logger]
level=DEBUG
[config:]
file=c:/Apache2/conf/workers2.properties
debug=100
debugEnv=100
[uriMap:]
info=Maps the requests. Options: debug
debug=100
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=C:/apache2/logs/jk2.shm
size=1000000
debug=100
disabled=0
[workerEnv:]
info=Global server options
timing=1
debug=100
logger=logger.file:0
[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
debug=100
disabled=0
# Define the parameters for the Java Virtual Machine
[vm:]
info=Parameters used to load a JVM in the server process
JVM=C:\j2sdk1.4.1_07\jre\bin\server\jvm.dll
OPT=-Djava.class.path=C:/Tomcat5/bin/bootstrap.jar;C:/tomcat5/server/lib/tomcat-jni.jar;C:/tomcat5/common/lib/jmx.jar;C:/tomcat5/server/lib/commons-modeler.jar
OPT=-Dcatalina.home=C:/tomcat5
OPT=-Dtomcat.home=C:/tomcat5
OPT=-Xmx512M
disabled=0
debug=100
# JNI worker startup handler
[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
stdout=c:/Apache2/logs/stdout.log
stderr=c:/Apache2/logs/stderr.log
debug=100
# JNI worker shutdown handler
[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
debug=100
# define the worker
[status:]
info the status worker
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
[uri:/servlet]
info=Example webapp in the default context.
context=/servlet
debug=100
[uri:/servlet/*]
info=Map the whole webapp
debug=100
----- Original Message -----
From: Tim Stewart
To: Tomcat Users List
Sent: Friday, March 19, 2004 12:40 AM
Subject: Re: J2K in process JNI with Tomcat 5.0.19 and apache 2
Here are my props.
----- Original Message -----
From: Tim Stewart
To: Tomcat Users List
Sent: Friday, March 19, 2004 12:37 AM
Subject: J2K in process JNI with Tomcat 5.0.19 and apache 2
I got the ajp13 to work great with standalone tomcat.
I tried to convert over to in process with JNI.
Tomcat is getting started correctly withing apache and printing out
Mar 19, 2004 12:15:41 AM org.apache.jk.common.ChannelJni init
INFO: JK2: listening on channel.jni:jni
when I try to browse to the path
http://localhost/servlet
I get a 500 error
the following is from my mod_jk2.log
[Fri Mar 19 00:16:06 2004] (debug ) [mod_jk2.c (631)] mod_jk.handler() serving
/servlet/* with 8d7ea0 8d7e38 lb
[Fri Mar 19 00:16:06 2004] (debug ) [mod_jk2.c (641)] mod_jk.handler(): new rpool
8df0a0
[Fri Mar 19 00:16:06 2004] (debug ) [jk_env.c (248)] env.createBean2(): Create
[endpoint] (null)
[Fri Mar 19 00:16:06 2004] (debug ) [jk_env.c (383)] env.getByName(): Get by name
workerEnv 870ff8
[Fri Mar 19 00:16:06 2004] (debug ) [jk_env.c (312)] env.createBean2(): register
endpoint:12 7b55240
[Fri Mar 19 00:16:06 2004] ( info ) [jk_shm.c (478)] shm.createSlot() Create 1
0xa00000 0xa02000
[Fri Mar 19 00:16:06 2004] ( info ) [jk_endpoint.c (95)] workerEnv.init() create
slot epStat.0
[Fri Mar 19 00:16:06 2004] (debug ) [jk_endpoint.c (106)] SHM stats 0 a02050
a02050 12 endpoint:12 childId=0
[Fri Mar 19 00:16:06 2004] (debug ) [jk_worker_ajp13.c (634)]
ajp13.getEndpoint(): Created endpoint ajp13:jni endpoint:12
[Fri Mar 19 00:16:06 2004] (debug ) [jk_worker_ajp13.c (563)] ajp13.done() return
to pool ajp13:jni
[Fri Mar 19 00:16:06 2004] (error ) [jk_worker_lb.c (402)] lb.service() worker
failed 120000 for ajp13:jni
[Fri Mar 19 00:16:06 2004] (error ) [jk_worker_lb.c (415)] lb.service()
unrecoverable error...
[Fri Mar 19 00:16:06 2004] ( info ) [jk_vm_default.c (340)] vm.detach() ok
[Fri Mar 19 00:16:06 2004] (debug ) [jk_channel_jni.c (560)]
channelJni.afterRequest() ok
[Fri Mar 19 00:16:06 2004] (error ) [mod_jk2.c (678)] mod_jk.handler() Error
connecting to tomcat 120000
First Question is this supposed to still be using ajp13?
my workers2.properties(attached) has no mention of it.
It appears that I have everything setup correctly. If I bump it back to ajp then
it works.
Suggestions?
Thanks Much,
Tim
----------------------------------------------------------------------------
---------------------------------------------------------------------
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]