Environment: Windows7 32, the Java environment is configured
One. Eclipse installation
- On the Eclipse website (http://www.eclipse.org/downloads/), download the Eclipse version for Web develop Eclipse-jee-kepler-sr2-win32.zip
Decompression to E:\software\eclipse;
Two. Tomcat installation
- On the Tomcat website (http://tomcat.apache.org/download-70.cgi) Download the Apache-tomcat-7.0.52-windows-x86.zip and unzip to E:\software\ apache-tomcat-7.0.52
- Set environment variables: New system variables, environment variables, advanced system settings, properties, computers, and so on (Tomcat_home, E:\software\apache-tomcat-7.0.52)
Three. Eclipse Integrated Tomcat
- Download Tomcatpluginv33.zip (http://www.eclipsetotale.com/tomcatPlugin.html);
- Unzip the above compressed package into Eclipse's Dropins directory (E:\software\eclipse\dropins);
- Opening eclipse, three kitten-like icons indicate a preliminary success.
- Open Eclipse,windows->preferences->tomcat, select the installed Tomcat version (tomcat7.0), and set the Tomcat installation location (E:\software\ apache-tomcat-7.0.52), and set to Server.xml.
- Create a new server,new->server->tomcat v7.0 (select server type)->next;
- This is basically done and can be used.
Problems that may occur during use:
1. Unable to create a new Tomcat 7.0 server at new server
WORKAROUND: Reconfigure the tomcat environment, eclipse-windows->preferences->server->runtime environment, Set the TOMCAT7 installation path to the path of the TOMCAT7 that you installed.
2. Unable to access http://localhost:8080/and its own new project
Workaround:
Reconfigure the following Tomcat server:
On the server page in Eclipse, double-click the Tomcat service to see the configuration page:
You can see that the red circle is selected with the Use workspace metadata (does not modify Tomcat installion)
If a project is deployed in this tomcat, the options in the red circle will be grayed out and cannot be modified, and the modifications must first be removed from the deployed service in Tomcat.
By right-clicking the Tomcat server, select Add and remove to remove the deployed project in the popup dialog box. When you are finished removing the OK, you will see the Options Panel section above editable.
Select the Use Tomcat installation (Task control of Tomcat installation) to select Tomcat's installation directory as the publishing directory for the project.
Then, down four lines, see "Deploy Path"? The value behind it defaults to "Wtpwebapps", which is changed to "WebApps", which is Tomcat
The name of the folder in which the item is published. After modification, turn off the page and save the configuration. This deploys the project to the WebApp in the Tomcat installation directory
Restart the Tomcat server, access to the http://localhost:8080 will be able to access the normal, your own deployment of the project is also able to access.
3. You do not want to use Eclipse's built-in browser to access pages with your own browser.
Workaround: Eclipse->windows->preferences->general->web broswer, set to external IE browser or other.