RE: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Brzezinski, Paul J

A work-around was to put all the jar files in TC_HOME/server/lib into
TC_HOME/common/lib.  This overrides/breaks/defeats the hierarchy of class
loaders, but it does allow you to get around the 

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
 at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)

These are the files that I moved to common/lib from server/lib (leaves
server/lib directory empty):

catalina-ant.jar
catalina.jar
commons-beanutils.jar
commons-digester.jar
commons-logging.jar
commons-modeler.jar
jakarta-regexp-1.2.jar
mx4j-jmx.jar
servlets-cgi.jar
servlets-common.jar
servlets-default.jar
servlets-invoker.jar
servlets-manager.jar
servlets-ssi.jar
servlets-webdav.jar
tomcat-coyote.jar
tomcat-http11.jar
tomcat-jk.jar
tomcat-jk2.jar
tomcat-util.jar
tomcat-warp.jar

errors.

Paul

: -Original Message-
: From: Matt Sales [mailto:[EMAIL PROTECTED]] 
: Sent: Thursday, January 16, 2003 10:35 AM
: To: Tomcat Users List
: Subject: mod_jk2/unixsocket: can't create apr
: 
: 
: Hello,
: 
: I'm having the same problem as a thread that was running in 
: mid-november, but there was never a resolution posted. I'm 
: trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache 
: 2.0.40, RH 7.2).
: 
: I've tried putting log4j.jar into TC_HOME/common/lib, puting 
: the libapr.so  libjkjni.so into JRE/lib...  Apparently, it's 
: a class loader problem.  Is anyone running unix sockets with 
: tomcat 4.1.18?  I've had it working with 4.1.10...
: 
: 
: I get the following error in catalina.out on startup:
: 
: 10048 [main] INFO http11.Http11Protocol  - Starting Coyote 
: HTTP/1.1 on port 8080 Deep stack trace XXX public 
: java.lang.Throwable java.lang.Throwable.getCause() 10053 
: [main] ERROR server.JkMain  - 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)
: at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
: at org.apache.jk.server.JkMain.start(JkMain.java:341)
: at 
: org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
: at
: org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
: r.java:1056)
: at
: org.apache.catalina.core.StandardService.start(StandardService
: .java:506)
: at
: org.apache.catalina.core.StandardServer.start(StandardServer.j
: ava:2189)
: at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
: at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
: at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
: at 
: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
: orImpl.java:39
: )
: at 
: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
: odAccessorImpl
: .java:25)
: at java.lang.reflect.Method.invoke(Method.java:324)
: at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
: Deep stack trace
: XXX public java.lang.Throwable java.lang.Throwable.getCause() 
: 10079 [main] ERROR server.JkMain  - Can't create apr 
: java.lang.NoClassDefFoundError
: at java.lang.Class.forName0(Native Method)
: at java.lang.Class.forName(Class.java:140)
: at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
: at org.apache.jk.server.JkMain.processProperty(JkMain.java:537)
: at org.apache.jk.server.JkMain.processProperties(JkMain.java:505)
: at org.apache.jk.server.JkMain.start(JkMain.java:346)
: at 
: org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
: at
: org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
: r.java:1056)
: at
: org.apache.catalina.core.StandardService.start(StandardService
: .java:506)
: at
: org.apache.catalina.core.StandardServer.start(StandardServer.j
: ava:2189)
: at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
: at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
: at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
: at 
: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
: orImpl.java:39
: )
: at 
: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
: odAccessorImpl
: .java:25)
: at java.lang.reflect.Method.invoke(Method.java:324)
: at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
: 
: 
: 
: Thanks for your help.
: 
: 
: --
: To unsubscribe, e-mail:   
: mailto:tomcat-user-: [EMAIL PROTECTED]
: For 
: additional commands, 
: e-mail: mailto:[EMAIL PROTECTED]
: 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Faine, Mark
I had this problem and realized I had mistakenly commented out the AJP 1.3
connector on port 8009 in server.xml

Thanks,
-Mark


-Original Message-
From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 9:52 AM
To: Tomcat Users List
Subject: RE: mod_jk2/unixsocket: can't create apr



A work-around was to put all the jar files in TC_HOME/server/lib into
TC_HOME/common/lib.  This overrides/breaks/defeats the hierarchy of class
loaders, but it does allow you to get around the 

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
 at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)

These are the files that I moved to common/lib from server/lib (leaves
server/lib directory empty):

catalina-ant.jar
catalina.jar
commons-beanutils.jar
commons-digester.jar
commons-logging.jar
commons-modeler.jar
jakarta-regexp-1.2.jar
mx4j-jmx.jar
servlets-cgi.jar
servlets-common.jar
servlets-default.jar
servlets-invoker.jar
servlets-manager.jar
servlets-ssi.jar
servlets-webdav.jar
tomcat-coyote.jar
tomcat-http11.jar
tomcat-jk.jar
tomcat-jk2.jar
tomcat-util.jar
tomcat-warp.jar

errors.

Paul

: -Original Message-
: From: Matt Sales [mailto:[EMAIL PROTECTED]] 
: Sent: Thursday, January 16, 2003 10:35 AM
: To: Tomcat Users List
: Subject: mod_jk2/unixsocket: can't create apr
: 
: 
: Hello,
: 
: I'm having the same problem as a thread that was running in 
: mid-november, but there was never a resolution posted. I'm 
: trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache 
: 2.0.40, RH 7.2).
: 
: I've tried putting log4j.jar into TC_HOME/common/lib, puting 
: the libapr.so  libjkjni.so into JRE/lib...  Apparently, it's 
: a class loader problem.  Is anyone running unix sockets with 
: tomcat 4.1.18?  I've had it working with 4.1.10...
: 
: 
: I get the following error in catalina.out on startup:
: 
: 10048 [main] INFO http11.Http11Protocol  - Starting Coyote 
: HTTP/1.1 on port 8080 Deep stack trace XXX public 
: java.lang.Throwable java.lang.Throwable.getCause() 10053 
: [main] ERROR server.JkMain  - 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)
: at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
: at org.apache.jk.server.JkMain.start(JkMain.java:341)
: at 
: org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
: at
: org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
: r.java:1056)
: at
: org.apache.catalina.core.StandardService.start(StandardService
: .java:506)
: at
: org.apache.catalina.core.StandardServer.start(StandardServer.j
: ava:2189)
: at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
: at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
: at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
: at 
: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
: orImpl.java:39
: )
: at 
: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
: odAccessorImpl
: .java:25)
: at java.lang.reflect.Method.invoke(Method.java:324)
: at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
: Deep stack trace
: XXX public java.lang.Throwable java.lang.Throwable.getCause() 
: 10079 [main] ERROR server.JkMain  - Can't create apr 
: java.lang.NoClassDefFoundError
: at java.lang.Class.forName0(Native Method)
: at java.lang.Class.forName(Class.java:140)
: at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
: at org.apache.jk.server.JkMain.processProperty(JkMain.java:537)
: at org.apache.jk.server.JkMain.processProperties(JkMain.java:505)
: at org.apache.jk.server.JkMain.start(JkMain.java:346)
: at 
: org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
: at
: org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
: r.java:1056)
: at
: org.apache.catalina.core.StandardService.start(StandardService
: .java:506)
: at
: org.apache.catalina.core.StandardServer.start(StandardServer.j
: ava:2189)
: at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
: at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
: at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
: at 
: sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
: orImpl.java:39
: )
: at 
: sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
: odAccessorImpl
: .java:25)
: at java.lang.reflect.Method.invoke(Method.java:324)
: at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
: 
: 
: 
: Thanks for your help.
: 
: 
: --
: To unsubscribe, e-mail

RE: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Brzezinski, Paul J
Mark,

Were you getting the ClassNotFound exception?  Didn't think you were.
Hopefully that really was the root-cause of your problem and the problems
with the Class Loader hierarchy have been resolved in 4.1.18.

Paul


: -Original Message-
: From: Faine, Mark [mailto:[EMAIL PROTECTED]] 
: Sent: Thursday, January 16, 2003 10:55 AM
: To: 'Tomcat Users List'
: Subject: RE: mod_jk2/unixsocket: can't create apr
: 
: 
: I had this problem and realized I had mistakenly commented 
: out the AJP 1.3 connector on port 8009 in server.xml
: 
: Thanks,
: -Mark
: 
: 
: -Original Message-
: From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]] 
: Sent: Thursday, January 16, 2003 9:52 AM
: To: Tomcat Users List
: Subject: RE: mod_jk2/unixsocket: can't create apr
: 
: 
: 
: A work-around was to put all the jar files in 
: TC_HOME/server/lib into TC_HOME/common/lib.  This 
: overrides/breaks/defeats the hierarchy of class loaders, but 
: it does allow you to get around the 
: 
: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
:  at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
: 
: These are the files that I moved to common/lib from 
: server/lib (leaves server/lib directory empty):
: 
: catalina-ant.jar
: catalina.jar
: commons-beanutils.jar
: commons-digester.jar
: commons-logging.jar
: commons-modeler.jar
: jakarta-regexp-1.2.jar
: mx4j-jmx.jar
: servlets-cgi.jar
: servlets-common.jar
: servlets-default.jar
: servlets-invoker.jar
: servlets-manager.jar
: servlets-ssi.jar
: servlets-webdav.jar
: tomcat-coyote.jar
: tomcat-http11.jar
: tomcat-jk.jar
: tomcat-jk2.jar
: tomcat-util.jar
: tomcat-warp.jar
: 
: errors.
: 
: Paul
: 
: : -Original Message-
: : From: Matt Sales [mailto:[EMAIL PROTECTED]] 
: : Sent: Thursday, January 16, 2003 10:35 AM
: : To: Tomcat Users List
: : Subject: mod_jk2/unixsocket: can't create apr
: : 
: : 
: : Hello,
: : 
: : I'm having the same problem as a thread that was running in 
: : mid-november, but there was never a resolution posted. I'm 
: : trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache 
: : 2.0.40, RH 7.2).
: : 
: : I've tried putting log4j.jar into TC_HOME/common/lib, puting 
: : the libapr.so  libjkjni.so into JRE/lib...  Apparently, it's 
: : a class loader problem.  Is anyone running unix sockets with 
: : tomcat 4.1.18?  I've had it working with 4.1.10...
: : 
: : 
: : I get the following error in catalina.out on startup:
: : 
: : 10048 [main] INFO http11.Http11Protocol  - Starting Coyote 
: : HTTP/1.1 on port 8080 Deep stack trace XXX public 
: : java.lang.Throwable java.lang.Throwable.getCause() 10053 
: : [main] ERROR server.JkMain  - 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)
: : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
: : at org.apache.jk.server.JkMain.start(JkMain.java:341)
: : at 
: : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
: : at
: : org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
: : r.java:1056)
: : at
: : org.apache.catalina.core.StandardService.start(StandardService
: : .java:506)
: : at
: : org.apache.catalina.core.StandardServer.start(StandardServer.j
: : ava:2189)
: : at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
: : at 
: org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
: : at 
: org.apache.catalina.startup.Catalina.process(Catalina.java:180)
: : at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
: : at 
: : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
: : orImpl.java:39
: : )
: : at 
: : sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
: : odAccessorImpl
: : .java:25)
: : at java.lang.reflect.Method.invoke(Method.java:324)
: : at 
: org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
: : Deep stack trace
: : XXX public java.lang.Throwable java.lang.Throwable.getCause() 
: : 10079 [main] ERROR server.JkMain  - Can't create apr 
: : java.lang.NoClassDefFoundError
: : at java.lang.Class.forName0(Native Method)
: : at java.lang.Class.forName(Class.java:140)
: : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
: : at org.apache.jk.server.JkMain.processProperty(JkMain.java:537)
: : at 
: org.apache.jk.server.JkMain.processProperties(JkMain.java:505)
: : at org.apache.jk.server.JkMain.start(JkMain.java:346)
: : at 
: : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
: : at
: : org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
: : r.java:1056)
: : at
: : org.apache.catalina.core.StandardService.start(StandardService
: : .java:506)
: : at
: : org.apache.catalina.core.StandardServer.start(StandardServer.j
: : ava

Re: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Paul Gregoire
Just a quick question related to this thread.. does Apache 2.0.43 have to be
compiled with APR to get Jk2 to work?

- Original Message -
From: Brzezinski, Paul J [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 8:07 AM
Subject: RE: mod_jk2/unixsocket: can't create apr


 Mark,

 Were you getting the ClassNotFound exception?  Didn't think you were.
 Hopefully that really was the root-cause of your problem and the problems
 with the Class Loader hierarchy have been resolved in 4.1.18.

 Paul


 : -Original Message-
 : From: Faine, Mark [mailto:[EMAIL PROTECTED]]
 : Sent: Thursday, January 16, 2003 10:55 AM
 : To: 'Tomcat Users List'
 : Subject: RE: mod_jk2/unixsocket: can't create apr
 :
 :
 : I had this problem and realized I had mistakenly commented
 : out the AJP 1.3 connector on port 8009 in server.xml
 :
 : Thanks,
 : -Mark
 :
 :
 : -Original Message-
 : From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]]
 : Sent: Thursday, January 16, 2003 9:52 AM
 : To: Tomcat Users List
 : Subject: RE: mod_jk2/unixsocket: can't create apr
 :
 :
 :
 : A work-around was to put all the jar files in
 : TC_HOME/server/lib into TC_HOME/common/lib.  This
 : overrides/breaks/defeats the hierarchy of class loaders, but
 : it does allow you to get around the
 :
 : java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
 :  at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
 :
 : These are the files that I moved to common/lib from
 : server/lib (leaves server/lib directory empty):
 :
 : catalina-ant.jar
 : catalina.jar
 : commons-beanutils.jar
 : commons-digester.jar
 : commons-logging.jar
 : commons-modeler.jar
 : jakarta-regexp-1.2.jar
 : mx4j-jmx.jar
 : servlets-cgi.jar
 : servlets-common.jar
 : servlets-default.jar
 : servlets-invoker.jar
 : servlets-manager.jar
 : servlets-ssi.jar
 : servlets-webdav.jar
 : tomcat-coyote.jar
 : tomcat-http11.jar
 : tomcat-jk.jar
 : tomcat-jk2.jar
 : tomcat-util.jar
 : tomcat-warp.jar
 :
 : errors.
 :
 : Paul
 :
 : : -Original Message-
 : : From: Matt Sales [mailto:[EMAIL PROTECTED]]
 : : Sent: Thursday, January 16, 2003 10:35 AM
 : : To: Tomcat Users List
 : : Subject: mod_jk2/unixsocket: can't create apr
 : :
 : :
 : : Hello,
 : :
 : : I'm having the same problem as a thread that was running in
 : : mid-november, but there was never a resolution posted. I'm
 : : trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache
 : : 2.0.40, RH 7.2).
 : :
 : : I've tried putting log4j.jar into TC_HOME/common/lib, puting
 : : the libapr.so  libjkjni.so into JRE/lib...  Apparently, it's
 : : a class loader problem.  Is anyone running unix sockets with
 : : tomcat 4.1.18?  I've had it working with 4.1.10...
 : :
 : :
 : : I get the following error in catalina.out on startup:
 : :
 : : 10048 [main] INFO http11.Http11Protocol  - Starting Coyote
 : : HTTP/1.1 on port 8080 Deep stack trace XXX public
 : : java.lang.Throwable java.lang.Throwable.getCause() 10053
 : : [main] ERROR server.JkMain  - 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)
 : : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
 : : at org.apache.jk.server.JkMain.start(JkMain.java:341)
 : : at
 : : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
 : : at
 : : org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
 : : r.java:1056)
 : : at
 : : org.apache.catalina.core.StandardService.start(StandardService
 : : .java:506)
 : : at
 : : org.apache.catalina.core.StandardServer.start(StandardServer.j
 : : ava:2189)
 : : at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 : : at
 : org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 : : at
 : org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 : : at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 : : at
 : : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 : : orImpl.java:39
 : : )
 : : at
 : : sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
 : : odAccessorImpl
 : : .java:25)
 : : at java.lang.reflect.Method.invoke(Method.java:324)
 : : at
 : org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 : : Deep stack trace
 : : XXX public java.lang.Throwable java.lang.Throwable.getCause()
 : : 10079 [main] ERROR server.JkMain  - Can't create apr
 : : java.lang.NoClassDefFoundError
 : : at java.lang.Class.forName0(Native Method)
 : : at java.lang.Class.forName(Class.java:140)
 : : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
 : : at org.apache.jk.server.JkMain.processProperty(JkMain.java:537)
 : : at
 : org.apache.jk.server.JkMain.processProperties(JkMain.java:505

RE: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Brzezinski, Paul J



Um, I didn't think you could compile apache 2.0.x without using APR.  

In any case, I do believe that you need libapr*.so.

: -Original Message-
: From: Paul Gregoire [mailto:[EMAIL PROTECTED]] 
: Sent: Thursday, January 16, 2003 11:32 AM
: To: Tomcat Users List
: Subject: Re: mod_jk2/unixsocket: can't create apr
: 
: 
: Just a quick question related to this thread.. does Apache 
: 2.0.43 have to be compiled with APR to get Jk2 to work?
: 
: - Original Message -
: From: Brzezinski, Paul J [EMAIL PROTECTED]
: To: Tomcat Users List [EMAIL PROTECTED]
: Sent: Thursday, January 16, 2003 8:07 AM
: Subject: RE: mod_jk2/unixsocket: can't create apr
: 
: 
:  Mark,
: 
:  Were you getting the ClassNotFound exception?  Didn't think 
: you were. 
:  Hopefully that really was the root-cause of your problem and the 
:  problems with the Class Loader hierarchy have been resolved 
: in 4.1.18.
: 
:  Paul
: 
: 
:  : -Original Message-
:  : From: Faine, Mark [mailto:[EMAIL PROTECTED]]
:  : Sent: Thursday, January 16, 2003 10:55 AM
:  : To: 'Tomcat Users List'
:  : Subject: RE: mod_jk2/unixsocket: can't create apr
:  :
:  :
:  : I had this problem and realized I had mistakenly commented
:  : out the AJP 1.3 connector on port 8009 in server.xml
:  :
:  : Thanks,
:  : -Mark
:  :
:  :
:  : -Original Message-
:  : From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]]
:  : Sent: Thursday, January 16, 2003 9:52 AM
:  : To: Tomcat Users List
:  : Subject: RE: mod_jk2/unixsocket: can't create apr
:  :
:  :
:  :
:  : A work-around was to put all the jar files in
:  : TC_HOME/server/lib into TC_HOME/common/lib.  This
:  : overrides/breaks/defeats the hierarchy of class loaders, but
:  : it does allow you to get around the
:  :
:  : java.lang.NoClassDefFoundError: 
: org/apache/commons/logging/LogFactory
:  :  at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
:  :
:  : These are the files that I moved to common/lib from
:  : server/lib (leaves server/lib directory empty):
:  :
:  : catalina-ant.jar
:  : catalina.jar
:  : commons-beanutils.jar
:  : commons-digester.jar
:  : commons-logging.jar
:  : commons-modeler.jar
:  : jakarta-regexp-1.2.jar
:  : mx4j-jmx.jar
:  : servlets-cgi.jar
:  : servlets-common.jar
:  : servlets-default.jar
:  : servlets-invoker.jar
:  : servlets-manager.jar
:  : servlets-ssi.jar
:  : servlets-webdav.jar
:  : tomcat-coyote.jar
:  : tomcat-http11.jar
:  : tomcat-jk.jar
:  : tomcat-jk2.jar
:  : tomcat-util.jar
:  : tomcat-warp.jar
:  :
:  : errors.
:  :
:  : Paul
:  :
:  : : -Original Message-
:  : : From: Matt Sales [mailto:[EMAIL PROTECTED]]
:  : : Sent: Thursday, January 16, 2003 10:35 AM
:  : : To: Tomcat Users List
:  : : Subject: mod_jk2/unixsocket: can't create apr
:  : :
:  : :
:  : : Hello,
:  : :
:  : : I'm having the same problem as a thread that was running in
:  : : mid-november, but there was never a resolution posted. I'm
:  : : trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache
:  : : 2.0.40, RH 7.2).
:  : :
:  : : I've tried putting log4j.jar into TC_HOME/common/lib, puting
:  : : the libapr.so  libjkjni.so into JRE/lib...  Apparently, it's
:  : : a class loader problem.  Is anyone running unix sockets with
:  : : tomcat 4.1.18?  I've had it working with 4.1.10...
:  : :
:  : :
:  : : I get the following error in catalina.out on startup:
:  : :
:  : : 10048 [main] INFO http11.Http11Protocol  - Starting Coyote
:  : : HTTP/1.1 on port 8080 Deep stack trace XXX public
:  : : java.lang.Throwable java.lang.Throwable.getCause() 10053
:  : : [main] ERROR server.JkMain  - 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)
:  : : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
:  : : at org.apache.jk.server.JkMain.start(JkMain.java:341)
:  : : at
:  : : 
: org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
:  : : at
:  : : org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
:  : : r.java:1056)
:  : : at
:  : : org.apache.catalina.core.StandardService.start(StandardService
:  : : .java:506)
:  : : at
:  : : org.apache.catalina.core.StandardServer.start(StandardServer.j
:  : : ava:2189)
:  : : at 
: org.apache.catalina.startup.Catalina.start(Catalina.java:512)
:  : : at
:  : org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
:  : : at
:  : org.apache.catalina.startup.Catalina.process(Catalina.java:180)
:  : : at 
: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
:  : : at
:  : : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
:  : : orImpl.java:39
:  : : )
:  : : at
:  : : sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
:  : : odAccessorImpl
:  : : .java:25

Re: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Matt Sales
Thanks, everyone, for your responses...

However, after moving all the jars into common/lib, I still get the same
problem  same error.
It just doesn't make sense...!

Am I missing something??


- Original Message -
From: Brzezinski, Paul J [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 11:07 AM
Subject: RE: mod_jk2/unixsocket: can't create apr


 Mark,

 Were you getting the ClassNotFound exception?  Didn't think you were.
 Hopefully that really was the root-cause of your problem and the problems
 with the Class Loader hierarchy have been resolved in 4.1.18.

 Paul


 : -Original Message-
 : From: Faine, Mark [mailto:[EMAIL PROTECTED]]
 : Sent: Thursday, January 16, 2003 10:55 AM
 : To: 'Tomcat Users List'
 : Subject: RE: mod_jk2/unixsocket: can't create apr
 :
 :
 : I had this problem and realized I had mistakenly commented
 : out the AJP 1.3 connector on port 8009 in server.xml
 :
 : Thanks,
 : -Mark
 :
 :
 : -Original Message-
 : From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]]
 : Sent: Thursday, January 16, 2003 9:52 AM
 : To: Tomcat Users List
 : Subject: RE: mod_jk2/unixsocket: can't create apr
 :
 :
 :
 : A work-around was to put all the jar files in
 : TC_HOME/server/lib into TC_HOME/common/lib.  This
 : overrides/breaks/defeats the hierarchy of class loaders, but
 : it does allow you to get around the
 :
 : java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
 :  at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
 :
 : These are the files that I moved to common/lib from
 : server/lib (leaves server/lib directory empty):
 :
 : catalina-ant.jar
 : catalina.jar
 : commons-beanutils.jar
 : commons-digester.jar
 : commons-logging.jar
 : commons-modeler.jar
 : jakarta-regexp-1.2.jar
 : mx4j-jmx.jar
 : servlets-cgi.jar
 : servlets-common.jar
 : servlets-default.jar
 : servlets-invoker.jar
 : servlets-manager.jar
 : servlets-ssi.jar
 : servlets-webdav.jar
 : tomcat-coyote.jar
 : tomcat-http11.jar
 : tomcat-jk.jar
 : tomcat-jk2.jar
 : tomcat-util.jar
 : tomcat-warp.jar
 :
 : errors.
 :
 : Paul
 :
 : : -Original Message-
 : : From: Matt Sales [mailto:[EMAIL PROTECTED]]
 : : Sent: Thursday, January 16, 2003 10:35 AM
 : : To: Tomcat Users List
 : : Subject: mod_jk2/unixsocket: can't create apr
 : :
 : :
 : : Hello,
 : :
 : : I'm having the same problem as a thread that was running in
 : : mid-november, but there was never a resolution posted. I'm
 : : trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache
 : : 2.0.40, RH 7.2).
 : :
 : : I've tried putting log4j.jar into TC_HOME/common/lib, puting
 : : the libapr.so  libjkjni.so into JRE/lib...  Apparently, it's
 : : a class loader problem.  Is anyone running unix sockets with
 : : tomcat 4.1.18?  I've had it working with 4.1.10...
 : :
 : :
 : : I get the following error in catalina.out on startup:
 : :
 : : 10048 [main] INFO http11.Http11Protocol  - Starting Coyote
 : : HTTP/1.1 on port 8080 Deep stack trace XXX public
 : : java.lang.Throwable java.lang.Throwable.getCause() 10053
 : : [main] ERROR server.JkMain  - 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)
 : : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
 : : at org.apache.jk.server.JkMain.start(JkMain.java:341)
 : : at
 : : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
 : : at
 : : org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
 : : r.java:1056)
 : : at
 : : org.apache.catalina.core.StandardService.start(StandardService
 : : .java:506)
 : : at
 : : org.apache.catalina.core.StandardServer.start(StandardServer.j
 : : ava:2189)
 : : at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 : : at
 : org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 : : at
 : org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 : : at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 : : at
 : : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 : : orImpl.java:39
 : : )
 : : at
 : : sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
 : : odAccessorImpl
 : : .java:25)
 : : at java.lang.reflect.Method.invoke(Method.java:324)
 : : at
 : org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 : : Deep stack trace
 : : XXX public java.lang.Throwable java.lang.Throwable.getCause()
 : : 10079 [main] ERROR server.JkMain  - Can't create apr
 : : java.lang.NoClassDefFoundError
 : : at java.lang.Class.forName0(Native Method)
 : : at java.lang.Class.forName(Class.java:140)
 : : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
 : : at org.apache.jk.server.JkMain.processProperty(JkMain.java:537

RE: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Brzezinski, Paul J






: -Original Message-
: From: Matt Sales [mailto:[EMAIL PROTECTED]] 
: Sent: Thursday, January 16, 2003 12:46 PM
: To: Tomcat Users List
: Subject: Re: mod_jk2/unixsocket: can't create apr
: 
: 
: Thanks, everyone, for your responses...
: 
: However, after moving all the jars into common/lib, I still 
: get the same problem  same error. It just doesn't make sense...!
: 
: Am I missing something??

What platform are you on (all of my experience has been w/Solaris 8 on
UltraSPARC)?

Where is the libjkjni.so located?

What about mod_jk2.so?

: - Original Message -
: From: Brzezinski, Paul J [EMAIL PROTECTED]
: To: Tomcat Users List [EMAIL PROTECTED]
: Sent: Thursday, January 16, 2003 11:07 AM
: Subject: RE: mod_jk2/unixsocket: can't create apr
: 
: 
:  Mark,
: 
:  Were you getting the ClassNotFound exception?  Didn't think 
: you were. 
:  Hopefully that really was the root-cause of your problem and the 
:  problems with the Class Loader hierarchy have been resolved 
: in 4.1.18.
: 
:  Paul
: 
: 
:  : -Original Message-
:  : From: Faine, Mark [mailto:[EMAIL PROTECTED]]
:  : Sent: Thursday, January 16, 2003 10:55 AM
:  : To: 'Tomcat Users List'
:  : Subject: RE: mod_jk2/unixsocket: can't create apr
:  :
:  :
:  : I had this problem and realized I had mistakenly commented
:  : out the AJP 1.3 connector on port 8009 in server.xml
:  :
:  : Thanks,
:  : -Mark
:  :
:  :
:  : -Original Message-
:  : From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]]
:  : Sent: Thursday, January 16, 2003 9:52 AM
:  : To: Tomcat Users List
:  : Subject: RE: mod_jk2/unixsocket: can't create apr
:  :
:  :
:  :
:  : A work-around was to put all the jar files in
:  : TC_HOME/server/lib into TC_HOME/common/lib.  This
:  : overrides/breaks/defeats the hierarchy of class loaders, but
:  : it does allow you to get around the
:  :
:  : java.lang.NoClassDefFoundError: 
: org/apache/commons/logging/LogFactory
:  :  at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
:  :
:  : These are the files that I moved to common/lib from
:  : server/lib (leaves server/lib directory empty):
:  :
:  : catalina-ant.jar
:  : catalina.jar
:  : commons-beanutils.jar
:  : commons-digester.jar
:  : commons-logging.jar
:  : commons-modeler.jar
:  : jakarta-regexp-1.2.jar
:  : mx4j-jmx.jar
:  : servlets-cgi.jar
:  : servlets-common.jar
:  : servlets-default.jar
:  : servlets-invoker.jar
:  : servlets-manager.jar
:  : servlets-ssi.jar
:  : servlets-webdav.jar
:  : tomcat-coyote.jar
:  : tomcat-http11.jar
:  : tomcat-jk.jar
:  : tomcat-jk2.jar
:  : tomcat-util.jar
:  : tomcat-warp.jar
:  :
:  : errors.
:  :
:  : Paul
:  :
:  : : -Original Message-
:  : : From: Matt Sales [mailto:[EMAIL PROTECTED]]
:  : : Sent: Thursday, January 16, 2003 10:35 AM
:  : : To: Tomcat Users List
:  : : Subject: mod_jk2/unixsocket: can't create apr
:  : :
:  : :
:  : : Hello,
:  : :
:  : : I'm having the same problem as a thread that was running in
:  : : mid-november, but there was never a resolution posted. I'm
:  : : trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache
:  : : 2.0.40, RH 7.2).
:  : :
:  : : I've tried putting log4j.jar into TC_HOME/common/lib, puting
:  : : the libapr.so  libjkjni.so into JRE/lib...  Apparently, it's
:  : : a class loader problem.  Is anyone running unix sockets with
:  : : tomcat 4.1.18?  I've had it working with 4.1.10...
:  : :
:  : :
:  : : I get the following error in catalina.out on startup:
:  : :
:  : : 10048 [main] INFO http11.Http11Protocol  - Starting Coyote
:  : : HTTP/1.1 on port 8080 Deep stack trace XXX public
:  : : java.lang.Throwable java.lang.Throwable.getCause() 10053
:  : : [main] ERROR server.JkMain  - 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)
:  : : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
:  : : at org.apache.jk.server.JkMain.start(JkMain.java:341)
:  : : at
:  : : 
: org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
:  : : at
:  : : org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
:  : : r.java:1056)
:  : : at
:  : : org.apache.catalina.core.StandardService.start(StandardService
:  : : .java:506)
:  : : at
:  : : org.apache.catalina.core.StandardServer.start(StandardServer.j
:  : : ava:2189)
:  : : at 
: org.apache.catalina.startup.Catalina.start(Catalina.java:512)
:  : : at
:  : org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
:  : : at
:  : org.apache.catalina.startup.Catalina.process(Catalina.java:180)
:  : : at 
: sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
:  : : at
:  : : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
:  : : orImpl.java:39

RE: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Faine, Mark
No my main problem was different but socket related.  I have seen that exact
error message before though, in the course of working out the problems with
my own install.

-Mark

-Original Message-
From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 10:08 AM
To: Tomcat Users List
Subject: RE: mod_jk2/unixsocket: can't create apr


Mark,

Were you getting the ClassNotFound exception?  Didn't think you were.
Hopefully that really was the root-cause of your problem and the problems
with the Class Loader hierarchy have been resolved in 4.1.18.

Paul


: -Original Message-
: From: Faine, Mark [mailto:[EMAIL PROTECTED]] 
: Sent: Thursday, January 16, 2003 10:55 AM
: To: 'Tomcat Users List'
: Subject: RE: mod_jk2/unixsocket: can't create apr
: 
: 
: I had this problem and realized I had mistakenly commented 
: out the AJP 1.3 connector on port 8009 in server.xml
: 
: Thanks,
: -Mark
: 
: 
: -Original Message-
: From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]] 
: Sent: Thursday, January 16, 2003 9:52 AM
: To: Tomcat Users List
: Subject: RE: mod_jk2/unixsocket: can't create apr
: 
: 
: 
: A work-around was to put all the jar files in 
: TC_HOME/server/lib into TC_HOME/common/lib.  This 
: overrides/breaks/defeats the hierarchy of class loaders, but 
: it does allow you to get around the 
: 
: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
:  at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
: 
: These are the files that I moved to common/lib from 
: server/lib (leaves server/lib directory empty):
: 
: catalina-ant.jar
: catalina.jar
: commons-beanutils.jar
: commons-digester.jar
: commons-logging.jar
: commons-modeler.jar
: jakarta-regexp-1.2.jar
: mx4j-jmx.jar
: servlets-cgi.jar
: servlets-common.jar
: servlets-default.jar
: servlets-invoker.jar
: servlets-manager.jar
: servlets-ssi.jar
: servlets-webdav.jar
: tomcat-coyote.jar
: tomcat-http11.jar
: tomcat-jk.jar
: tomcat-jk2.jar
: tomcat-util.jar
: tomcat-warp.jar
: 
: errors.
: 
: Paul
: 
: : -Original Message-
: : From: Matt Sales [mailto:[EMAIL PROTECTED]] 
: : Sent: Thursday, January 16, 2003 10:35 AM
: : To: Tomcat Users List
: : Subject: mod_jk2/unixsocket: can't create apr
: : 
: : 
: : Hello,
: : 
: : I'm having the same problem as a thread that was running in 
: : mid-november, but there was never a resolution posted. I'm 
: : trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache 
: : 2.0.40, RH 7.2).
: : 
: : I've tried putting log4j.jar into TC_HOME/common/lib, puting 
: : the libapr.so  libjkjni.so into JRE/lib...  Apparently, it's 
: : a class loader problem.  Is anyone running unix sockets with 
: : tomcat 4.1.18?  I've had it working with 4.1.10...
: : 
: : 
: : I get the following error in catalina.out on startup:
: : 
: : 10048 [main] INFO http11.Http11Protocol  - Starting Coyote 
: : HTTP/1.1 on port 8080 Deep stack trace XXX public 
: : java.lang.Throwable java.lang.Throwable.getCause() 10053 
: : [main] ERROR server.JkMain  - 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)
: : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
: : at org.apache.jk.server.JkMain.start(JkMain.java:341)
: : at 
: : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
: : at
: : org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
: : r.java:1056)
: : at
: : org.apache.catalina.core.StandardService.start(StandardService
: : .java:506)
: : at
: : org.apache.catalina.core.StandardServer.start(StandardServer.j
: : ava:2189)
: : at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
: : at 
: org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
: : at 
: org.apache.catalina.startup.Catalina.process(Catalina.java:180)
: : at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
: : at 
: : sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
: : orImpl.java:39
: : )
: : at 
: : sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
: : odAccessorImpl
: : .java:25)
: : at java.lang.reflect.Method.invoke(Method.java:324)
: : at 
: org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
: : Deep stack trace
: : XXX public java.lang.Throwable java.lang.Throwable.getCause() 
: : 10079 [main] ERROR server.JkMain  - Can't create apr 
: : java.lang.NoClassDefFoundError
: : at java.lang.Class.forName0(Native Method)
: : at java.lang.Class.forName(Class.java:140)
: : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
: : at org.apache.jk.server.JkMain.processProperty(JkMain.java:537)
: : at 
: org.apache.jk.server.JkMain.processProperties(JkMain.java:505)
: : at org.apache.jk.server.JkMain.start

Re: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Matt Sales
Paul,
I'm using RedHat 7.2
Tomcat 4.1.18
Apache 2.0.40

libjkjni.so is located in $CATALINA_HOME/server and pointed to in the

jk2.properties file:apr.NativeSo=$CATALINA_HOME/server


- Original Message -
From: Brzezinski, Paul J [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 16, 2003 12:56 PM
Subject: RE: mod_jk2/unixsocket: can't create apr








 : -Original Message-
 : From: Matt Sales [mailto:[EMAIL PROTECTED]]
 : Sent: Thursday, January 16, 2003 12:46 PM
 : To: Tomcat Users List
 : Subject: Re: mod_jk2/unixsocket: can't create apr
 :
 :
 : Thanks, everyone, for your responses...
 :
 : However, after moving all the jars into common/lib, I still
 : get the same problem  same error. It just doesn't make sense...!
 :
 : Am I missing something??

 What platform are you on (all of my experience has been w/Solaris 8 on
 UltraSPARC)?

 Where is the libjkjni.so located?

 What about mod_jk2.so?

 : - Original Message -
 : From: Brzezinski, Paul J [EMAIL PROTECTED]
 : To: Tomcat Users List [EMAIL PROTECTED]
 : Sent: Thursday, January 16, 2003 11:07 AM
 : Subject: RE: mod_jk2/unixsocket: can't create apr
 :
 :
 :  Mark,
 : 
 :  Were you getting the ClassNotFound exception?  Didn't think
 : you were.
 :  Hopefully that really was the root-cause of your problem and the
 :  problems with the Class Loader hierarchy have been resolved
 : in 4.1.18.
 : 
 :  Paul
 : 
 : 
 :  : -Original Message-
 :  : From: Faine, Mark [mailto:[EMAIL PROTECTED]]
 :  : Sent: Thursday, January 16, 2003 10:55 AM
 :  : To: 'Tomcat Users List'
 :  : Subject: RE: mod_jk2/unixsocket: can't create apr
 :  :
 :  :
 :  : I had this problem and realized I had mistakenly commented
 :  : out the AJP 1.3 connector on port 8009 in server.xml
 :  :
 :  : Thanks,
 :  : -Mark
 :  :
 :  :
 :  : -Original Message-
 :  : From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]]
 :  : Sent: Thursday, January 16, 2003 9:52 AM
 :  : To: Tomcat Users List
 :  : Subject: RE: mod_jk2/unixsocket: can't create apr
 :  :
 :  :
 :  :
 :  : A work-around was to put all the jar files in
 :  : TC_HOME/server/lib into TC_HOME/common/lib.  This
 :  : overrides/breaks/defeats the hierarchy of class loaders, but
 :  : it does allow you to get around the
 :  :
 :  : java.lang.NoClassDefFoundError:
 : org/apache/commons/logging/LogFactory
 :  :  at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
 :  :
 :  : These are the files that I moved to common/lib from
 :  : server/lib (leaves server/lib directory empty):
 :  :
 :  : catalina-ant.jar
 :  : catalina.jar
 :  : commons-beanutils.jar
 :  : commons-digester.jar
 :  : commons-logging.jar
 :  : commons-modeler.jar
 :  : jakarta-regexp-1.2.jar
 :  : mx4j-jmx.jar
 :  : servlets-cgi.jar
 :  : servlets-common.jar
 :  : servlets-default.jar
 :  : servlets-invoker.jar
 :  : servlets-manager.jar
 :  : servlets-ssi.jar
 :  : servlets-webdav.jar
 :  : tomcat-coyote.jar
 :  : tomcat-http11.jar
 :  : tomcat-jk.jar
 :  : tomcat-jk2.jar
 :  : tomcat-util.jar
 :  : tomcat-warp.jar
 :  :
 :  : errors.
 :  :
 :  : Paul
 :  :
 :  : : -Original Message-
 :  : : From: Matt Sales [mailto:[EMAIL PROTECTED]]
 :  : : Sent: Thursday, January 16, 2003 10:35 AM
 :  : : To: Tomcat Users List
 :  : : Subject: mod_jk2/unixsocket: can't create apr
 :  : :
 :  : :
 :  : : Hello,
 :  : :
 :  : : I'm having the same problem as a thread that was running in
 :  : : mid-november, but there was never a resolution posted. I'm
 :  : : trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache
 :  : : 2.0.40, RH 7.2).
 :  : :
 :  : : I've tried putting log4j.jar into TC_HOME/common/lib, puting
 :  : : the libapr.so  libjkjni.so into JRE/lib...  Apparently, it's
 :  : : a class loader problem.  Is anyone running unix sockets with
 :  : : tomcat 4.1.18?  I've had it working with 4.1.10...
 :  : :
 :  : :
 :  : : I get the following error in catalina.out on startup:
 :  : :
 :  : : 10048 [main] INFO http11.Http11Protocol  - Starting Coyote
 :  : : HTTP/1.1 on port 8080 Deep stack trace XXX public
 :  : : java.lang.Throwable java.lang.Throwable.getCause() 10053
 :  : : [main] ERROR server.JkMain  - 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)
 :  : : at org.apache.jk.server.JkMain.newHandler(JkMain.java:556)
 :  : : at org.apache.jk.server.JkMain.start(JkMain.java:341)
 :  : : at
 :  : :
 : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:169)
 :  : : at
 :  : : org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnecto
 :  : : r.java:1056)
 :  : : at
 :  : : org.apache.catalina.core.StandardService.start(StandardService
 :  : : .java:506)
 :  : : at
 :  : : org.apache.catalina.core.StandardServer.start

RE: mod_jk2/unixsocket: can't create apr

2003-01-16 Thread Brzezinski, Paul J
In my environment, I have libjkjni.so in $APACHE_HOME/lib (named jkjni.so --
minus the lib) -- and I'm using Apache 2.0.40 as well.  Jkjni.so isn't in
any other dir (under $TOMCAT_HOME)...

That probably won't help you, but give it a try?





: -Original Message-
: From: Matt Sales [mailto:[EMAIL PROTECTED]] 
: Sent: Thursday, January 16, 2003 1:15 PM
: To: Tomcat Users List
: Subject: Re: mod_jk2/unixsocket: can't create apr
: 
: 
: Paul,
: I'm using RedHat 7.2
: Tomcat 4.1.18
: Apache 2.0.40
: 
: libjkjni.so is located in $CATALINA_HOME/server and pointed to in the
: 
: jk2.properties file:apr.NativeSo=$CATALINA_HOME/server
: 
: 
: - Original Message -
: From: Brzezinski, Paul J [EMAIL PROTECTED]
: To: Tomcat Users List [EMAIL PROTECTED]
: Sent: Thursday, January 16, 2003 12:56 PM
: Subject: RE: mod_jk2/unixsocket: can't create apr
: 
: 
: 
: 
: 
: 
: 
: 
:  : -Original Message-
:  : From: Matt Sales [mailto:[EMAIL PROTECTED]]
:  : Sent: Thursday, January 16, 2003 12:46 PM
:  : To: Tomcat Users List
:  : Subject: Re: mod_jk2/unixsocket: can't create apr
:  :
:  :
:  : Thanks, everyone, for your responses...
:  :
:  : However, after moving all the jars into common/lib, I still
:  : get the same problem  same error. It just doesn't make sense...!
:  :
:  : Am I missing something??
: 
:  What platform are you on (all of my experience has been 
: w/Solaris 8 on 
:  UltraSPARC)?
: 
:  Where is the libjkjni.so located?
: 
:  What about mod_jk2.so?
: 
:  : - Original Message -
:  : From: Brzezinski, Paul J [EMAIL PROTECTED]
:  : To: Tomcat Users List [EMAIL PROTECTED]
:  : Sent: Thursday, January 16, 2003 11:07 AM
:  : Subject: RE: mod_jk2/unixsocket: can't create apr
:  :
:  :
:  :  Mark,
:  : 
:  :  Were you getting the ClassNotFound exception?  Didn't think
:  : you were.
:  :  Hopefully that really was the root-cause of your problem and the
:  :  problems with the Class Loader hierarchy have been resolved
:  : in 4.1.18.
:  : 
:  :  Paul
:  : 
:  : 
:  :  : -Original Message-
:  :  : From: Faine, Mark [mailto:[EMAIL PROTECTED]]
:  :  : Sent: Thursday, January 16, 2003 10:55 AM
:  :  : To: 'Tomcat Users List'
:  :  : Subject: RE: mod_jk2/unixsocket: can't create apr
:  :  :
:  :  :
:  :  : I had this problem and realized I had mistakenly commented
:  :  : out the AJP 1.3 connector on port 8009 in server.xml
:  :  :
:  :  : Thanks,
:  :  : -Mark
:  :  :
:  :  :
:  :  : -Original Message-
:  :  : From: Brzezinski, Paul J [mailto:[EMAIL PROTECTED]]
:  :  : Sent: Thursday, January 16, 2003 9:52 AM
:  :  : To: Tomcat Users List
:  :  : Subject: RE: mod_jk2/unixsocket: can't create apr
:  :  :
:  :  :
:  :  :
:  :  : A work-around was to put all the jar files in
:  :  : TC_HOME/server/lib into TC_HOME/common/lib.  This
:  :  : overrides/breaks/defeats the hierarchy of class loaders, but
:  :  : it does allow you to get around the
:  :  :
:  :  : java.lang.NoClassDefFoundError:
:  : org/apache/commons/logging/LogFactory
:  :  :  at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
:  :  :
:  :  : These are the files that I moved to common/lib from
:  :  : server/lib (leaves server/lib directory empty):
:  :  :
:  :  : catalina-ant.jar
:  :  : catalina.jar
:  :  : commons-beanutils.jar
:  :  : commons-digester.jar
:  :  : commons-logging.jar
:  :  : commons-modeler.jar
:  :  : jakarta-regexp-1.2.jar
:  :  : mx4j-jmx.jar
:  :  : servlets-cgi.jar
:  :  : servlets-common.jar
:  :  : servlets-default.jar
:  :  : servlets-invoker.jar
:  :  : servlets-manager.jar
:  :  : servlets-ssi.jar
:  :  : servlets-webdav.jar
:  :  : tomcat-coyote.jar
:  :  : tomcat-http11.jar
:  :  : tomcat-jk.jar
:  :  : tomcat-jk2.jar
:  :  : tomcat-util.jar
:  :  : tomcat-warp.jar
:  :  :
:  :  : errors.
:  :  :
:  :  : Paul
:  :  :
:  :  : : -Original Message-
:  :  : : From: Matt Sales [mailto:[EMAIL PROTECTED]]
:  :  : : Sent: Thursday, January 16, 2003 10:35 AM
:  :  : : To: Tomcat Users List
:  :  : : Subject: mod_jk2/unixsocket: can't create apr
:  :  : :
:  :  : :
:  :  : : Hello,
:  :  : :
:  :  : : I'm having the same problem as a thread that was running in
:  :  : : mid-november, but there was never a resolution posted. I'm
:  :  : : trying to use unixsockets with mod_jk2 (TC 4.1.18/Apache
:  :  : : 2.0.40, RH 7.2).
:  :  : :
:  :  : : I've tried putting log4j.jar into TC_HOME/common/lib, puting
:  :  : : the libapr.so  libjkjni.so into JRE/lib...  
: Apparently, it's
:  :  : : a class loader problem.  Is anyone running unix sockets with
:  :  : : tomcat 4.1.18?  I've had it working with 4.1.10...
:  :  : :
:  :  : :
:  :  : : I get the following error in catalina.out on startup:
:  :  : :
:  :  : : 10048 [main] INFO http11.Http11Protocol  - Starting Coyote
:  :  : : HTTP/1.1 on port 8080 Deep stack trace XXX public
:  :  : : java.lang.Throwable java.lang.Throwable.getCause() 10053
:  :  : : [main] ERROR server.JkMain  - Can't create apr