Wednesday, September 22, 2010

Unable to start Tomcat from Eclipse plug-in

I just found a Tomcat for Eclipse plug-in from eclipsetotale, which is very convenient for me to start and stop Tomcat just right in the Eclipse. It is not a Tomcat, but it provide a shortcut to trigger Tomcat. Thus you still need to point the Tomcat directory in order for this plug-in to trigger Tomcat.

Anyhow, sometimes it might failed due to the Tomcat service has already been started before you start it (again) in the Eclipse. There will be an error showing int the stack trace:

Address already in use: JVM_Bind:8080

To verify whether the Tomcat is started, go to Tomcat directory and execute the tomcatw.exe, this will pop up Tomcat service window. The status info will be shown in the window. You may stop it if it already started. Try start again the Tomcat from Eclipse once the Tomcat service has stopped.