Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
waihongchan
Post subject: Can't start Tomcat in myeclipse  PostPosted: Jun 05, 2008 - 11:29 AM
Registered Member
Registered Member


Joined: Jun 05, 2008
Posts: 4

I can't start Tomcat in myeclipse. I have installed Tomcat and have configured it in myeclipse. But I hit the following error when trying to start Tomcat

SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
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 org.apache.catalina.core.StandardServer.await(StandardServer.java:363)
at org.apache.catalina.startup.Catalina.await(Catalina.java:616)
at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
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:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Can  PostPosted: Jun 05, 2008 - 01:25 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8013

Make sure your connector looks like this (assuming your working with Tomcat 5.x)
http://www.myeclipseide.com/PNphpBB2-viewtopic-t-13941.html

Also, make sure that under your configured connector, JDK > Tomcat JDK points to a JDK and not a JRE.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
waihongchan
Post subject: RE: Can  PostPosted: Jun 06, 2008 - 02:38 AM
Registered Member
Registered Member


Joined: Jun 05, 2008
Posts: 4

I have done all the things you mentioned but still the same problem. As for JDK, I'm using 1.5.0_15
 
 View user's profile Send private message  
Reply with quote Back to top
waihongchan
Post subject: RE: Can  PostPosted: Jun 06, 2008 - 03:25 AM
Registered Member
Registered Member


Joined: Jun 05, 2008
Posts: 4

Did some checks and realised the eclipse IDE is using JRE, could this be the possible cause?
 
 View user's profile Send private message  
Reply with quote Back to top
waihongchan
Post subject: RE: Can  PostPosted: Jun 06, 2008 - 05:01 AM
Registered Member
Registered Member


Joined: Jun 05, 2008
Posts: 4

I figured it out that javaw.exe is running as a process and is using port 8005 which Tomcat is using. What I did was kill this process and Tomcat started successfully in myEclipse
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Can  PostPosted: Jun 06, 2008 - 03:29 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8013

Glad you got it to work.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits