Apache with JK ApacheConfig Class not found!
Hi list, I'm trying to configure JK 1.2.5 with Apache 2.0.49 and Tomcat 5.0.19, and I have added the following lines to the server.xml file: Under Server container and under Host I have tried using tomcat4 according to the How-to, but none of them work and I get the cnfe which is shown below, thanks in advance! --- Catalina.start: java.lang.ClassNotFoundException: org.apache.ajp.tomcat5.config.ApacheConfig java.lang.ClassNotFoundException: org.apache.ajp.tomcat5.config.ApacheConfig at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java :112) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at org.apache.catalina.startup.Catalina.start(Catalina.java:586) 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.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Apr 8, 2004 3:10:31 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 0 ms java.lang.reflect.InvocationTargetException 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.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Caused by: java.lang.NullPointerException at org.apache.catalina.startup.Catalina.await(Catalina.java:657) at org.apache.catalina.startup.Catalina.start(Catalina.java:617) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache with JK ApacheConfig Class not found!
Hi, Do you have your workers2.properties file setup and have the following entry in your httpd.conf : LoadModule jk2_module modules/mod_jk2.so. With this setup I don't think you need to have any entries in your server.xml file specifically about JK2, the only thing you need to worry about at that point is setting the memory, loading etc params for the connection in server.xml. Matt - Original Message - From: "Yang Xiao" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Thursday, April 08, 2004 1:15 PM Subject: Apache with JK ApacheConfig Class not found! > Hi list, > I'm trying to configure JK 1.2.5 with Apache 2.0.49 and Tomcat 5.0.19, and I > have added the following lines to the server.xml file: > Under Server container >modJk="/usr/local/apache/modules/mod_jk.so" /> > > and under Host > > append="true" forwardAll="false" modJk="/usr/local/apache/modules/mod_jk.so" > workersConfig="/usr/local/tomcat/conf/workers.properties" /> > > > I have tried using tomcat4 according to the How-to, but none of them work > and I get the cnfe which is shown below, thanks in advance! > > --- > Catalina.start: java.lang.ClassNotFoundException: > org.apache.ajp.tomcat5.config.ApacheConfig > java.lang.ClassNotFoundException: org.apache.ajp.tomcat5.config.ApacheConfig > at > org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) > at > org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) > at > org.apache.commons.digester.Digester.startElement(Digester.java:1276) > at > org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java > :112) > at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown > Source) > at > org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno > wn Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc > her.dispatch(Unknown Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at org.apache.commons.digester.Digester.parse(Digester.java:1548) > at org.apache.catalina.startup.Catalina.load(Catalina.java:528) > at org.apache.catalina.startup.Catalina.start(Catalina.java:586) > 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.start(Bootstrap.java:297) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) > Apr 8, 2004 3:10:31 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 0 ms > java.lang.reflect.InvocationTargetException > 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.start(Bootstrap.java:297) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) > Caused by: java.lang.NullPointerException > at org.apache.catalina.startup.Catalina.await(Catalina.java:657) > at org.apache.catalina.startup.Catalina.start(Catalina.java:617) > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache with JK ApacheConfig Class not found!
Argh, found through the old archives, it's changed to org.apache.jk.config.ApacheConfig Yang -Original Message- From: Yang Xiao [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 2:16 PM To: 'Tomcat Users List' Subject: Apache with JK ApacheConfig Class not found! Hi list, I'm trying to configure JK 1.2.5 with Apache 2.0.49 and Tomcat 5.0.19, and I have added the following lines to the server.xml file: Under Server container and under Host I have tried using tomcat4 according to the How-to, but none of them work and I get the cnfe which is shown below, thanks in advance! --- Catalina.start: java.lang.ClassNotFoundException: org.apache.ajp.tomcat5.config.ApacheConfig java.lang.ClassNotFoundException: org.apache.ajp.tomcat5.config.ApacheConfig at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566) at org.apache.commons.digester.Digester.startElement(Digester.java:1276) at org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester.java :112) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno wn Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc her.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.Catalina.load(Catalina.java:528) at org.apache.catalina.startup.Catalina.start(Catalina.java:586) 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.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Apr 8, 2004 3:10:31 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 0 ms java.lang.reflect.InvocationTargetException 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.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Caused by: java.lang.NullPointerException at org.apache.catalina.startup.Catalina.await(Catalina.java:657) at org.apache.catalina.startup.Catalina.start(Catalina.java:617) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]