JSP development configuration for Eclipse, myeclipse, and tomcat

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.