I had similar or worse problems - and I tried all the tricks I could think of.
The only solution is to copy the .jar files in CATALINA/server/lib. I think build.xml does that automatically. If you do that,Class.forName should work fine. Using jk as a webapp ( without any additional configuration ) doesn't work for 4.x, you must copy the files and add the connector to server.xml ( but all settings can be in web.xml ). Costin On Wed, 16 Jan 2002, jean-frederic clere wrote: > Hi, > > I have some problem to load classes in JkConnector.java. > I have added the following code: (ct comes from Container > ct=service.getContainer();) > Class channelclass = > ct.getParentClassLoader().loadClass(channelclassname); > But it allows throws the following: > +++ > java.lang.ClassNotFoundException: org.apache.jk.common.ChannelSocket > at > >org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1124) > at > >org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:989) > at > org.apache.jk.server.tomcat40.JkConnector.start(JkConnector.java:213) at > org.apache.catalina.core.StandardService.start(StandardService.java:395) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:505) > at org.apache.catalina.startup.Catalina.start(Catalina.java:776) > at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) > at org.apache.catalina.startup.Catalina.process(Catalina.java:179) > at java.lang.reflect.Method.invoke(Native Method) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) > +++ > > Any hints? (That is with TC4.0.1). > > Cheers > > Jean-frederic > > -- > To unsubscribe, e-mail: <mailto:[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]>