XML multiple annotations found at the:-schema_reference.4:failed to read schema document ' Http://www.springframe work.org/schema/beans/
Spring-beans-3.1.xsd ', because 1) could not find the document; 2) The document could not is read; 3) the root
element of the document is not <xsd:schema>.
-Cvc-elt.1:cannot find the declaration of element ' beans '.
Because the spring version configured in Pom.xml is not the same as the version in Spring.xml
Error Syntax error on token "Invalid Regular Expression Options" in Eclipse, no accurate Correc
Right-click the file, validate
JSP multiple annotations found at this line:
-the tag handler class for
"Form:form" (ORG.SPRINGFRAMEWORK.WEB.SERVLET.TAGS.FORM.FORMTAG) is not found on the Java
Build Path
-Javax.servlet.jsp.PageContext cannot is resolved to a type
-Javax.servlet.jsp.JspException cannot is resolved to a type
-Javax.servlet.jsp.PageContext cannot is resolved to a type
Resolve cannot change version of Project facet Dynamic Web module to 2.5 2014-08-07 10:44 123658 People read comments (24) Collection report Category: Java (85) Development tools (55)
Copyright NOTICE: This article is the original article of the blogger, without the permission of the blogger may not be reproduced.
When we used eclipse to create a Web project for the MAVEN structure, we chose the artifact ID as Maven-artchetype-webapp, because this catalog is older, The servlet is still 2.3, and it's usually at least 2.5, and cannot change version of project facet when you modify Dynamic Web Module 2.5 in Project facets Dynamic Web module to 2.5, as shown in figure:
Actually on the right you can see the conditions to change to 2.5 and the facets of conflict, the steps to resolve this problem are as follows:
1. Change the servlet to 2.5, open the web.xml of the project and change it before:
[HTML] view plain copy print? <! DOCTYPE Web-app Public "-//sun Microsystems, INC.//DTD Web Application 2.3//en" "Http://java.sun.com/dtd/web-app_2_3 . DTD > <web-app> <display-name>archetype Created Web application</display-name> </web- App>
After the change:
[HTML] view plain copy print? <?xml version= "1.0" encoding= "UTF-8"?> <web-app version= "2.5" xmlns= "Http://java.sun.com/xml/ns/javaee" Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation= "Http://java.sun.com/xml/ns/javaee Http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd "> <display-name>archetype Created Web Application </display-name> </web-app>
2. Modify the project settings and open the project under Navigator. Org.eclipse.jdt.core.prefs under the Settings directory
[HTML] view plain copy print?