"Java Development Series"--tomcat compile error

Source: Internet
Author: User

Since there was a portable Web project in Eclipse, there was a problem when I logged in to the IDE again after I had been useless for a long time.

First of all, there are two versions of jdk,1.6 and 1.7 in My computer. Two versions of TOMCAT6 and 7 and two versions of Eclipse IDE 3.5 and 4.0+.

When I start the development environment, I want to add an app to the server and find an error:

There is no resources that can is added or removed from the server.

I used to use the application how bad back to make it. Then delete the server add again, when I add tomcat6, I found the following error:

Tomcat version 6.0 only supports EE 1.2 1.3 1.4 and Java EE 5 Web modules.

When I add 7 o'clock, I find the following error:

Project Facet Java version 1.7 is not supported

See the above error, do not think! Must be a version of the problem!

This is strange, how 6 and 7 are not good to make it. Search the Internet for information, the original project has a file:org.eclipse.wst.common.project.facet.core.xml

<?xml version="1.0"encoding="UTF-8"?><faceted-project> <fixedfacet="Wst.jsdt.web"/> <fixedfacet="Jst.web"/> <fixedfacet="Java"/> <installed facet="Java"version="1.7"/> <installed facet="Jst.web"version="3.0"/> <installed facet="Wst.jsdt.web"version="1.0"/></faceted-project>

This file is configured with the build of the project using the JDK, as well as the Jst.web version, can be found, I used in the above configuration file 1.7 but my native JDK is 1.6.

So change this to 1.6 test, the corresponding jst.web change to 2.5, it succeeds. Specifically, the role of this configuration file also requires research under Tomcat. The profile was also not found in the view. Send a Bo to ask questions.

Java Development Series--tomcat compile error

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.