RE: Tomcat4-1, Apache2, jk2 setup problem - help!
Tristan, Can you start Tomcat on its own? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tristan [mailto:[EMAIL PROTECTED] Sent: July 17, 2003 12:21 PM To: [EMAIL PROTECTED] Subject: Tomcat4-1, Apache2, jk2 setup problem - help! Hi, I'm trying to install tomcat 4.1 on my win XP machine using Apache 2 and jk2. However, I seem to be encountering some difficulties. The problem is, I can't seem to get tomcat to start as a service when I request a url (e.g. http://localhost/examples), it simply returns. *** The servlet container is temporary unavailable or being upgraded Internal Server Error --snip apache babble-- Apache/2.0.47 (Win32) PHP/4.3.2 mod_jk2/2.0.2 Server at localhost Port 80 *** I noticed that starting Tomcat seems to throw some kind of java error, but it closes the window too quickly for me to repeat exactly what it reports. However, when I comment out the line channelJni.disabled = 0 in my jk2.properties file, I can start tomcat standalone, and access the examples etc through apache. Can anyone tell me why I can not start tomcat as a process through apache? I followed a how-to at: http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html And believe I have made sure I have followed the instructions very closely. Any help is very much appreciated. Cheers, Tristan - 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]
RE: Tomcat4-1, Apache2, jk2 setup problem - help!
Yes, I just have to uncomment the standalone section in server.xml, and I can then access tomcat on http://localhost:8080. However, I really need the two working in unison! Cheers, Tristan -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 16:08 To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Tristan, Can you start Tomcat on its own? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tristan [mailto:[EMAIL PROTECTED] Sent: July 17, 2003 12:21 PM To: [EMAIL PROTECTED] Subject: Tomcat4-1, Apache2, jk2 setup problem - help! Hi, I'm trying to install tomcat 4.1 on my win XP machine using Apache 2 and jk2. However, I seem to be encountering some difficulties. The problem is, I can't seem to get tomcat to start as a service when I request a url (e.g. http://localhost/examples), it simply returns. *** The servlet container is temporary unavailable or being upgraded Internal Server Error --snip apache babble-- Apache/2.0.47 (Win32) PHP/4.3.2 mod_jk2/2.0.2 Server at localhost Port 80 *** I noticed that starting Tomcat seems to throw some kind of java error, but it closes the window too quickly for me to repeat exactly what it reports. However, when I comment out the line channelJni.disabled = 0 in my jk2.properties file, I can start tomcat standalone, and access the examples etc through apache. Can anyone tell me why I can not start tomcat as a process through apache? I followed a how-to at: http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html And believe I have made sure I have followed the instructions very closely. Any help is very much appreciated. Cheers, Tristan - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat4-1, Apache2, jk2 setup problem - help!
Okay, Probably leaving the connector for 8080 un-commented won't hurt anything while testing. The fist thing you want to do is make sure your environment variables are set. You should have: JAVA_HOME CATALINA_HOME APACHE_HOME TOMCAT_HOME Also can you post your jk2.properties and workers2.properties files? And what are the directories for Tomcat, Apache2 and Java? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tricky [mailto:[EMAIL PROTECTED] Sent: July 18, 2003 12:57 PM To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Yes, I just have to uncomment the standalone section in server.xml, and I can then access tomcat on http://localhost:8080. However, I really need the two working in unison! Cheers, Tristan -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 16:08 To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Tristan, Can you start Tomcat on its own? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tristan [mailto:[EMAIL PROTECTED] Sent: July 17, 2003 12:21 PM To: [EMAIL PROTECTED] Subject: Tomcat4-1, Apache2, jk2 setup problem - help! Hi, I'm trying to install tomcat 4.1 on my win XP machine using Apache 2 and jk2. However, I seem to be encountering some difficulties. The problem is, I can't seem to get tomcat to start as a service when I request a url (e.g. http://localhost/examples), it simply returns. *** The servlet container is temporary unavailable or being upgraded Internal Server Error --snip apache babble-- Apache/2.0.47 (Win32) PHP/4.3.2 mod_jk2/2.0.2 Server at localhost Port 80 *** I noticed that starting Tomcat seems to throw some kind of java error, but it closes the window too quickly for me to repeat exactly what it reports. However, when I comment out the line channelJni.disabled = 0 in my jk2.properties file, I can start tomcat standalone, and access the examples etc through apache. Can anyone tell me why I can not start tomcat as a process through apache? I followed a how-to at: http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html And believe I have made sure I have followed the instructions very closely. Any help is very much appreciated. Cheers, Tristan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat4-1, Apache2, jk2 setup problem - help!
Atreya, I've set all the environment variables, and have made the APACHE_HOME addition at your recommendation. My .properties files are appended below. The directories are as follows Apache 2c:\Apache2 Tomact 4.1 c:\tomcat Java 1.4.2 c:\java Thanks for your help! Tristan (jk2.properties and workers2.properties files attached below) --- start jk2.properties --- #Shared memory directive shm.file=c:/Apache2/logs/jk2.shm size=10485760 # Set the desired handler list handler.list=apr,request,channelJni # added to resolve 1st issue in original email apr.NativeSo=c:/Apache2/modules/jkjni.dll # 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 --- end jk2.properties --- --- start workers2.properties --- [shm] file=c:/Apache2/logs/jk2.shm size=10485760 # Define the comunication channel [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [config:] file=c:/Apache2/conf/workers2.properties debug=0 debugEnv=0 # Define the parameters for the Java Virtual Machine [vm:] info=Parameters used to load a JVM in the server process OPT=-Djava.class.path=c:/tomcat/lib OPT=-Dtomcat.home=c:/tomcat OPT=-Dcatalina.home=c:/tomcat OPT=-Xmx128M # 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 # 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 # Uri mapping [uri:/examples] info=Example webapp in the default context. context=/examples [uri:/examples/*] info=Map the whole webapp [status:] info=Status worker, displays runtime information channel=channel.socket:localhost:8009 [uri:/status/*] worker=status:localhost:8009 group=status: --- end workers2.properties --- -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 17:51 To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Okay, Probably leaving the connector for 8080 un-commented won't hurt anything while testing. The fist thing you want to do is make sure your environment variables are set. You should have: JAVA_HOME CATALINA_HOME APACHE_HOME TOMCAT_HOME Also can you post your jk2.properties and workers2.properties files? And what are the directories for Tomcat, Apache2 and Java? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tricky [mailto:[EMAIL PROTECTED] Sent: July 18, 2003 12:57 PM To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Yes, I just have to uncomment the standalone section in server.xml, and I can then access tomcat on http://localhost:8080. However, I really need the two working in unison! Cheers, Tristan -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 16:08 To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Tristan, Can you start Tomcat on its own? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tristan [mailto:[EMAIL PROTECTED] Sent: July 17, 2003 12:21 PM To: [EMAIL PROTECTED] Subject: Tomcat4-1, Apache2, jk2 setup problem - help! Hi, I'm trying to install tomcat 4.1 on my win XP machine using Apache 2 and jk2. However, I seem to be encountering some difficulties. The problem is, I can't seem to get tomcat to start as a service when I request a url (e.g. http://localhost/examples), it simply returns. *** The servlet container is temporary unavailable or being upgraded Internal Server Error --snip apache babble-- Apache/2.0.47 (Win32) PHP/4.3.2 mod_jk2/2.0.2 Server at localhost Port 80 *** I noticed that starting Tomcat seems to throw some kind of java error, but it closes the window too quickly for me to repeat exactly what it reports. However, when I comment out the line channelJni.disabled = 0 in my jk2.properties file, I can start tomcat standalone, and access the examples etc through apache. Can anyone tell me why I can not start tomcat as a process through apache? I followed a how-to at: http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html And believe I have made sure I have followed the instructions very closely. Any help is very much appreciated. Cheers, Tristan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail
RE: Tomcat4-1, Apache2, jk2 setup problem - help!
Alright, Those all look good. But in your jk2.properties file you should put in: handler.list= apr,request,channelJni Next, if you installed the Apache there should be an applet on the taskbar, next to the time. You shouldn't have to start Tomcat separately. Simply click on the applet and choose to start Apache. Wait about a minute for Tomcat to start. Then hit up: http://localhost/examples That should show you a directory. _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tricky [mailto:[EMAIL PROTECTED] Sent: July 18, 2003 2:07 PM To: 'Tomcat Users List' Cc: [EMAIL PROTECTED] Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Atreya, I've set all the environment variables, and have made the APACHE_HOME addition at your recommendation. My .properties files are appended below. The directories are as follows Apache 2c:\Apache2 Tomact 4.1 c:\tomcat Java 1.4.2 c:\java Thanks for your help! Tristan (jk2.properties and workers2.properties files attached below) --- start jk2.properties --- #Shared memory directive shm.file=c:/Apache2/logs/jk2.shm size=10485760 # Set the desired handler list handler.list=apr,request,channelJni # added to resolve 1st issue in original email apr.NativeSo=c:/Apache2/modules/jkjni.dll # 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 --- end jk2.properties --- --- start workers2.properties --- [shm] file=c:/Apache2/logs/jk2.shm size=10485760 # Define the comunication channel [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [config:] file=c:/Apache2/conf/workers2.properties debug=0 debugEnv=0 # Define the parameters for the Java Virtual Machine [vm:] info=Parameters used to load a JVM in the server process OPT=-Djava.class.path=c:/tomcat/lib OPT=-Dtomcat.home=c:/tomcat OPT=-Dcatalina.home=c:/tomcat OPT=-Xmx128M # 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 # 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 # Uri mapping [uri:/examples] info=Example webapp in the default context. context=/examples [uri:/examples/*] info=Map the whole webapp [status:] info=Status worker, displays runtime information channel=channel.socket:localhost:8009 [uri:/status/*] worker=status:localhost:8009 group=status: --- end workers2.properties --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat4-1, Apache2, jk2 setup problem - help!
Still no joy! :( The line 'handler.list= apr,request,channelJni' was definitely in my jk2.properties, but I must have deleted the line return when I emailed it by accident. When I start apache, http://localhost/examples gives me the same Internal Server Error page. I've also noticed the following output in my \Apache2\logs\error.log file: [Fri Jul 18 19:18:29 2003] [notice] Parent: Created child process 3008 [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Child process is running [Fri Jul 18 19:18:29 2003] [error] Can't find class org/apache/jk/apr/TomcatStarter java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter [Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup [Fri Jul 18 19:18:29 2003] [error] Can't find class org/apache/jk/apr/TomcatStarter java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter [Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown [Fri Jul 18 19:18:29 2003] [error] mod_jk child init 1 0 [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Acquired the start mutex. [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Starting 250 worker threads. Thanks for the help, much appreciated, Tristan -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 18:26 To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Alright, Those all look good. But in your jk2.properties file you should put in: handler.list= apr,request,channelJni Next, if you installed the Apache there should be an applet on the taskbar, next to the time. You shouldn't have to start Tomcat separately. Simply click on the applet and choose to start Apache. Wait about a minute for Tomcat to start. Then hit up: http://localhost/examples That should show you a directory. _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tricky [mailto:[EMAIL PROTECTED] Sent: July 18, 2003 2:07 PM To: 'Tomcat Users List' Cc: [EMAIL PROTECTED] Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Atreya, I've set all the environment variables, and have made the APACHE_HOME addition at your recommendation. My .properties files are appended below. The directories are as follows Apache 2c:\Apache2 Tomact 4.1 c:\tomcat Java 1.4.2 c:\java Thanks for your help! Tristan (jk2.properties and workers2.properties files attached below) --- start jk2.properties --- #Shared memory directive shm.file=c:/Apache2/logs/jk2.shm size=10485760 # Set the desired handler list handler.list=apr,request,channelJni # added to resolve 1st issue in original email apr.NativeSo=c:/Apache2/modules/jkjni.dll # 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 --- end jk2.properties --- --- start workers2.properties --- [shm] file=c:/Apache2/logs/jk2.shm size=10485760 # Define the comunication channel [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [config:] file=c:/Apache2/conf/workers2.properties debug=0 debugEnv=0 # Define the parameters for the Java Virtual Machine [vm:] info=Parameters used to load a JVM in the server process OPT=-Djava.class.path=c:/tomcat/lib OPT=-Dtomcat.home=c:/tomcat OPT=-Dcatalina.home=c:/tomcat OPT=-Xmx128M # 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 # 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 # Uri mapping [uri:/examples] info=Example webapp in the default context. context=/examples [uri:/examples/*] info=Map the whole webapp [status:] info=Status worker, displays runtime information channel=channel.socket:localhost:8009 [uri:/status/*] worker=status:localhost:8009 group=status: --- end workers2.properties --- - 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]
RE: Tomcat4-1, Apache2, jk2 setup problem - help!
Tristan, I had a similar problem with ClassNotFoundException. What I had to do was find all the jar files and uncompress them into the lib directory. That was about 10MB worth of Jar files and it took me about 30 mins to do, but that was the only way to get it running. _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tricky [mailto:[EMAIL PROTECTED] Sent: July 18, 2003 3:25 PM To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Still no joy! :( The line 'handler.list= apr,request,channelJni' was definitely in my jk2.properties, but I must have deleted the line return when I emailed it by accident. When I start apache, http://localhost/examples gives me the same Internal Server Error page. I've also noticed the following output in my \Apache2\logs\error.log file: [Fri Jul 18 19:18:29 2003] [notice] Parent: Created child process 3008 [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Child process is running [Fri Jul 18 19:18:29 2003] [error] Can't find class org/apache/jk/apr/TomcatStarter java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter [Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup [Fri Jul 18 19:18:29 2003] [error] Can't find class org/apache/jk/apr/TomcatStarter java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter [Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown [Fri Jul 18 19:18:29 2003] [error] mod_jk child init 1 0 [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Acquired the start mutex. [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Starting 250 worker threads. Thanks for the help, much appreciated, Tristan -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 18:26 To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Alright, Those all look good. But in your jk2.properties file you should put in: handler.list= apr,request,channelJni Next, if you installed the Apache there should be an applet on the taskbar, next to the time. You shouldn't have to start Tomcat separately. Simply click on the applet and choose to start Apache. Wait about a minute for Tomcat to start. Then hit up: http://localhost/examples That should show you a directory. _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tricky [mailto:[EMAIL PROTECTED] Sent: July 18, 2003 2:07 PM To: 'Tomcat Users List' Cc: [EMAIL PROTECTED] Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Atreya, I've set all the environment variables, and have made the APACHE_HOME addition at your recommendation. My .properties files are appended below. The directories are as follows Apache 2c:\Apache2 Tomact 4.1 c:\tomcat Java 1.4.2 c:\java Thanks for your help! Tristan (jk2.properties and workers2.properties files attached below) --- start jk2.properties --- #Shared memory directive shm.file=c:/Apache2/logs/jk2.shm size=10485760 # Set the desired handler list handler.list=apr,request,channelJni # added to resolve 1st issue in original email apr.NativeSo=c:/Apache2/modules/jkjni.dll # 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 --- end jk2.properties --- --- start workers2.properties --- [shm] file=c:/Apache2/logs/jk2.shm size=10485760 # Define the comunication channel [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [config:] file=c:/Apache2/conf/workers2.properties debug=0 debugEnv=0 # Define the parameters for the Java Virtual Machine [vm:] info=Parameters used to load a JVM in the server process OPT=-Djava.class.path=c:/tomcat/lib OPT=-Dtomcat.home=c:/tomcat OPT=-Dcatalina.home=c:/tomcat OPT=-Xmx128M # 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 # 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 # Uri mapping [uri:/examples] info=Example webapp in the default context. context=/examples [uri:/examples/*] info=Map the whole webapp [status:] info=Status worker, displays runtime information channel=channel.socket:localhost:8009 [uri:/status/*] worker=status:localhost:8009 group=status: --- end workers2.properties --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: Tomcat4-1, Apache2, jk2 setup problem - help!
Wait. ClassNotFoundException != NoClassDefFoundError They're completely different. NoClassDefFoundError typically means that there are multiple copies of a JAR file somewhere, or multiple copies of a class file, and the one Tomcat expects is not the one it is finding. Was this a clean install? Have you changed ANYTHING from the default? Moved anything, moved any JAR files, tried to install earlier versions or move an installation from one directory to another? John On Fri, 18 Jul 2003 15:29:45 -0300, Atreya Basu [EMAIL PROTECTED] wrote: Tristan, I had a similar problem with ClassNotFoundException. What I had to do was find all the jar files and uncompress them into the lib directory. That was about 10MB worth of Jar files and it took me about 30 mins to do, but that was the only way to get it running. _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tricky [mailto:[EMAIL PROTECTED] Sent: July 18, 2003 3:25 PM To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Still no joy! :( The line 'handler.list= apr,request,channelJni' was definitely in my jk2.properties, but I must have deleted the line return when I emailed it by accident. When I start apache, http://localhost/examples gives me the same Internal Server Error page. I've also noticed the following output in my \Apache2\logs\error.log file: [Fri Jul 18 19:18:29 2003] [notice] Parent: Created child process 3008 [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Child process is running [Fri Jul 18 19:18:29 2003] [error] Can't find class org/apache/jk/apr/TomcatStarter java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter [Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup [Fri Jul 18 19:18:29 2003] [error] Can't find class org/apache/jk/apr/TomcatStarter java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter [Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown [Fri Jul 18 19:18:29 2003] [error] mod_jk child init 1 0 [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Acquired the start mutex. [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Starting 250 worker threads. Thanks for the help, much appreciated, Tristan -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 18:26 To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Alright, Those all look good. But in your jk2.properties file you should put in: handler.list= apr,request,channelJni Next, if you installed the Apache there should be an applet on the taskbar, next to the time. You shouldn't have to start Tomcat separately. Simply click on the applet and choose to start Apache. Wait about a minute for Tomcat to start. Then hit up: http://localhost/examples That should show you a directory. _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tricky [mailto:[EMAIL PROTECTED] Sent: July 18, 2003 2:07 PM To: 'Tomcat Users List' Cc: [EMAIL PROTECTED] Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Atreya, I've set all the environment variables, and have made the APACHE_HOME addition at your recommendation. My .properties files are appended below. The directories are as follows Apache 2c:\Apache2 Tomact 4.1 c:\tomcat Java 1.4.2 c:\java Thanks for your help! Tristan (jk2.properties and workers2.properties files attached below) --- start jk2.properties --- #Shared memory directive shm.file=c:/Apache2/logs/jk2.shm size=10485760 # Set the desired handler list handler.list=apr,request,channelJni # added to resolve 1st issue in original email apr.NativeSo=c:/Apache2/modules/jkjni.dll # 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 --- end jk2.properties --- --- start workers2.properties --- [shm] file=c:/Apache2/logs/jk2.shm size=10485760 # Define the comunication channel [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [config:] file=c:/Apache2/conf/workers2.properties debug=0 debugEnv=0 # Define the parameters for the Java Virtual Machine [vm:] info=Parameters used to load a JVM in the server process OPT=-Djava.class.path=c:/tomcat/lib OPT=-Dtomcat.home=c:/tomcat OPT=-Dcatalina.home=c:/tomcat OPT=-Xmx128M # 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 # 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
RE: Tomcat4-1, Apache2, jk2 setup problem - help!
OK, I think I've finally managed to fix it. What I did was change the part of workers2.properties that read: --- workers2.properties snip --- # Define the parameters for the Java Virtual Machine [vm:] info=Parameters used to load a JVM in the server process OPT=-Djava.class.path=c:/tomcat/lib OPT=-Dtomcat.home=c:/tomcat OPT=-Dcatalina.home=c:/tomcat OPT=-Xmx128M # 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 --- workers2.properties snip --- to...: --- workers2.properties snip --- # Define the parameters for the Java Virtual Machine [vm:] info=Parameters used to load a JVM in the server process OPT=-Djava.class.path=c:\tomcat\bin\tomcat-jni.jar OPT=-Dtomcat.home=c:\tomcat OPT=-Dcatalina.home=c:\tomcat OPT=-Xmx128M # 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 --- workers2.properties snip --- The giveaway was that I didn't appear to have a \tomcat\lib directory!! Now when I start apache, I can get to the examples folder, and run the examples etc. So I'm hoping all will be good from now on. Thank you very much Atreya and John for your support in this. I noticed a post to the list that used the ' OPT=-Djava.class.path=c:\tomcat\bin\tomcat-jni.jar' so I thought I'd give it a shot. I also changed a few slashes to backslashes seeing as its windows. No idea why/how it now works, so I'm hoping this is all ok? What do you reckon? Thanks again for your time! Tristan -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 19:30 To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Tristan, I had a similar problem with ClassNotFoundException. What I had to do was find all the jar files and uncompress them into the lib directory. That was about 10MB worth of Jar files and it took me about 30 mins to do, but that was the only way to get it running. _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tricky [mailto:[EMAIL PROTECTED] Sent: July 18, 2003 3:25 PM To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Still no joy! :( The line 'handler.list= apr,request,channelJni' was definitely in my jk2.properties, but I must have deleted the line return when I emailed it by accident. When I start apache, http://localhost/examples gives me the same Internal Server Error page. I've also noticed the following output in my \Apache2\logs\error.log file: [Fri Jul 18 19:18:29 2003] [notice] Parent: Created child process 3008 [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Child process is running [Fri Jul 18 19:18:29 2003] [error] Can't find class org/apache/jk/apr/TomcatStarter java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter [Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup [Fri Jul 18 19:18:29 2003] [error] Can't find class org/apache/jk/apr/TomcatStarter java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter [Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown [Fri Jul 18 19:18:29 2003] [error] mod_jk child init 1 0 [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Acquired the start mutex. [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Starting 250 worker threads. Thanks for the help, much appreciated, Tristan -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 18:26 To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Alright, Those all look good. But in your jk2.properties file you should put in: handler.list= apr,request,channelJni Next, if you installed the Apache there should be an applet on the taskbar, next to the time. You shouldn't have to start Tomcat separately. Simply click on the applet and choose to start Apache. Wait about a minute for Tomcat to start. Then hit up: http://localhost/examples That should show you a directory. _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tricky [mailto:[EMAIL PROTECTED] Sent: July 18, 2003 2:07 PM To: 'Tomcat Users List' Cc: [EMAIL PROTECTED] Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Atreya, I've set all the environment variables, and have made the APACHE_HOME addition at your recommendation. My .properties files are appended below. The directories are as follows Apache 2c:\Apache2 Tomact 4.1 c:\tomcat Java
RE: Tomcat4-1, Apache2, jk2 setup problem - help!
Great, Thanks for the feedback. I'll add that to the HOWTO. Atreya _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tricky [mailto:[EMAIL PROTECTED] Sent: July 18, 2003 4:02 PM To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! OK, I think I've finally managed to fix it. What I did was change the part of workers2.properties that read: --- workers2.properties snip --- # Define the parameters for the Java Virtual Machine [vm:] info=Parameters used to load a JVM in the server process OPT=-Djava.class.path=c:/tomcat/lib OPT=-Dtomcat.home=c:/tomcat OPT=-Dcatalina.home=c:/tomcat OPT=-Xmx128M # 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 --- workers2.properties snip --- to...: --- workers2.properties snip --- # Define the parameters for the Java Virtual Machine [vm:] info=Parameters used to load a JVM in the server process OPT=-Djava.class.path=c:\tomcat\bin\tomcat-jni.jar OPT=-Dtomcat.home=c:\tomcat OPT=-Dcatalina.home=c:\tomcat OPT=-Xmx128M # 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 --- workers2.properties snip --- The giveaway was that I didn't appear to have a \tomcat\lib directory!! Now when I start apache, I can get to the examples folder, and run the examples etc. So I'm hoping all will be good from now on. Thank you very much Atreya and John for your support in this. I noticed a post to the list that used the ' OPT=-Djava.class.path=c:\tomcat\bin\tomcat-jni.jar' so I thought I'd give it a shot. I also changed a few slashes to backslashes seeing as its windows. No idea why/how it now works, so I'm hoping this is all ok? What do you reckon? Thanks again for your time! Tristan -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 19:30 To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Tristan, I had a similar problem with ClassNotFoundException. What I had to do was find all the jar files and uncompress them into the lib directory. That was about 10MB worth of Jar files and it took me about 30 mins to do, but that was the only way to get it running. _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tricky [mailto:[EMAIL PROTECTED] Sent: July 18, 2003 3:25 PM To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Still no joy! :( The line 'handler.list= apr,request,channelJni' was definitely in my jk2.properties, but I must have deleted the line return when I emailed it by accident. When I start apache, http://localhost/examples gives me the same Internal Server Error page. I've also noticed the following output in my \Apache2\logs\error.log file: [Fri Jul 18 19:18:29 2003] [notice] Parent: Created child process 3008 [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Child process is running [Fri Jul 18 19:18:29 2003] [error] Can't find class org/apache/jk/apr/TomcatStarter java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter [Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onStartup [Fri Jul 18 19:18:29 2003] [error] Can't find class org/apache/jk/apr/TomcatStarter java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter [Fri Jul 18 19:18:29 2003] [error] workerEnv.initWorkers() init failed for worker.jni:onShutdown [Fri Jul 18 19:18:29 2003] [error] mod_jk child init 1 0 [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Acquired the start mutex. [Fri Jul 18 19:18:29 2003] [notice] Child 3008: Starting 250 worker threads. Thanks for the help, much appreciated, Tristan -Original Message- From: Atreya Basu [mailto:[EMAIL PROTECTED] Sent: 18 July 2003 18:26 To: 'Tomcat Users List' Subject: RE: Tomcat4-1, Apache2, jk2 setup problem - help! Alright, Those all look good. But in your jk2.properties file you should put in: handler.list= apr,request,channelJni Next, if you installed the Apache there should be an applet on the taskbar, next to the time. You shouldn't have to start Tomcat separately. Simply click on the applet and choose to start Apache. Wait about a minute for Tomcat to start. Then hit up: http://localhost/examples That should show you a directory. _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tricky [mailto:[EMAIL
RE: Tomcat4-1, Apache2, jk2 setup problem - help!
Hi, I have a HowTo document at: http://www.greenfieldresearch.ca/technical/jk2_config.html That doesn't have a troubleshooting section but if you follow the directions you should be on your way without any problems. Cheers _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Tricky [mailto:[EMAIL PROTECTED] Sent: July 17, 2003 12:24 PM To: [EMAIL PROTECTED] Subject: Tomcat4-1, Apache2, jk2 setup problem - help! Hi, I'm trying to install tomcat 4.1 on my win XP machine using Apache 2 and jk2. However, I seem to be encountering some difficulties. The problem is, I can't seem to get tomcat to start as a service when I request a url (e.g. http://localhost/examples), it simply returns. *** The servlet container is temporary unavailable or being upgraded Internal Server Error --snip apache babble-- Apache/2.0.47 (Win32) PHP/4.3.2 mod_jk2/2.0.2 Server at localhost Port 80 *** I noticed that starting Tomcat seems to throw some kind of java error, but it closes the window too quickly for me to repeat exactly what it reports. However, when I comment out the line channelJni.disabled = 0 in my jk2.properties file, I can start tomcat standalone, and access the examples etc through apache. Can anyone tell me why I can not start tomcat as a process through apache? I followed a how-to at: http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html And believe I have made sure I have followed the instructions very closely. Any help is very much appreciated. Cheers, Tristan - 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]
re: Tomcat4-1, Apache2, jk2 setup problem - help!
Also, I forgot to include the stderr.log message (located in apache/logs/) Cheers, Tristan TomcatStarter: main() Try org.apache.tomcat.startup.Main Try org.apache.catalina.startup.BootstrapService Starting org.apache.catalina.startup.BootstrapService Created catalinaLoader in: ${TOMCAT_HOME}\server\lib java.lang.ClassNotFoundException: org.apache.catalina.startup.CatalinaService at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:992) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:857) at org.apache.catalina.startup.BootstrapService.init(BootstrapService.java: 198) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java: 297) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.jk.apr.TomcatStarter.run(TomcatStarter.java:127) at java.lang.Thread.run(Unknown Source) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]