开发者

Working with tomcat

I'm used to work with WAMP and I find it very easy to understand. Now I need to start up with JSP and I've开发者_Python百科 downloaded Tomcat7. I installed it together with JRE and Eclipse but i just can't get how it works. I placed my project in /webaps/ but when i access the local host, it shows just the WAMP projects (placed in /www/ folder).

How exactly is this Tomcat server used and is there a way to combine it with WAMP so it can be easier to use?

Thanks!


Tomcat listens by default on port 8080. Make sure that you're opening http://localhost:8080. The port number is configureable in Tomcat's /conf/server.xml.

To get Tomcat and WAMP (specifically: Apache HTTPD) to work togeher, use mod_jk. Or use XAMPP, it comes with integrated Tomcat next to WAMP as well.


Did you start it up? The startup script is usually in TOMCAT/bin/startup.bat or Tomcat/bin/startup.sh on a unix environment.


Like @BalusC said: You tomcat is normally running at port 8080.

But also important is that you compiled your java classes of your project. Your eclipse project is not autocomplied.

Most simple way: export you project as *.war in the /webapps folder. than your tomcat should autodeploy your project.

But you could also use the Tomcat6 IDE for eclipse where you can start your project by "Run As"/"On Server"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜