MyEclipse: Can't start Tomcat in myeclipse

waihongchan - Jun 05, 2008 - 11:29 AM
Post subject: Can't start Tomcat in myeclipse
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)
support-nipun - Jun 05, 2008 - 01:25 PM
Post subject: RE: Can
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.
waihongchan - Jun 06, 2008 - 02:38 AM
Post subject: RE: Can
I have done all the things you mentioned but still the same problem. As for JDK, I'm using 1.5.0_15
waihongchan - Jun 06, 2008 - 03:25 AM
Post subject: RE: Can
Did some checks and realised the eclipse IDE is using JRE, could this be the possible cause?
waihongchan - Jun 06, 2008 - 05:01 AM
Post subject: RE: Can
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
support-nipun - Jun 06, 2008 - 03:29 PM
Post subject: RE: Can
Glad you got it to work.
All times are GMT - 6 Hours
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits