Pergunta

I think this could be my first question here in stackoverflow.

It's about as simple as setting up tomcat server. I downloaded Tomcat 7 yesterday, unzipped and run the 'start'. For some strange reason, when I try to open "http://localhost:8080" it is redirecting me to the "GlassFish Enterprise Server".

I am not sure when I've installed GlassFish server (may be I did it long ago). I tried to stop it by using the commands necessary, from this url:

http://thedata.org/book/start-and-stop-glassfish-server

but it doesn't stop.

Can someone please help me in setting up Tomcat server ?

Thank you very much.

a bit off topic : All I want is a server environment (At my home) so that I can practice server-scripting programming like JSP, Servlets and so on, if anyone can help me in setting up a free server side 'eclipse' environment, that would be great, I appreciate it. Thank you.

Foi útil?

Solução

Glassfish is part of the Java EE SDK download. Probably you downloaded and installed Java EE SDK while being ignorant that it's actually a software bundle which includes the Glassfish application server, the Netbeans IDE (optionally) and several documentation/examples.

Likely you installed Glassfish as a Windows Service which causes that it's always started whenever you start Windows. Apart from turning it off by the Service Manager, I'd just uninstall the Java EE SDK by the control panel. You don't need it if you just want to go ahead with Eclipse+Tomcat.

As to learning JSP/Servlets, I'd suggest to use our wiki pages as a starting point.

At the bottom you can find links to Coreservlets.com tutorials, they cover learning JSP/Servlets using the Eclipse+Tomcat combination.

Outras dicas

You can always change the tomcat port. Locate the file $TOMCAT_HOME\conf\server.xml" Replace <Connector port="8080" with <Connector port="8081" for example. Start tomcat and test it at http://localhost:8081.

Cheers,

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top