1: Install JDK
2. Install eclipse
3: Install myeclipse. Copy it to the eclipse directory and install it as a plug-in.
4: Download the Tomcat compressed package and decompress it to a directory.
5. Configure tomcat in Eclipse:
Window/preferences/myeclipse/tomcat 6.x
Set the directory to Tomcat decompression directory
JDK is the JDK directory (not JRE)
Change launch to run mode.
6: Find the server. xml file under * \ tomcat-6.0.14 \ conf.
Set the port to a value greater than 1024.
<Connector Port = "1221" protocol = "HTTP/1.1"
Connectiontimeout = "20000"
Redirectport = "8443" type = "regxph" text = "yourobjectname"/>
<Connector executor = "tomcatthreadpool"
Port = "1221" protocol = "HTTP/1.1"
Connectiontimeout = "20000"
Redirectport = "8443" type = "regxph" text = "yourobjectname"/>
Error handling:
1: When Tomcat is started
Severe: Error initializing endpoint
Severe: Error starting endpoint
Severe: Catalina. Start:
This indicates that the selected port is in use. You can use netstat in cmd to check whether the port is in use. You can set the port according to Step 6.
2: If the file is viewed in the browser:
HTTP status 404 error
The file is not found. Check whether the file location is correct or the link address is incorrect.
3: If the file is viewed in the browser:
HTTP status 500 Error
The absolute URI: http://struts.apache.org/tags-bean cannot be resolved in either web. xml or the jar files deployed with this application
Struts is not configured.
Right-click the project and choose "myeclipse-add struts capabilities ".
4: If
The absolute URI: http://java.sun.com/jsp/jstl/core cannot be resolved in either web. xml or the jar files deployed with this application
Jstl is not configured.
Download jakarta-taglibs-standard-1.1.2.zip from the website, decompress it and put it in... \ tomcat-6.0.14 \ webapps \ Project name \ WEB-INF
Under