Troubleshoot problems with importing Java Web projects---cannot be read or was not a valid ZIP file

Source: Internet
Author: User
Tags apache tomcat

1. Archive for Required library: ' Webcontent/web-inf/lib/readme.txt ' in Project ' xxxxxxxxx ' cannot being read or is not a Val ID ZIP File

2. The project cannot be built until build path errors is resolved

3. Target Runtime Apache Tomcat v6.0 is not defined.

These three problems are well resolved, as follows:

1. Open the. classpath file in the project root directory with Notepad and locate the "<classpathentry kind=" Lib "path=" webcontent/web-inf/lib/readme.txt "/>" line, delete

2. Once the first problem is resolved, this problem will also disappear

3. Open the Org.eclipse.wst.common.project.facet.core.xml file in the. Settings folder in the project root directory, "<runtime name=" Apache Tomcat v6.0″/ > "This sentence changes to the version of Tomcat now required, or delete the middle lines, leaving only the following three lines on the line" <?xml version= "1.0″encoding=" utf-8″?> <faceted-project> </faceted-project> "

Troubleshoot problems with importing Java Web projects---cannot be read or was not a valid ZIP file

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.