Having trouble to make ajp13 connector work (jk2 with Apache 2). Tomcat fails connecting initializing with the following error:
SEVERE: Can't create apr java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory As a consequence of this problem (I think it is related), I cannot access the dynamic pages from apache. Tomcat works great (http://localhost:8080/examples/) while http://localhost/examples/ returns a 500 Error (Connection refused on port 8019 - errno 111). (nb: I modified the default port to be 8019 instead of 8009). I've tried several variations of the jk2.properties and workers2.properties without success. Spent a lot of time on the mailing lists archives without success neither. I moved the commons-logging.jar from $TOMCAT/server/lib/ to $TOMCAT/common/lib as advised in some mails. This didn't work. Even if if had worked, it seems it would have been inapropriate: see http://issues.apache.org/bugzilla/show_bug.cgi?id=13689 I also used the attached jsp deployed in $TOMCAT/webapps/ROOT to see the CLASSPATH which is outputed as /usr/local/java/lib/tools.jar:/opt/tomcat/bin/bootstrap.jar which seems normal to me. I didn't try to modify the CLASSPATH in catalina.sh as it doesn't seem like the correct thing to do neither. It seems like this is a ClassLoader problem. If there is a way to enable debugging for the class loader, I am also interested. I found this: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/loader.html But didn't find yet how to use it. It seems that I am not the only one to have had this problem. I spent already too much time on it so I will accept any idea/hints on how to make this work. I am using - linux OS (Mandrake 9.0) - JDK 1.4.1_01-b01 - tomcat-4.1.18-LE-jdk14.jar - jakarta-tomcat-connectors-4.1.18-src.tar.gz - Apache 2.0.43 Error details: INFO: Starting Coyote HTTP/1.1 on port 8080 Dec 30, 2002 8:58:03 PM 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: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(CoyoteConnector.java:1056) at org.apache.catalina.core.StandardService.start(StandardService.java:506) at org.apache.catalina.core.StandardServer.start(StandardServer.java: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(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Dec 30, 2002 8:58:03 PM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Dec 30, 2002 8:58:03 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=2/239 config=/opt/tomcat/conf/jk2.properties -- Jerome Lacoste (Frisurf) <[EMAIL PROTECTED]> CoffeeBreaks
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>