Re: Tomcat fail to start : Socket bind failed: [22] Invalid argument
well well... I still get Sep 16, 2009 12:58:15 PM org.apache.coyote.http11.Http11AprProtocol start SEVERE: Error starting endpoint java.lang.Exception: Socket bind failed: [22] Invalid argument while the listener is really commented in server.xml (both CATALINA_HOME and BASE to be sure) (So I don't understand why apr listener still tries to start) while I start tomcat I ran : tho...@home:/usr/local/apr/lib$ sudo lsof | grep libtcnative java 17935root mem REG9,2 679305 32416984 /usr/local/apr/lib/libtcnative-1.so.0.1.14 So I remove the .14 version and link this filename to the .16 version. (maybe I miss a ldconfig ??) Well, it now works again... Thanks very much for your help ! Regards, Thomas. On Tue, Sep 15, 2009 at 19:50, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Thomas Manson [mailto:dev.mansontho...@gmail.com] Subject: Re: Tomcat fail to start : Socket bind failed: [22] Invalid argument If I comment the listener, compile tomcat-native-1.1.16-src, it will still use APR but this time it will work with ipv6 ? No; if you comment out the listener, Tomcat will not use APR. Try deleting or renaming the DLL to insure Tomcat is not using APR, then run your IPv6 test using the standard and NIO Connectors. If either of those fail, it may be a JVM problem. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Re: Tomcat fail to start : Socket bind failed: [22] Invalid argument
Hi Mark, thanks for the answer. Just for clarification, the ipv6 bug is still in the 6.0.20 version? How do I disable APR ? I thought that APR == tc native... Am I wrong ? Regards, Thomas. On Fri, Sep 11, 2009 at 11:08, Mark Thomas ma...@apache.org wrote: ith tc native 1.1.1
Re: Tomcat fail to start : Socket bind failed: [22] Invalid argument
Still not clear for me. If I comment the listener, compile tomcat-native-1.1.16-src, it will still use APR but this time it will work with ipv6 ? or it is still not working with ipv6, that's why I need to disable ipv6 ? Because, I've checked in my server.xml I already tried to disable apr : !--Listener className=org.apache.catalina.core.AprLifecycleListener SSLEngine=off /-- And I've already compiled tc natvie 1.1.16 but still getting the error. So I guess this 'fix' the error but ipv6 functionnality is not fixed ? Thomas. On Tue, Sep 15, 2009 at 19:32, Mark Thomas ma...@apache.org wrote: was fixed for Tomcat 6.0.20 and tc native 1.1.16 onwards
Tomcat fail to start : Socket bind failed: [22] Invalid argument
Hi, I've a tomcat (6.0.18) running on an ubuntu 9.04 (64bit) that run a Jira and a personnal webapp that somehow stop to works. I didn't change anything to the tomcat configuration or webapps. Tomcat was using APR and is linked to Apache 2 with modjk. One day I noticed that tomcat was not running, so I try to start it and I get this error : Sep 2, 2009 3:42:25 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: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) at org.apache.catalina.startup.Catalina.load(Catalina.java:535) at org.apache.catalina.startup.Catalina.load(Catalina.java:555) 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) Sep 2, 2009 3:42:25 PM org.apache.catalina.startup.Catalina load SEVERE: Catalina.start L*ifecycleException: 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:535) at org.apache.catalina.startup.Catalina.load(Catalina.java:555) 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) Sep 2, 2009 3:42:25 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1340 ms Sep 2, 2009 3:42:25 PM org.apache.catalina.core.StandardService start I've googled and find only old post related to APR. APR has been compiled this way : sudo aptitude install make gcc gcc-4.2 gcc-4.2-locales gcc-4.2-multilib libapr1-dev cd /usr/local/apache-tomcat-6.0.18/bin/ tar zxf tomcat-native.tar.gz cd /usr/local/apache-tomcat-6.0.18/bin/tomcat-native-1.1.14-src/jni/native ./configure --with-apr=/usr/bin/apr-config; make; sudo make install cd /usr/lib sudo ln -s /usr/local/apr/lib/libtcnative-1.so.0.1.14 libtcnative-1.so and, it was working : tho...@home:/home/special/tomcat/logs$ cat catalina.out Oct 18, 2008 9:13:02 PM org.apache.catalina.core.AprLifecycleListener init *INFO: Loaded APR based Apache Tomcat Native library 1.1.14.* Oct 18, 2008 9:13:02 PM org.apache.catalina.core.AprLifecycleListener init *INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].* Oct 18, 2008 9:13:02 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: Failed to initialize the SSLEngine. Oct 18, 2008 9:13:02 PM org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Oct 18, 2008 9:13:02 PM org.apache.coyote.ajp.AjpAprProtocol init INFO: Initializing Coyote AJP/1.3 on ajp-8009 Oct 18, 2008 9:13:02 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 708 ms So I've tryed to upgrade to tomcat 6.0.20 without APR installed, no change. (I'm still using this version now) Regarding the port bind issue : tho...@home:/home/special/tomcat/conf$ grep port server.xml Server port=8005 shutdown=SHUTDOWN !-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -- Define a non-SSL HTTP/1.1 Connector on port 8080 Connector port=8080 protocol=HTTP/1.1 port=8080 protocol=HTTP/1.1 !-- Define a SSL HTTP/1.1 Connector on port 8443 Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true !-- Define an AJP 1.3 Connector on port 8009 -- !--Connector port=8009 protocol=AJP/1.3 redirectPort=8443 /-- !-- You should set jvmRoute to support load-balancing via AJP ie : *Standart ports configured : 8080, 8005, 8009* tho...@home:/home/special/tomcat/logs$ /bin/ps -ef | grep java thomas 12628 10333 0 10:21 pts/000:00:00 grep --color=auto java *no java running*
Re: Timeout while stopping tomcat
Ok, If I want to build an link between my Apache2 and Tomcat 6, will I need the AJP connector ? I don't know this part very well dispite I've use it some times. Also, which [ModJK/JK/JK2 or else] project is the correct to use with Tomcat 6 ? Thanks for your help, Thomas. On Sat, Oct 18, 2008 at 19:33, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Thomas Manson [mailto:[EMAIL PROTECTED] Subject: Timeout while stopping tomcat Tomcat starts correctly, but a timeout occurs when stopping Any idea of what's wrong ? Nothing's really wrong, but you can get rid of the error message by commenting out the AJP connector that you're not using. Turn off the Connector element for port 8009 in conf/server.xml. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Timeout while stopping tomcat
Thanks Charles, I want a Apache 2 server to use PHP app's too with tomcat apps using port 80. I think that's the only way of doing, isn't it ? Thomas On Sat, Oct 18, 2008 at 19:44, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Thomas Manson [mailto:[EMAIL PROTECTED] Subject: Re: Timeout while stopping tomcat If I want to build an link between my Apache2 and Tomcat 6, will I need the AJP connector ? Yes. Also, which [ModJK/JK/JK2 or else] project is the correct to use with Tomcat 6 ? The mod_jk2 package has been deprecated for several years, so don't even think about that. The mod_jk package is the current one; documentation is here: http://tomcat.apache.org/connectors-doc/ Unless you have a real need for putting httpd in front of Tomcat (and serving static content doesn't qualify), you're better off without it from both performance and maintainability aspects. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]