The workers2.properties file is not an Apache config file, it is a mod_jk2
config file, that resides in the Apache/conf directory.
Apache itself knows nothing about Tomcat or classpaths. Mod_jk or mod_jk2
connects them together and passes requests between them. That's why they
call it a connector.
Jk itself requires config files, one for the Apache side
(workers2.properties for Jk2), and one for the java or Tomcat side,
(jk2.properties). One is in the Apache/conf directory and the other is in
the Tomcat/conf directory.
For example, you could add more Tomcat instances with each listening on
different ports. Jk needs to know what port that Tomcat is listening on
for any given request so when it gets a request from Apache it will know
where to send the request.
For your problem, jk2 can't find something it's looking for in Tomcat,
hence your error. I'm guessing that it can't locate the classes in the
commons-logging.jar file because this was something that came up earlier
and the fix was to add the class path in the workers2.properties file. Now
all the examples of workers2.properties files all have the extra classpath
for commons-logging.jar.
rls
"Max" <[EMAIL PROTECTED]>
10/25/2002 06:10 AM
Please respond to "Tomcat Users List"
To: "Tomcat Users List" <[EMAIL PROTECTED]>
cc:
Subject: Re: connector and tomcat 4.1.12 !!
Thanks.
But i don't understand why tomcat need to get its classpath in apache
configuration file
and how specifie in tomcat where is this file ...
Where can i find documentation on this subject ?
there is few documentation on
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2 but very light ...
or a book ?
----- Original Message -----
From: "Robert L Sowders" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, October 24, 2002 7:32 PM
Subject: Re: connector and tomcat 4.1.12 !!
> Looks like you are having problems with your class path. Guess you
didn't
> update the workers2.properties file when you updated to 4.1.12.
>
> In the [VM] section of workers2.properties, try replacing the line:
>
> OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar
>
> with the following
>
>
OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar;${TOMCAT_HOME}/serve
r/lib/commons-logging.jar
>
> Not sure but I think at some point the OPT lines will be replaced with
> simple class path lines.
>
> rls
>
>
>
>
>
> "Max" <[EMAIL PROTECTED]>
> 10/24/2002 02:39 PM
> Please respond to "Tomcat Users List"
>
>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
> Subject: connector and tomcat 4.1.12 !!
>
> Hi
>
> I have a tomcat 4.1.12, an apache 2.0.40 and mod_jk2
> (tomcat-connectors-4.1.12)
>
> since i put this simple jk2.properties in my $CATALINA/conf dir :
> #
> handler.list=apr,channelUnix,request
> channelUnix.file=${jkHome}/work/jk2.socket
> apr.NativeSo=${jkHome}/lib/libjkjni.so
>
> (it works great with a tomcat 4.1.10)
> tomcat doesn't start and my catalina.out looks like this :
>
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.12-LE-jdk14
> 24 oct. 2002 17:26:38 org.apache.jk.server.JkMain newHandler
> GRAVE: Can't create apr
> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
> at org.apache.jk.apr.AprImpl.<clinit>(AprImpl.java:340)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:130)
> at org.apache.jk.server.JkMain.newHandler(JkMain.java:494)
>
> and the socket file is not created .
>
> Can you help me ?
>
> THANKS !
>
> my server.xml :
>
> <Server port="8005" shutdown="SHUTDOWN" debug="0">
> <Service name="Tomcat-Standalone">
>
> <Connector
className="org.apache.coyote.tomcat4.CoyoteConnector"
> port="8009" minProcessors="5" maxProcessors="75"
> enableLookups="true" redirectPort="8443"
> acceptCount="10" debug="0" connectionTimeout="20000"
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>
> <Engine name="Standalone" defaultHost="phobos" debug="0">
>
> <Host name="phobos" debug="0" appBase="webapps"
> unpackWARs="true">
>
> [...]
>
> </Host>
>
> </Engine>
>
> </Service>
>
> </Server>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@;jakarta.apache.org>
>
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>