File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes server start-up problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "server start-up problem" Watch "server start-up problem" New topic

server start-up problem

Ramathilagam Bragaspathi

Joined: Aug 05, 2004
Posts: 7
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: Addr
ess already in use: JVM_Bind:80
at org.apache.coyote.tomcat5.CoyoteConnector.start(
at org.apache.catalina.core.StandardService.start(
at org.apache.catalina.core.StandardServer.start(
at org.apache.catalina.startup.Catalina.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
at java.lang.reflect.Method.invoke(
at org.apache.catalina.startup.Bootstrap.start(
at org.apache.catalina.startup.Bootstrap.main(
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.

Ranch Hand

Joined: Dec 01, 2003
Posts: 51
Originally posted by Ramathilagam Bragaspathi: 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

Joined: Aug 05, 2004
Posts: 7
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

Ranch Hand

Joined: May 10, 2004
Posts: 31
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.

SCJP 1.4, SCWCD 1.4, SCDJWS(beta)
[ August 05, 2004: Message edited by: durgesh mankekar ]
Baps Vakkalagadda
Ranch Hand

Joined: May 25, 2004
Posts: 47
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

Joined: Sep 28, 2003
Posts: 5

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

Thank you!
Kai Wen
Kanag sen

Joined: Sep 07, 2003
Posts: 8

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.

=============<br />SCJCP, SCWCD
satish sathineni
Ranch Hand

Joined: May 03, 2004
Posts: 46
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 .... 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.....

Satish Kumar
Software Engineer
I agree. Here's the link:
subject: server start-up problem
It's not a secret anymore!