Error: Tomcat version 6.0 only supports Java 1.2, 1.3, 1.4, and Java EE 5 Web Modules__java

Source: Internet
Author: User
Tags apache tomcat
Project could not add deployment to Tomcat 6.0, prompt for error: Tomcat version 6.0 only supports Java 1.2, 1.3, 1.4, and Java EE 5 Web Modules


0, if the determination of the Code does not use the JDK1.7 inside the unique things, change the configuration can be.
Not very sure there is no use, do not want to modify the configuration file, change Tomcat 7 department, with JDK1.7 Bar.

1, Selected Items-"right button, properties--" Project facets--"
Version of Dynamic Web module is changed to 2.5
Java version changed to 1.6.

or directly modify the file Org.eclipse.wst.common.project.facet.core.xml
/projectname/.settings/org.eclipse.wst.common.project.facet.core.xml

Jst.web changed from 3.0 to 2.5,
Java changed from 1.7 to 1.6,
Delete <runtime name= "Apache Tomcat v7.0"/>



<?xml version= "1.0" encoding= "UTF-8"?>
<faceted-project>
<fixed facet= "Java"/>
<fixed facet= "Jst.web"/>
<fixed facet= "Wst.jsdt.web"/>
<installed facet= "Jst.web" version= "2.5"/>
<installed facet= "Wst.jsdt.web" version= "1.0"/>
<installed facet= "java" version= "1.6"/>
</faceted-project>


2, Selected Items-"right", properties--"Java build path--" libraries, the Tomcat replaced by 6.0.



Displays the. settings/org.eclipse.wst.common.project.facet.core.xml file in Eclipse


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.