tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brzezinski, Paul J" <paul.brzezin...@eds.com>
Subject RE: JK2 unixsocket: Can't create apr
Date Wed, 13 Nov 2002 20:57:46 GMT



: -----Original Message-----
: From: Costin Manolache [mailto:cmanolache@yahoo.com] 
: Sent: Wednesday, November 13, 2002 3:16 PM
: To: Tomcat Developers List
: Subject: RE: JK2 unixsocket: Can't create apr
: 
: 
: Very weird. 
: 
: Are you using the latest commons-logging.jar ? JDK1.4 or 1.3 
: ? Do you have log4j ?

Do I need a .properties file or .xml file log4j or Apr?

With log4j in $CATALINA_HOME/server/lib:

This is the $CATALINA_HOME/logs/catalina.out:

Exception during startup processing
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Layout
        at
org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory
.java:153)
        at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:281)
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:400)
        at org.apache.commons.digester.Digester.<init>(Digester.java:345)
        at org.apache.catalina.startup.Catalina.createStartDigester(Unknown
Sour
ce)
        at org.apache.catalina.startup.Catalina.start(Unknown Source)
        at org.apache.catalina.startup.Catalina.execute(Unknown Source)
        at org.apache.catalina.startup.Catalina.process(Unknown Source)
        ... 5 more

: The problem seems releated to class loading ( as usual :-).
: 
: Costin
: 
: 
: Brzezinski, Paul J wrote:
: 
: > I wonder if a better question is:
: > 
: > Is anyone using the ChannelUnix (AF_UNIX socket) connector on any 
: > platform?
: > 
: > On what platforms is the ChannelUnix (AF_UNIX socket) connector 
: > actually known to function?
: > 
: > 
: > 
: > : -----Original Message-----
: > : From: Robert Williams [mailto:rcw1@pacbell.net]
: > : Sent: Wednesday, November 13, 2002 1:05 PM
: > : To: Tomcat User
: > : Subject: JK2 unixsocket: Can't create apr
: > :
: > : 
: > : Hi all,
: > : I am trying to implement the unixsocket on JK2. While the
: > : channelSocket
: > : works fine I was hoping to get the speed benefits of a
: > : unixsocket. I am
: > : using the example setups in the JK2 documentation. And since
: > : it seems to
: > : be looking for  the LogFactory I have made sure that
: > : commons-logging-api.jar  was in the Tomcat common/lib and I
: > : also put it
: > : in java/jre/lib/ext as well. All to no avail. I am 
: stumped. I haven't
: > : been able to find anything in the list or on google 
: addressing this
: > : problem. Some docs regarding channelSocket say disable 
: apr for this
: > : error but apparently unixsocket won't work without apr
: > : enabled. Any help
: > : would be appreciated.
: > : Thanks Robert
: > : 
: > : jakarta-tomcat-4.1.12
: > : jakarta-tomcat-connectors-4.1.12
: > : Apache/2.0.43
: > : Solaris 9
: > : 
: > : Nov 13, 2002 9:29:04 AM org.apache.jk.server.JkMain newHandler
: > : 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:130)
: > :         at org.apache.jk.server.JkMain.newHandler(JkMain.java:494)
: > :         at org.apache.jk.server.JkMain.start(JkMain.java:316)
: > :         at
: > : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.jav
: > : 
: > : workers2.properties
: > : 
: > : [shm]
: > : file=${serverRoot}/logs/shm.file
: > : size=1048576
: > : 
: > : # Example unixsocket channel.
: > : [channel.un:unixsocket]
: > : file=/usr/local/tomcat/work/jk2.socket
: > : 
: > : # define the worker
: > : [ajp13:unixsocket]
: > : channel=channel.un:unixsocket
: > : 
: > : # Uri mapping
: > : [uri:/examples/*]
: > : worker=ajp13:unixsocket
: > : 
: > : jk2.properties
: > : # list of needed handlers.
: > : handler.list=apr,channelUnix,request
: > : 
: > : # Location of the socket.
: > : channelUnix.file=${jkHome}/work/jk2.socket
: > : 
: > : # Dynamic library
: > : apr.NativeSo=${jkHome}/lib/jkjni.so
: > : 
: > : jk2.properties.save
: > : #AUTOMATICALLY GENERATED
: > : #Wed Nov 13 09:38:33 PST 2002
: > : handler.list=apr,channelUnix,request
: > : secure=false
: > : soTimeout=20000
: > : port=8009
: > : jkHome=/usr/local/jakarta-tomcat-4.1.12
: > : maxThreads=75
: > : backlog=10
: > : apr.NativeSo=${jkHome}/lib/jkjni.so
: > : timeout=20000
: > : channelUnix.file=${jkHome}/work/jk2.socket
: > : tcpNoDelay=true
: > : 
: > : 
: > : Build Apache
: > : ./configure --with-mpm=worker --enable-so --enable-layout=Apache
: > : --enable-module=most --enable-mods-shared=most
: > : make
: > : make install
: > : 
: > : Build jk2 Conector
: > : cd ${conector.home}/jk/native2
: > : sh ./buildconf.sh
: > : 
: > : cp  /usr/java/include/solaris to /usr/java/include/
: > : 
: > : CPPFLAGS=-DBSD_COMP  ./configure \
: > : --with-apxs2=/usr/local/apache2/bin/apxs \
: > : --with-tomcat41=/usr/local/tomcat \
: > : --with-java-home=${JAVA_HOME} \
: > : --with-java-platform=2 \
: > : --with-jni
: > : 
: > : make CPPFLAGS=-DBSD_COMP
: > : 
: > : cd ${conector.home}/jk/build/jk2/apache2
: > : mkdir /usr/local/tomcat/lib/
: > : cp * /usr/local/tomcat/lib/
: > : cp mod_jk2.so /usr/local/apache2/modules/
: > : 
: > : installed GNU Tools
: > : autoconf-2.54-sol9-sparc-local.gz
: > : tar-1.13.19-sol9-sparc-local.gz
: > : m4-1.4-sol9-sparc-local
: > : automake-1.7.1-sol9-sparc-local
: > : make-3.80-sol9-sparc-local.gz
: > : libtool-1.4
: > :  
: > : 
: > : 
: > : 
: > : --
: > : 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-dev-: unsubscribe@jakarta.apache.org>
: For 
: additional commands, 
: e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>
: 

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


Mime
View raw message