When you use Eclipse to develop B/s structured Web applications, you must use a Web application server, common application servers are tomcat, Jboss, WebLogic, WebSphere, SUN System application Server, and so on.
This time we need to do struts2 testing in eclipse development tools, just to find out that eclipse on your machine is not integrated with Tomcat, and that I have downloaded one directly to the Tomcatforeclipse plug-in online, and that's exactly what you've provided. Take a look at my configuration steps.
Installation of 1.Eclipse. This is downloaded from the Eclipse's official website. Do not teach, download the post EXE file to perform the installation. My version is, Eclipse IDE for Java developers
Version:helios Service Release 2 Build id:20110218-0911
2. Download a tomcat from the official Apache website, and I'm under the 7.x version with the file name: Apache-tomcat-7.0.5.exe
Address http://tomcat.apache.org/download-60.cgi, download the Windows version, download EXE file after the installation, the installation Content section of the option to select All, all other default configuration, in the middle there is an admin password place, enter your own password can be set.
Jre6.0.23 is used on the machine.
3. Download the Tomcat plugin for Eclipse.
: http://www.eclipsetotale.com/tomcatPlugin.html
This page also, installation instructions, English good can see for themselves.
I'm under this: Tomcatpluginv33.zip support tomcat7.x
After downloading, unzip. The extracted files are placed in the eclipse's plug directory.
1. Unzip the downloaded Tomcatpluginv32.zip to create a tomcatPluginV32 folder.
2. Copy the "com.sysdeo.eclipse.tomcat_3.2.0" folder under the TomcatPluginV32 folder to D:\eclipse\plugins.
3. Double-click the Eclipse.exe icon under the Eclipse folder on the D drive to run eclipse.
4. Open the Preferences dialog box under the Windows menu in the Eclipse menu bar.
5. Click Tomcat in the list box on the left side of the Preferences dialog box.
6. In the "Tomcat version" option group on the right side of the "Preferences" dialog box, select the Tomcat edition to 6.x.
7. Enter D:\ apache-tomcat-6.0.10 in the Tomcat home text box on the right side of the Preferences dialog box.
8. Select Server.xml in the "Context Declaration mode" option group on the right side of the "Preferences" dialog box, then click the "OK" button. Configure the Tomcat plugin for Eclipse as shown in screen 5.4.
When the configuration is complete, click Eclipse's Start Tomcat icon to start tomcat,5.5 as shown
Then start eclipse and see three icons,
This time point three icons, there is a hint to tell you no.
Also need to configure the version of Tomcat, and Tomcat's home, reference graph,
Configuration is complete, the application button is pressed, closed, and the Tomcat service is stopped first from the window's service,
Go back to Eclipse's page, click on the three icons, OK, the following console window is reflected,
Then open the browser, Http://localhost:8080/ok, Tomcat started the
Finally, summary, very simple, configuration. Do your own quick, follow the online tutorials is easy to people around confused, but, said to say, my side of the article is also reference to the online part of the tutorial.
Want to be able to provide assistance to the person who configures.
Example of configuration steps for Eclipse integrated Tomcat