当前位置:首页 > 开发 > 编程语言 > Eclipse > 正文

Installing Tomcat 7 and Using it with Eclipse

发表于: 2013-04-24   作者:darrenzhu   来源:转载   浏览:
摘要: Reference URL http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat-7-with-eclipse.html After you new a tomcat server in eclipse and use worspace metadata(does not modify Tomcat installation
Reference URL
http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat-7-with-eclipse.html

After you new a tomcat server in eclipse and use worspace metadata(does not modify Tomcat installation), you may see 404 error when accessing localhost:8080/, you need to do the following thing:

Copy the ROOT (Default) Web App into Eclipse.

Eclipse forgets to copy the default apps (ROOT, examples, etc.) when it creates a Tomcat folder inside the Eclipse workspace. Go to C:\apache-tomcat-7.0.34\webapps, R-click on the ROOT folder and copy it. Then go to your Eclipse workspace, go to the .metadata folder, and search for "wtpwebapps". You should find something like your-eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps (or .../tmp1/wtpwebapps if you already had another server registered in Eclipse). Go to the wtpwebapps folder, R-click, and paste ROOT (say "yes" if asked if you want to merge/replace folders/files). Then reload http://localhost/ to see the Tomcat welcome page.

Installing Tomcat 7 and Using it with Eclipse

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号