I have installed
tomcat 7 as a windows service and it starts and runs perfecting well as a service (ie i can see status, manageer view perfectly well using internet explorer)
I also have a
Java web app that has this server associated with the project in eclipse.
The problem i have is that when i already have tomcat running as a service and then try 'Run as' >run on server - in eclipse for my web app - the eclipse console window looks like it going through the motions of
attempting to start the tomcat server itself (see console window output below)
Mar 06, 2012 9:16:21 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
Mar 06, 2012 9:16:22 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8009"]
Mar 06, 2012 9:16:23 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
Mar 06, 2012 9:16:23 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
Mar 06, 2012 9:16:24 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-8009"]
Mar 06, 2012 9:16:25 AM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
Mar 06, 2012 9:16:25 AM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8009"]
Shortly after which an error message is displayed in eclipse -
Starting Tomcat v7.0 at localhost has encountered a problem.
Server Tomcat v7.0 Server at localhost failed to start.
Ok - so i naturally guess that this is likely because the server is already started, so my first thought it to stop the windows service that is running my tomcat server and simply let eclipse start it on its own.
This starts the server from eclipse perfectly well - although i cannot simply type localhost:8080 in IE but need to use the webapp project name to see my project, i cannot get to status or manager page.
My question is - is there a way to have my tomcat service always running and use it in eclipse also or do i need to keep going through the hassle of stopping my tomcat windows service first.
Thanks
Steve