Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

server start-up problem

 
Ramathilagam Bragaspathi
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My problem is I have installed jakart-tomcat-5.0.12 and when I startup server it giving error message

----------------
SEVERE: Catalina.start:
LifecycleException: Protocol handler start failed: java.net.BindException: Addr
ess already in use: JVM_Bind:80
at org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:
1397)
at org.apache.catalina.core.StandardService.start(StandardService.java:5
28)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:234
3)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:392)
Aug 5, 2004 5:01:17 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 18236 ms

-----------
and when I try to open http://localhost/ getting, page not found error

please help, how to fix it.

Rama
 
Me
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ramathilagam Bragaspathi:

java.net.BindException: Address already in use: JVM_Bind:80


Looks like your port is being used by another server may be IIS or somethingl like that. You have to change port either Tomcat or the other server running on port 80
 
Ramathilagam Bragaspathi
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since I am using windows xp home edition, it is not possibile to have IIS is on. And also can you please write me how to check any other server running on port 80

Thanks
 
DM
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
telnet localhost 80

If you see a blank window, then there is some process listening on port 8080. If you see "Connection refused" or similar error, then the port should be clear.

-Durgesh
SCJP 1.4, SCWCD 1.4, SCDJWS(beta)
[ August 05, 2004: Message edited by: durgesh mankekar ]
 
Baps Vakkalagadda
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Recently I got similar kind of problem. I found that tomcat was setup as a service and was starting at the system start up. Since tomcat is already running and listening to the port, it gave me BindException when I tried to start it.

If it is the case, You can directly use it without starting it again.
 
kai wen ham
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Maybe you can try download a dos program called fport.exe. It will show all your port usage.

http://www.foundstone.com/index.htm?subnav=resources/navigation.htm&subcontent=/resources/proddesc/fport.htm

Thank you!
Kai Wen
 
Kanag sen
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Try using "netstat -a" in the command line to findout the application using the 80 port. Or it is even possible that another instance of tomcat is running, try shutdown first and then try startup.
 
satish sathineni
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i also faced the problem many a time...

The reason i understood was if the tomcat is not properly shutdown as tomcat does not shutdown cleanly some times i dont the reason....

The best solution is to simply use the command ....

shutdown.sh for linux
shutdown.bat for windows...

other wise it could be the same port reused by two different servers i faced the same problem when
running both JBoss and Tomcat becoz JBoss uses the Tomcat as their Http Server internally and the problem is tomcat bydefault uses 8080 port if u have separate tomcat installed obviously both are configured to use 8080 port.....

Regards
Satish Kumar
Software Engineer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic