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