You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Karthik Nanjangude <ka...@xius-bcgi.com> on 2010/11/03 06:31:37 UTC
Tomcat shuts down with exception within few seconds?
Hi
Tomcat shuts down with exception within few seconds?
SPEC
Sun JDK 1.5
TOMCAT 6.0.29 [ Startup port 8090 / Shut down Port 8.91 ]
O/s
$ uname -a
Linux instaroamd 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux
$ lsb_release -a
LSB Version: 1.3
Distributor ID: RedHatEnterpriseAS
Description: Red Hat Enterprise Linux AS release 3 (Taroon)
Release: 3
Codename: Taroon
Exception
INFO: Deploying web application directory docs
Nov 3, 2010 9:45:33 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Nov 3, 2010 9:45:34 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Nov 3, 2010 9:45:34 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8090
Nov 3, 2010 9:45:34 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 3, 2010 9:45:34 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/55 config=null
Nov 3, 2010 9:45:34 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1858 ms
Nov 3, 2010 9:45:44 AM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8091]:
java.net.UnknownHostException: localhost: localhost
at java.net.InetAddress.getAllByName0(InetAddress.java:1128)
at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
at java.net.InetAddress.getAllByName(InetAddress.java:1061)
at java.net.InetAddress.getByName(InetAddress.java:958)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
at org.apache.catalina.startup.Catalina.await(Catalina.java:662)
at org.apache.catalina.startup.Catalina.start(Catalina.java:614)
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Nov 3, 2010 9:45:44 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8090
Nov 3, 2010 9:45:45 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Nov 3, 2010 9:45:45 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8090
with regards
N.S.Karthik
RE: Tomcat shuts down with exception within few seconds?
Posted by Karthik Nanjangude <ka...@xius-bcgi.com>.
Hi
TOMCAT/conf/server.xml
Changed the 8080 to 8090 and 8005 to 8091
Assuming some other application may be using these port
/etc/hosts
127.0.0.1 localhost.localdomain localhost
After applying this Tomcat is working perfectly...
Thx to Brian Muha
With regards
karthik
-----Original Message-----
From: Pid [mailto:pid@pidster.com]
Sent: Wednesday, November 03, 2010 12:40 PM
To: Tomcat Users List
Subject: Re: Tomcat shuts down with exception within few seconds?
On 03/11/2010 07:30, Karthik Nanjangude wrote:
> Hi
>
>>> TOMCAT 6.0.29 [ Startup port 8090 / Shut down Port 8091 ]
Tomcat doesn't have a startup port, but why are those two ports different?
> $ ping localhost
> ping: unknown host localhost
Fix your OS networking.
$ cat /etc/hosts
This file should normally contain:
127.0.0.1 localhost localhost.localdomain
on the first line, or something very similar.
What does yours contain?
p
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat shuts down with exception within few seconds?
Posted by Pid <pi...@pidster.com>.
On 03/11/2010 07:30, Karthik Nanjangude wrote:
> Hi
>
>>> TOMCAT 6.0.29 [ Startup port 8090 / Shut down Port 8091 ]
Tomcat doesn't have a startup port, but why are those two ports different?
> $ ping localhost
> ping: unknown host localhost
Fix your OS networking.
$ cat /etc/hosts
This file should normally contain:
127.0.0.1 localhost localhost.localdomain
on the first line, or something very similar.
What does yours contain?
p
Re: Tomcat shuts down with exception within few seconds?
Posted by Brian Muha <br...@peer39.com>.
/etc/hosts
127.0.0.1 localhost.localdomain localhost
On 11/3/10 8:30 AM, "Karthik Nanjangude" <ka...@xius-bcgi.com> wrote:
Hi
>> TOMCAT 6.0.29 [ Startup port 8090 / Shut down Port 8091 ]
$ ping localhost
ping: unknown host localhost
Any alternatives
With regards
Karthik
-----Original Message-----
From: jie tang [mailto:crybird2002@gmail.com]
Sent: Wednesday, November 03, 2010 11:26 AM
To: Tomcat Users List
Subject: Re: Tomcat shuts down with exception within few seconds?
>From the exception stack.
Maybe you should use the command "ping localhost" to see whether your host
can resolve the host-name "localhost".
2010/11/3 Karthik Nanjangude <ka...@xius-bcgi.com>
> Hi
>
> Tomcat shuts down with exception within few seconds?
>
>
>
> SPEC
> Sun JDK 1.5
> TOMCAT 6.0.29 [ Startup port 8090 / Shut down Port 8.91 ]
> O/s
>
> $ uname -a
> Linux instaroamd 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686
> i686 i386 GNU/Linux
>
> $ lsb_release -a
> LSB Version: 1.3
> Distributor ID: RedHatEnterpriseAS
> Description: Red Hat Enterprise Linux AS release 3 (Taroon)
> Release: 3
> Codename: Taroon
>
>
>
> Exception
> INFO: Deploying web application directory docs
> Nov 3, 2010 9:45:33 AM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory examples
> Nov 3, 2010 9:45:34 AM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory ROOT
> Nov 3, 2010 9:45:34 AM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8090
> Nov 3, 2010 9:45:34 AM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Nov 3, 2010 9:45:34 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/55 config=null
> Nov 3, 2010 9:45:34 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 1858 ms
> Nov 3, 2010 9:45:44 AM org.apache.catalina.core.StandardServer await
> SEVERE: StandardServer.await: create[8091]:
> java.net.UnknownHostException: localhost: localhost
> at java.net.InetAddress.getAllByName0(InetAddress.java:1128)
> at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
> at java.net.InetAddress.getAllByName(InetAddress.java:1061)
> at java.net.InetAddress.getByName(InetAddress.java:958)
> at
> org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
> at org.apache.catalina.startup.Catalina.await(Catalina.java:662)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:614)
> 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:585)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> Nov 3, 2010 9:45:44 AM org.apache.coyote.http11.Http11Protocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8090
> Nov 3, 2010 9:45:45 AM org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> Nov 3, 2010 9:45:45 AM org.apache.coyote.http11.Http11Protocol destroy
> INFO: Stopping Coyote HTTP/1.1 on http-8090
>
>
>
>
> with regards
>
> N.S.Karthik
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomcat shuts down with exception within few seconds?
Posted by Karthik Nanjangude <ka...@xius-bcgi.com>.
Hi
>> TOMCAT 6.0.29 [ Startup port 8090 / Shut down Port 8091 ]
$ ping localhost
ping: unknown host localhost
Any alternatives
With regards
Karthik
-----Original Message-----
From: jie tang [mailto:crybird2002@gmail.com]
Sent: Wednesday, November 03, 2010 11:26 AM
To: Tomcat Users List
Subject: Re: Tomcat shuts down with exception within few seconds?
>From the exception stack.
Maybe you should use the command "ping localhost" to see whether your host
can resolve the host-name "localhost".
2010/11/3 Karthik Nanjangude <ka...@xius-bcgi.com>
> Hi
>
> Tomcat shuts down with exception within few seconds?
>
>
>
> SPEC
> Sun JDK 1.5
> TOMCAT 6.0.29 [ Startup port 8090 / Shut down Port 8.91 ]
> O/s
>
> $ uname -a
> Linux instaroamd 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686
> i686 i386 GNU/Linux
>
> $ lsb_release -a
> LSB Version: 1.3
> Distributor ID: RedHatEnterpriseAS
> Description: Red Hat Enterprise Linux AS release 3 (Taroon)
> Release: 3
> Codename: Taroon
>
>
>
> Exception
> INFO: Deploying web application directory docs
> Nov 3, 2010 9:45:33 AM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory examples
> Nov 3, 2010 9:45:34 AM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory ROOT
> Nov 3, 2010 9:45:34 AM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8090
> Nov 3, 2010 9:45:34 AM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Nov 3, 2010 9:45:34 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/55 config=null
> Nov 3, 2010 9:45:34 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 1858 ms
> Nov 3, 2010 9:45:44 AM org.apache.catalina.core.StandardServer await
> SEVERE: StandardServer.await: create[8091]:
> java.net.UnknownHostException: localhost: localhost
> at java.net.InetAddress.getAllByName0(InetAddress.java:1128)
> at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
> at java.net.InetAddress.getAllByName(InetAddress.java:1061)
> at java.net.InetAddress.getByName(InetAddress.java:958)
> at
> org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
> at org.apache.catalina.startup.Catalina.await(Catalina.java:662)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:614)
> 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:585)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> Nov 3, 2010 9:45:44 AM org.apache.coyote.http11.Http11Protocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8090
> Nov 3, 2010 9:45:45 AM org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> Nov 3, 2010 9:45:45 AM org.apache.coyote.http11.Http11Protocol destroy
> INFO: Stopping Coyote HTTP/1.1 on http-8090
>
>
>
>
> with regards
>
> N.S.Karthik
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat shuts down with exception within few seconds?
Posted by jie tang <cr...@gmail.com>.
>From the exception stack.
Maybe you should use the command "ping localhost" to see whether your host
can resolve the host-name "localhost".
2010/11/3 Karthik Nanjangude <ka...@xius-bcgi.com>
> Hi
>
> Tomcat shuts down with exception within few seconds?
>
>
>
> SPEC
> Sun JDK 1.5
> TOMCAT 6.0.29 [ Startup port 8090 / Shut down Port 8.91 ]
> O/s
>
> $ uname -a
> Linux instaroamd 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686
> i686 i386 GNU/Linux
>
> $ lsb_release -a
> LSB Version: 1.3
> Distributor ID: RedHatEnterpriseAS
> Description: Red Hat Enterprise Linux AS release 3 (Taroon)
> Release: 3
> Codename: Taroon
>
>
>
> Exception
> INFO: Deploying web application directory docs
> Nov 3, 2010 9:45:33 AM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory examples
> Nov 3, 2010 9:45:34 AM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory ROOT
> Nov 3, 2010 9:45:34 AM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8090
> Nov 3, 2010 9:45:34 AM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Nov 3, 2010 9:45:34 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/55 config=null
> Nov 3, 2010 9:45:34 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 1858 ms
> Nov 3, 2010 9:45:44 AM org.apache.catalina.core.StandardServer await
> SEVERE: StandardServer.await: create[8091]:
> java.net.UnknownHostException: localhost: localhost
> at java.net.InetAddress.getAllByName0(InetAddress.java:1128)
> at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
> at java.net.InetAddress.getAllByName(InetAddress.java:1061)
> at java.net.InetAddress.getByName(InetAddress.java:958)
> at
> org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
> at org.apache.catalina.startup.Catalina.await(Catalina.java:662)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:614)
> 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:585)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> Nov 3, 2010 9:45:44 AM org.apache.coyote.http11.Http11Protocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8090
> Nov 3, 2010 9:45:45 AM org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> Nov 3, 2010 9:45:45 AM org.apache.coyote.http11.Http11Protocol destroy
> INFO: Stopping Coyote HTTP/1.1 on http-8090
>
>
>
>
> with regards
>
> N.S.Karthik
>
>