aspose file tools*
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 Spring in Action 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
Author

server start-up problem

Ramathilagam Bragaspathi
Greenhorn

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: 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

Joined: Dec 01, 2003
Posts: 51
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

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

Thanks
DM
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.

-Durgesh
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
Greenhorn

Joined: Sep 28, 2003
Posts: 5
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

Joined: Sep 07, 2003
Posts: 8
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.


=============<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 ....

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
 
jQuery in Action, 2nd edition
 
subject: server start-up problem