tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jerome "Lacoste (Frisurf)" <lacos...@frisurf.no>
Subject Did someone manage to use a non default channel port for tomcat 4.1.18 JK2/ajp13 ?
Date Fri, 03 Jan 2003 02:12:17 GMT
I finally solved the problem I described in my emails titled:
"tomcat/apache connector startup failure: NCDFE fpr
org/apache/commons/logging/LogFactory"

sent both to the tomcat-user and tomcat-dev list.

I was trying to use a non-default channel port (8019) in my
configuration, following a working worklog of someone that had been
using tomcat 4.1.12.

Reverting to port 8009 solved the problem.

When I look at the logs it seems that the configuration file doesn't
seem to be used. If I set channelSocket.port=8019 in the jk2.properties,
it has no impact. I get an exception as described in my former emails
(pasted below). Using 8009, no exception is thrown and apr initializes
correctly.

So I am wondering if somebody else has tried using a different channel
port than the default 8009 with tomcat (lite) 4.1.18.

Thanks a lot for those whose can test their working config, using a
different port.

Cheers,

Jerome


On Mon, 2002-12-30 at 20:45, Jerome Lacoste (Frisurf) wrote:
> 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) <lacostej@frisurf.no>
CoffeeBreaks


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


Mime
View raw message