Re: Socket bind failed: [22] Invalid argument - Fedora 11
Ole Ersoy wrote: Mark, I looked at the startup log a little closer and there's this line: Jul 15, 2009 2:24:09 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.14. I noticed below that you said I should be using 1.1.6. So maybe this is the problem. At first I thought I was using a much more recent version of APR, since I have the following installed: apr-1.3.5-1.fc11.i586 [...@ole noarch]$ rpm -q apr-devel apr-devel-1.3.5-1.fc11.i586 [...@ole noarch]$ rpm -q apr-util apr-util-1.3.7-1.fc11.i586 So I'm trying to figure out why Tomcat says it's using 1.1.14? Any ideas? Those are the APR packages, not the Tomcat Native(APR based) connector. No idea what the native connector would be called if you get the package via rpm. I always build Tomcat/httpd stuff from source on linux. Take a look at the changelog http://tomcat.apache.org/native-doc/miscellaneous/changelog.html The ipv6 issue was fixed in 1.1.15 Upgrading to the latest Tomcat Native (1.1.16) should fix this. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Socket bind failed: [22] Invalid argument - Fedora 11
Mark, (And everyone) Thanks a gazillion for helping to clarify this. I was building the APR connector with the wrong version number (1.1.14). I must have had old apr connector files laying around from when I was building earlier tomcat versions. The log is clean now. Thanks again, - Ole - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Socket bind failed: [22] Invalid argument - Fedora 11
Hi, I'm trying to get Tomcat 6.0.20 with APR and JSVC to run on Fedora 11. During startup I get this: SEVERE: Error initializing endpoint java.lang.Exception: Socket bind failed: [22] Invalid argument at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:623) 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) I think it's because IPv6 is enabled. I'd like to keep IPv6 enabled. Anyone know if there's a way? TIA, - Ole - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Socket bind failed: [22] Invalid argument - Fedora 11
Or it could be the connector in server.xml is misconfigured. Could you post the one appears to be trying to bind to the sshd port 22? --David Ole Ersoy wrote: Hi, I'm trying to get Tomcat 6.0.20 with APR and JSVC to run on Fedora 11. During startup I get this: SEVERE: Error initializing endpoint java.lang.Exception: Socket bind failed: [22] Invalid argument at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:623) 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) I think it's because IPv6 is enabled. I'd like to keep IPv6 enabled. Anyone know if there's a way? TIA, - Ole - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Socket bind failed: [22] Invalid argument - Fedora 11
With the latest APR/native (1.1.16) and 6.0.20 ipv6 should work. At least it does for me on Ubuntu. Mark --- Original Message --- From: Ole Ersoy ole.er...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: 15/07/09, 18:45:06 Subject: Socket bind failed: [22] Invalid argument - Fedora 11 Hi, I'm trying to get Tomcat 6.0.20 with APR and JSVC to run on Fedora 11. During startup I get this: SEVERE: Error initializing endpoint java.lang.Exception: Socket bind failed: [22] Invalid argument at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:623) 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) I think it's because IPv6 is enabled. I'd like to keep IPv6 enabled. Anyone know if there's a way? TIA, - Ole - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Socket bind failed: [22] Invalid argument - Fedora 11
On 15/07/09 19:52, David Smith wrote: Or it could be the connector in server.xml is misconfigured. Could you post the one appears to be trying to bind to the sshd port 22? No, 22 represents the EINVAL from errno.h - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Socket bind failed: [22] Invalid argument - Fedora 11
On 15/07/09 19:45, Ole Ersoy wrote: Hi, I'm trying to get Tomcat 6.0.20 with APR and JSVC to run on Fedora 11. During startup I get this: SEVERE: Error initializing endpoint java.lang.Exception: Socket bind failed: [22] Invalid argument at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:623) I think it's because IPv6 is enabled. I'd like to keep IPv6 enabled. Anyone know if there's a way? It can be IPV6 issue if you use null as address inside connector. BTW is it working without JSVC? Regards -- ^TM - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Socket bind failed: [22] Invalid argument - Fedora 11
Mark, Thanks - yeah - I read up on the ubuntu ticket, and decided to give 6.0.20 a try. I built the rpm package using the following dependencies: Requires: apr-devel = 1.3.5 Requires: apr = 1.3.5 Requires: apr-util = 1.3.7 I'm going to try just doing a manual install next to make sure it works with the shell scripts, like Mladen suggested. Ole - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Socket bind failed: [22] Invalid argument - Fedora 11
Hi Mladen, I tried adding the address attribute like this: Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 address=192.168.1.4 / I also tried: Connector port=80 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=443 address=127.0.0.1 / But I still get the same message. I'll try it without jsvc next. Thanks, - Ole - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Socket bind failed: [22] Invalid argument - Fedora 11
Hi, I just tried a manual install and start using only the startup.sh script and it works fine. [r...@ole bin]# chmod u+x *.sh [r...@ole bin]# ./startup.sh Using CATALINA_BASE: /home/ole/apache-tomcat-6.0.20 Using CATALINA_HOME: /home/ole/apache-tomcat-6.0.20 Using CATALINA_TMPDIR: /home/ole/apache-tomcat-6.0.20/temp Using JRE_HOME: /opt/jdk1.6.0_14 Log: Jul 15, 2009 2:36:48 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/jdk1.6.0_14/jre/lib/i386/client:/opt/jdk1.6.0_14/jre/lib/i386:/opt/jdk1.6.0_14/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib Jul 15, 2009 2:36:49 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jul 15, 2009 2:36:49 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1268 ms Jul 15, 2009 2:36:49 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 15, 2009 2:36:49 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.20 Jul 15, 2009 2:36:50 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Jul 15, 2009 2:36:50 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jul 15, 2009 2:36:50 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/89 config=null Jul 15, 2009 2:36:50 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 1881 ms Ole - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Socket bind failed: [22] Invalid argument - Fedora 11
Mark, I looked at the startup log a little closer and there's this line: Jul 15, 2009 2:24:09 PM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.14. I noticed below that you said I should be using 1.1.6. So maybe this is the problem. At first I thought I was using a much more recent version of APR, since I have the following installed: apr-1.3.5-1.fc11.i586 [...@ole noarch]$ rpm -q apr-devel apr-devel-1.3.5-1.fc11.i586 [...@ole noarch]$ rpm -q apr-util apr-util-1.3.7-1.fc11.i586 So I'm trying to figure out why Tomcat says it's using 1.1.14? Any ideas? Thanks again, - Ole On 07/15/2009 01:10 PM, Mark Thomas wrote: With the latest APR/native (1.1.16) and 6.0.20 ipv6 should work. At least it does for me on Ubuntu. Mark --- Original Message --- From: Ole Ersoyole.er...@gmail.com To: Tomcat Users Listusers@tomcat.apache.org Sent: 15/07/09, 18:45:06 Subject: Socket bind failed: [22] Invalid argument - Fedora 11 Hi, I'm trying to get Tomcat 6.0.20 with APR and JSVC to run on Fedora 11. During startup I get this: SEVERE: Error initializing endpoint java.lang.Exception: Socket bind failed: [22] Invalid argument at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:623) 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) I think it's because IPv6 is enabled. I'd like to keep IPv6 enabled. Anyone know if there's a way? TIA, - Ole - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org