• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Startup problem with Tomcat

 
shreyansh jain
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
I am using Linux/Debian system
when I start tomcat; it is started but I am unable to get the Home Page.

Here is the Catalina.out

4 Jun, 2010 11:33:36 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/lib/jvm/java-6-sun-1.6.0.12/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.12/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.12/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
4 Jun, 2010 11:33:38 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use <null>:8080
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:549)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:176)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1014)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:680)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
at org.apache.catalina.startup.Catalina.load(Catalina.java:548)
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:261)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:141)
at org.apache.tomcat.util.net.DefaultServerSocketFactory.createSocket(DefaultServerSocketFactory.java:50)
at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:538)
... 12 more

One more thing I did before starting Tomcat that I killed the process that is running on port 8080

Any one have any Idea why Home Page is not displayed.
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shreyansh jain wrote:
One more thing I did before starting Tomcat that I killed the process that is running on port 8080

Any one have any Idea why Home Page is not displayed.


You are correct, some process is using port 8080. Are you sure that you killed the process on port 8080 before starting Tomcat. How did you check it?

By the way, what is Home Page and what does it mean "not displayed"?
 
Kees Jan Koster
JavaMonitor Support
Rancher
Posts: 251
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear shreyansh,

Here is how to troubleshoot the java.net.BindException you are seeing on various operating systems.

http://java-monitor.com/forum/showthread.php?t=22

Essentially: use netstat.

Kees Jan
 
shreyansh jain
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used the following command

server02:/usr/local/tomcat# fuser -n tcp 80
80/tcp: 3439 3499 3500 3501 3502 3503
server02:/usr/local/tomcat# fuser -n tcp 8080
8080/tcp: 3504
server02:/usr/local/tomcat# kill -9 3504
server02:/usr/local/tomcat# fuser -n tcp 8080
server02:/usr/local/tomcat# fuser -n tcp 8080
server02:/usr/local/tomcat# /etc/init.d/tomcat start


since running fuser -n tcp 8080 didn't give any output means now no peocess is running on 8080
And here Home Page means the page displayed for logging http://localhost:8080/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic