I have a little problem with Tomcat.
I’m using Eclipse Helios to luanch some Servlets, and I’ve installed Tomcat as a service on my Windows 7, but when I Run he give me an error Tomcat is already running, and when I stop the Tomcat service the compliation goes well but I get en error : The ressource is not found.
Is there any way to use Tomcat 6 without installing it as a service; if yes can you give any tutorials, qo I can my Servlets or JSP pages ?
Thanks.
If you’re going to develop with JSP/Servlets, you don’t need to install Tomcat as Windows service at all. That’s only interesting for production server machines running Windows which needs the server to be started on machine’s startup without the need for user login.
Uninstall everything and go back to the Tomcat download page and download the zip file instead of the service exe file. Once downloaded, just extract the zip, recreate the server in Eclipse, specify the extracted zip folder as server location and manage it from there. That’s it. No nasty exe files needed.
At the bottom of our Servlets wiki page you can find a lot of tutorials. Among others the Coreservlets tutorials covers the Eclipse+Tomcat combo.