I get the exact same error on Solaris 8 SPARC with J2SE v1.4.1 (with patches
loaded for Java):

SEVERE: Can't create apr
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
        at org.apache.jk.apr.AprImpl.<clinit>(AprImpl.java:340)

After a couple of days trying to get the ChannelUnix socket stuff to work,
I've given up.  Sad, but no one seems to have insights...at first blush I
thought it might be a CLASSPATH problem too, but classes in
commons-logging.jar are used in other parts of the Jakarta-Tomcat Connector
too, if I'm not mistaken.  If you look in the $CATALINA_HOME/bin directory,
I believe that catalina.sh constructs/overrides any CLASSPATH env var in
favor of a classpath that includes tools.jar (from jdk) and bootstrap.jar
(from $CATALINA_HOME/bin).  

I tried including $CATALINA_HOME/server/lib/commons-logging.jar in the
CLASSPATH that gets used in catalina.sh, no change -- same error.

Does anyone have a success story to share regarding this problem?

Paul


--
mailto:Paul.Brzezinski@;EDS.com
Enterprise Distributed Capabilities
EDS Corporation
248-265-8283


: -----Original Message-----
: From: Maxime [mailto:max_sts@;hotmail.com] 
: Sent: Thursday, October 31, 2002 10:09 AM
: To: Tomcat Users List
: Subject: mod_jk2 & tomcat problems
: 
: 
: Hello,
: 
: I have to use Tomcat 4.1.x and apache 2
: 
: 1)
: I attempt to use Tomcat 4.1.10 and mod_jk2 
: (compile by myself with jakarta-tomcat-connectors-4.1.10-src
: with help of http://www.pubbitch.org/jboss/mod_jk2.html)
: For tomcat, I place libjkjni.so in $CATALINA_HOME/lib
: and put this few lines in jk2.properties 
: 
: # list of needed handlers.
: handler.list=apr,channelUnix,request
: # Location of the socket. channelUnix.file=${jkHome}/work/jk2.socket
: # Dynamic library
: serverRoot=/usr/local/apache-2.0.43/
: apr.NativeSo=${jkHome}/lib/libjkjni.so
: 
: communication between apache & tomcat works throw the socket 
: file, but i show this line in catalina.out : 
: [jk_config_file.c (261)]  config.update(): Can't find config 
: file ${serverRoot}/conf/workers2.properties
: but /usr/local/apache-2.0.43/conf/workers2.properties exists ...
: 
: 2) 
: I attempt to use Tomcat 4.1.10 and mod_jk2 
: (release version 2.0.1 in 
: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2
/release/v2.0.1)
now apr.NativeSo=${jkHome}/lib/jkjni-2.0.so

and now i have this in my catalina.out :
APR not loaded, disabling jni components: java.io.IOException:
/usr/local/jakarta-tomcat-4.1.10-LE-jdk14/lib/jkjni-2.0.so: libapr.so.0:
cannot open shared object file: No such file or directory

in my apache dir i have a not dynamic library libapr.a

3)
I attempt to use Tomcat 4.1.12 and mod_jk2 
(with the two version describe above)
with the same config , i have now this in my catalina.out :

SEVERE: 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:140)

classpath pb ?? 


Thanks for help !





--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to