Ok, I tried the mod_jk2.dll with Apache 2.0.48 and Tomcat 4.1.0 - everything
loaded without error messages.  However, my JSPs started misbehaving.  Looks
as though it can't understand JSTL...  I then tried with Tomcat 5.0.16 and
got the following errors in the Apache2\logs\error.log

[Sat Jan 24 09:56:26 2004] [notice] config.update(): done logger
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done config:
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done uriMap:
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done shm
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done workerEnv:
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done lb:lb
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done channel.jni:jni
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done
worker.jni:onStartup
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done
worker.jni:onShutdown
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done vm:
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done
uri:/servlets-examples/*
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done
uri:/jsp-examples/*
[Sat Jan 24 09:56:26 2004] [notice] config.update(): done uri:/tomcat-docs/*
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done uri:/jetspeed/*
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done status:
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done uri:/jkstatus/*
[Sat Jan 24 09:56:27 2004] [notice] Parent: Created child process 1924
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done logger
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done config:
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done uriMap:
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done shm
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done workerEnv:
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done lb:lb
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done channel.jni:jni
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done
worker.jni:onStartup
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done
worker.jni:onShutdown
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done vm:
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done
uri:/servlets-examples/*
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done
uri:/jsp-examples/*
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done uri:/tomcat-docs/*
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done uri:/jetspeed/*
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done status:
[Sat Jan 24 09:56:27 2004] [notice] config.update(): done uri:/jkstatus/*
[Sat Jan 24 09:56:27 2004] [notice] Child 1924: Child process is running
[Sat Jan 24 09:56:27 2004] [notice] jk2_init() Setting scoreboard slot 0 for
child 1924
[Sat Jan 24 09:56:27 2004] [notice] vm.init(): Jni lib: C:\Program
Files\JavaSoft\JRE\1.3.1_03\bin\hotspot\jvm.dll
[Sat Jan 24 09:56:27 2004] [notice] vm.open2() done
[Sat Jan 24 09:56:27 2004] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
security properties not found. using defaults.
[Sat Jan 24 09:56:27 2004] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Sat Jan 24 09:56:27 2004] [error] Can't find class
org/apache/jk/apr/AprImpl
java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[Sat Jan 24 09:56:27 2004] [notice] vm.detach() ok
[Sat Jan 24 09:56:27 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onStartup
[Sat Jan 24 09:56:27 2004] [notice] jni.validate() class=
org/apache/jk/apr/TomcatStarter
[Sat Jan 24 09:56:27 2004] [notice] Loaded org/apache/jk/apr/TomcatStarter
[Sat Jan 24 09:56:27 2004] [error] Can't find class
org/apache/jk/apr/AprImpl
java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[Sat Jan 24 09:56:27 2004] [notice] vm.detach() ok
[Sat Jan 24 09:56:27 2004] [error] workerEnv.initWorkers() init failed for
worker.jni:onShutdown
[Sat Jan 24 09:56:28 2004] [notice] uriMap: creating context
*/servlets-examples
[Sat Jan 24 09:56:28 2004] [notice] uriMap: creating context */jsp-examples
[Sat Jan 24 09:56:28 2004] [notice] uriMap: creating context */tomcat-docs
[Sat Jan 24 09:56:28 2004] [notice] uriMap: creating context */jetspeed
[Sat Jan 24 09:56:28 2004] [notice] workerEnv.init() ok
C:/Apache2/conf/workers2.properties
[Sat Jan 24 09:56:28 2004] [notice] mod_jk child 0 initialized
[Sat Jan 24 09:56:28 2004] [notice] Child 1924: Acquired the start mutex.
[Sat Jan 24 09:56:28 2004] [notice] Child 1924: Starting 250 worker threads.

And I get http 404 "page cannot be found" errors.

All environment variables are set correctly.

-----Original Message-----
From: Phil Adams [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 8:17 AM
To: Tomcat Users List
Subject: Re: running tomcat5 in-process


Here is where I am so far.
I finally got past all of the errors with Apache by compiling my own
mod_jk2.dll.
I also compiled the jkjni.dll for the apr.NativeSo but this created even
more errors.
so I have it currently commented out of jk2.properties.

I also found that I needed an 'apache2_home' as well as 'apache_home' in my
environment vars.  also, make sure you have 'catalina_home', 'tomcat_home'
and 'java_home'.

As you can read from my original post I am searching for the jni connector
for tomcat5.
I believe this is the missing key to the puzzle.

------------------
jk2.properties
------------------
shm.file=c:/Apache2/logs/jk2.shm
#apr.NativeSo=C:/tomcat/bin/jkjni.dll
handler.list=apr,request,channelJni
apr.jniModeSo=inprocess
channelJni.disabled = 0

------------------
workers2.properties
------------------
[logger]
level=DEBUG

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

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

[shm]
file=c:/Apache2/logs/jk2.shm
size=1048576
debug=0
disabled=0

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

[lb:lb]
info=Default load balancer.
debug=0

[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
debug=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
# For Tomcat 5 use the 'stard' for startup argument
ARG=stard
stdout=c:/Apache2/logs/stdout.log
stderr=c:/Apache2/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

[vm:]
info=Parameters used to load a JVM in the server process
OPT=-Djava.class.path=c:/Tomcat/server/lib/tomcat-jk2.jar;c:/Tomcat/server/l
ib/tomcat-jni.jar;c:/Tomcat/server/lib/commons-logging.jar;c:/tomcat/common/
lib/jmx.jar;c:/tomcat/bin/bootstrap.jar;c:/Tomcat/server/lib/commons-digeste
r.jar;c:/Tomcat/server/lib/commons-beanutils.jar;c:/Tomcat/server/lib/common
s-modeler.jar;c:/Tomcat/server/lib/tomcat-util.jar;c:/Tomcat/server/lib/tomc
at-coyote.jar;c:/Tomcat/common/lib/commons-collections.jar;c:/Tomcat/common/
lib/naming-common.jar;c:/Tomcat/common/lib/servlet-api.jar;c:/Tomcat/server/
lib/catalina.jar;c:/java2/lib/tools.jar
OPT=-Dtomcat.home=c:/Tomcat
OPT=-Dcatalina.home=c:/Tomcat
OPT=-Dcatalina.base=c:/Tomcat
OPT=-Djava.home=c:/java2
OPT=-Dserverroot=c:/apache2
OPT=-Djava.endorsed.dirs=C:/Tomcat/common/endorsed
OPT=-Djava.io.tmpdir=C:/Tomcat/temp
OPT=-Dstdout=c:/Apache2/logs/stdout.log
OPT=-Dstderr=c:/Apache2/logs/stderr.log
OPT=-Xmx128M

# Map the Tomcat webapps to the Web server uri space
[uri:/servlets-examples/*]
context=/servlets-examples

[uri:/jsp-examples/*]
context=/jsp-examples

[uri:/tomcat-docs/*]
context=/tomcat-docs

[uri:/jetspeed/*]
context=/jetspeed

###
[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

------------------
End of workers2.properties
------------------

_Phil
[EMAIL PROTECTED]
Fort Worth, Texas


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

Reply via email to