tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric J. Pinnell" <e...@iCky.org>
Subject Re: Hooking Tomcat to Apache HTTPD
Date Wed, 30 Jul 2003 15:37:57 GMT
Hi,

Why don't you slim down that file and try something simple first.  Like:

[shm]
file=${serverRoot}/logs/shm.file
size=1048576

# socket channel
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

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

# Uri mapping
[uri:/examples/*]
worker=ajp13:localhost:8009

-e

On Wed, 30 Jul 2003, Julien Martin wrote:

> Hello,
> I am trying to connect Tomcat 5.0 to Apache HTTPD 2.0.47 on a windows 2k platform.
> I configured the workers2.properties file as follows:
>
> **********
> [logger]
> level=DEBUG
> [config:]
> #file=${serverRoot}/conf/workers2.properties
> file=D:/system/Apache Group/Apache2/conf/workers2.properties
> debug=0
> debugEnv=0
> [uriMap:]
> info=Maps the requests. Options: debug
> debug=0
> # Alternate file logger
> #[logger.file:0]
> #level=DEBUG
> #file=${serverRoot}/logs/jk2.log
> [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
> # Default Native Logger (apache2 or win32 )
> # can be overriden to a file logger, useful
> # when tracing win32 related issues
> #logger=logger.file:0
> [lb:lb]
> info=Default load balancer.
> debug=0
> #[lb:lb_1]
> #info=A second load balancer.
> #debug=0
> [channel.socket:localhost:8009]
> info=Ajp13 forwarding over socket
> debug=0
> tomcatId=localhost:8009
> #[channel.socket:localhost:8019]
> #info=A second tomcat instance.
> #debug=0
> #tomcatId=localhost:8019
> #lb_factor=1
> #group=lb
> #group=lb_1
> #disabled=0
> #[channel.un:/opt/33/work/jk2.socket]
> #info=A second channel connecting to localhost:8019 via unix socket
> #tomcatId=localhost:8019
> #lb_factor=1
> #debug=0
> [channel.jni:jni]
> info=The jni channel, used if tomcat is started inprocess
> [status:]
> info=Status worker, displays runtime informations
> [vm:]
> info=Parameters used to load a JVM in the server process
> #JVM=C:\jdk\jre\bin\hotspot\jvm.dll
> OPT=-Djava.class.path=D:/system/Tomcat 5.0/server/lib/tomcat-jni.jar;D:/system/Tomcat
5.0/server/lib//commons-logging.jar
> OPT=-Dtomcat.home=${TOMCAT_HOME}
> OPT=-Dcatalina.home=${TOMCAT_HOME}
> OPT=-Xmx128M
> #OPT=-Djava.compiler=NONE
> 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:/system/Apache Group/Apache2/logs/stdout.log
> stderr=D:/system/Apache Group/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
> disabled=0
> [uri:/jkstatus/*]
> info=Display status information and checks the config file for changes.
> group=status:
> #[uri:127.0.0.1:8003]
> #info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test it
> #alias=myVirtualHost:8003
> #[uri:127.0.0.1:8003/ex]
> #info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. localhost:8019 )
> #context=/ex
> #group=lb_1
> [uri:/examples]
> info=Example webapp in the default context.
> context=/jsp-examples
> debug=0
> #[uri:/examples1/*]
> #info=A second webapp, this time going to the second tomcat only.
> #group=lb_1
> #debug=0
> [uri:/examples/servlets/*]
> info=Prefix mapping
> [uri:/examples/*.jsp]
> info=Extension mapping
> [uri:/examples/*]
> info=Map the whole webapp
> [uri:/examples/servlets/HelloW]
> info=Exampel with debug enabled.
> debug=10
> **********
>
> I get a tomcat style 404 error when I try to access the following url: http://localhost/examples
>
> Here is what I get in the apache error log file:
> **********
> [Wed Jul 30 17:28:29 2003] [notice] Parent: Created child process 748
> [Wed Jul 30 17:28:30 2003] [notice] Child 748: Child process is running
> [Wed Jul 30 17:28:30 2003] [notice] vm.init(): Jni lib: C:\Program Files\Java\j2re1.4.1_03\bin\client\jvm.dll
> [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: -Djava.class.path=D:/system/Tomcat
5.0/server/lib/tomcat-jni.jar;D:/system/Tomcat 5.0/server/lib//commons-logging.jar
> [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: -Dtomcat.home=${TOMCAT_HOME}
> [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: -Dcatalina.home=${TOMCAT_HOME}
> [Wed Jul 30 17:28:30 2003] [notice] vm.openJvm2() Option: -Xmx128M
> [Wed Jul 30 17:28:31 2003] [notice] vm.open2() done
> [Wed Jul 30 17:28:31 2003] [notice] jni.validate() class= org/apache/jk/apr/TomcatStarter
> [Wed Jul 30 17:28:32 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter
> [Wed Jul 30 17:28:32 2003] [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(ClassLoader.java:502)
>  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>  at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
>  at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>  at java.lang.ClassLoader.defineClass0(Native Method)
>  at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
>  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>  at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
>  at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
> [Wed Jul 30 17:28:32 2003] [notice] vm.detach() ok
> [Wed Jul 30 17:28:32 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup
> [Wed Jul 30 17:28:32 2003] [notice] jni.validate() class= org/apache/jk/apr/TomcatStarter
> [Wed Jul 30 17:28:32 2003] [notice] Loaded org/apache/jk/apr/TomcatStarter
> [Wed Jul 30 17:28:32 2003] [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(ClassLoader.java:502)
>  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>  at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
>  at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>  at java.lang.ClassLoader.defineClass0(Native Method)
>  at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
>  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>  at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
>  at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
> [Wed Jul 30 17:28:32 2003] [notice] vm.detach() ok
> [Wed Jul 30 17:28:32 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown
> [Wed Jul 30 17:28:32 2003] [notice] uriMap: creating context */jsp-examples
> [Wed Jul 30 17:28:32 2003] [notice] workerEnv.init() ok D:/system/Apache Group/Apache2/conf/workers2.properties
> [Wed Jul 30 17:28:32 2003] [notice] mod_jk child init 1 -1
> [Wed Jul 30 17:28:32 2003] [notice] Child 748: Acquired the start mutex.
> [Wed Jul 30 17:28:32 2003] [notice] Child 748: Starting 250 worker threads.
> [Wed Jul 30 17:28:47 2003] [notice] service.init() Can't find child in scoreboard 748
> **********
>
> Can anyone help?
>
> Thanks in advance,
>
> Julien.

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