Setting up Tomcat with Eclipse:
- Tomcat 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 likeyour-eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps(or .../tmp1/wtpwebappsif you already had another server registered in Eclipse).
- Go to the wtpwebappsfolder, R-click, and paste ROOT (say "yes" if asked if you want to merge/replace folders/files).
- Then reload http://localhost:8080/ to see the Tomcat welcome page.t server directory structure:
Comments
Post a Comment