tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tuekung <kitti....@gmail.com>
Subject Re: Tomcat 6.0.16 error startup on AIX 6.1
Date Fri, 14 Aug 2009 12:35:00 GMT



BerMO wrote:
> 
> I've install tomcat 6.0.16 on AIX and try to start it up but when tomcat
> started it's immediately shutdown.
> 
> The catalina.out is show below, please help
> 
> Jul 29, 2008 11:54:45 AM 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:
> /usr/java5_64/jre/bin:/usr/java5_64/jre/bin:/usr/java5_64/jre/bin/classic:/usr/java5_64/jre/bin:/usr/java5_64/jre/bin/j9vm:/usr/lib
> Jul 29, 2008 11:54:45 AM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Jul 29, 2008 11:54:45 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1019 ms
> Jul 29, 2008 11:54:45 AM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Jul 29, 2008 11:54:45 AM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
> Jul 29, 2008 11:54:46 AM org.apache.catalina.core.StandardContext
> addApplicationListener
> INFO: The listener "listeners.ContextListener" is already configured for
> this context. The duplicate definition has been ignored.
> Jul 29, 2008 11:54:46 AM org.apache.catalina.core.StandardContext
> addApplicationListener
> INFO: The listener "listeners.SessionListener" is already configured for
> this context. The duplicate definition has been ignored.
> Jul 29, 2008 11:54:46 AM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Jul 29, 2008 11:54:46 AM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Jul 29, 2008 11:54:46 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/19  config=null
> Jul 29, 2008 11:54:46 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 1080 ms
> Jul 29, 2008 11:54:46 AM org.apache.catalina.core.StandardServer await
> SEVERE: StandardServer.await: create[8005]: 
> java.net.UnknownHostException: localhost: localhost
>         at java.net.InetAddress.getAllByName0(InetAddress.java:1245)
>         at java.net.InetAddress.getAllByName(InetAddress.java:1172)
>         at java.net.InetAddress.getAllByName(InetAddress.java:1095)
>         at java.net.InetAddress.getByName(InetAddress.java:1045)
>         at
> org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
>         at org.apache.catalina.startup.Catalina.await(Catalina.java:642)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:602)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:618)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Jul 29, 2008 11:54:46 AM org.apache.coyote.http11.Http11Protocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8080
> Jul 29, 2008 11:54:46 AM org.apache.catalina.connector.Connector pause
> SEVERE: Protocol handler pause failed
> java.net.UnknownHostException: NEOSTA: NEOSTA
>         at java.net.InetAddress.getLocalHost(InetAddress.java:1474)
>         at
> org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:484)
>         at
> org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:283)
>         at org.apache.jk.server.JkMain.pause(JkMain.java:681)
>         at
> org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
>         at
> org.apache.catalina.connector.Connector.pause(Connector.java:1073)
>         at
> org.apache.catalina.core.StandardService.stop(StandardService.java:563)
>         at
> org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
>         at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
>         at
> org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671)
> Jul 29, 2008 11:54:47 AM org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> Jul 29, 2008 11:54:47 AM org.apache.coyote.http11.Http11Protocol destroy
> INFO: Stopping Coyote HTTP/1.1 on http-8080
> 

"java.net.UnknownHostException: NEOSTA: NEOSTA
        at java.net.InetAddress.getLocalHost(InetAddress.java:1474) "

It because of the java IPv4Stack option when you're starting tomcat with IBM
JDK5 (both of 32 and 64bits). So you must add this line
"-Djava.net.preferIPv4Stack=true" in catalina.sh

it solve in IBM JDK6 !!

ps. you can use IBM JDK5 (with no -Djava.net.preferIPv4Stack=true) until
tomcat 6.0.14 after this version it will show this error


-- 
View this message in context: http://www.nabble.com/Tomcat-6.0.16-error-startup-on-AIX-6.1-tp18705310p24970996.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message