tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastiaan van Erk <sebs...@sebster.com>
Subject Tomcat 6.0.18 + APR + Ubuntu 7.10 Problem
Date Thu, 22 Jan 2009 11:16:43 GMT
Hi,

I'm trying to get APR running on Tomcat 6.0.18.

I'm using the Tomcat zip directly downloaded from the Tomcat website, 
with no changes to any of the config files. I tried both the included 
tcnative-1.1.14 and I also downloaded the tcnative-1.1.16 from Apache; I 
compiled both. However when I start tomcat I get the following error:

Jan 22, 2009 12:04:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.16.
Jan 22, 2009 12:04:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters 
[false], random [true].
Jan 22, 2009 12:04:57 PM org.apache.coyote.http11.Http11AprProtocol init
SEVERE: Error initializing endpoint
java.lang.Exception: Socket bind failed: [22] Invalid argument
	at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:612)
	at 
org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107)
	at org.apache.catalina.connector.Connector.initialize(Connector.java:1058)
	at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
	at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
	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:597)
	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Jan 22, 2009 12:04:57 PM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed: 
java.lang.Exception: Socket bind failed: [22] Invalid argument
	at org.apache.catalina.connector.Connector.initialize(Connector.java:1060)
	at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
	at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:530)
	at org.apache.catalina.startup.Catalina.load(Catalina.java:550)
	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:597)
	at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Jan 22, 2009 12:04:57 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1136 ms
Jan 22, 2009 12:04:57 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina

I checked google, and I found a bug report with this error for tcnative, 
which is marked as RESOLVED, CLOSED.

https://issues.apache.org/bugzilla/show_bug.cgi?id=43327

I'm wondering in which version the fix is (since you can see from the 
log that I'm using 1.1.16 and it's not working. I'm also wondering how I 
can resolve this issue and get APR working.

Thanks in advance,
Sebastiaan van ERk

Mime
View raw message