报错信息:Attribute "xmlns" was already specified for element "web-app" 由于项目的重命名,出现了xmlns的重复赋值,这可能是eclipse自己设定的一种方式,重新为项目匹配合适的配置. <web-app xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://java.sun.com/xml/ns/javae…
问题与分析 在web.xml中配置servlet节点时报错如下: cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http://java.sun.com/xml/ns/j2ee":run-as, "http://java.sun.com/xml/ns/j2ee":security-role-ref}' is expected…
在写xml的时候又一次总是报cvc-complex-type.2.4.a: Invalid content was found starting with element 错误,还出现小红叉,在网上找了很多,有说是把报红叉的代码写在<jsp-config></jsp-config>之间,试了之后发现完全没用. 后来在外文网站上找到了一个方法就把问题解决了 解决办法为:将“http://www.springmodules.org/schema/cache/springmodules-…
最近都在研究shiro这个框架,今天实施了一下,就报了如下错误: cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'. One of '{"http://java.sun.com/xml/ns/ javaee":init-param}' is expected. 在web.xml中配置了一下shiro,就会报如上错误: 我的解决方案: 我原来web.xml的w…
配置web.xml文件时报错 错误:cvc-complex-type.2.4.a: Invalid content was found starting with element 详细报错信息:cvc-complex-type.2.4.a: Invalid content was found starting with element 'property'. One of '{"http://www.springframework.org/schema/beans":import, &…
搭建ssm工程过程中web.xml报错:Servlet should have a mapping ....但是mapping已经配置好了...如下图: 搜索无果,后来发现是工程的web.xml位置配置错误,因为我之前换过根目录位置. 修改方法: 打开Project Structure界面,Modules>Web>Deployment descriptor,修改正确的位置即可,如下图: 另:打开Project Structure的方法: Ctrl+Alt+Shift+S 除上述以外,一定要注意…
[JAVA错误] cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http://java.sun.com/xml/ns/javaee":run-as, "http://java.sun.com/xml/ns/javaee":security-role-r [错误源码] 在springmvc 配置过程中,配置web.xml…
在写xml的时候又一次总是报cvc-complex-type.2.4.a: Invalid content was found starting with element 错误,还出现小红叉,在网上找了很多,有说是把报红叉的代码写在<jsp-config></jsp-config>之间,试了之后发现完全没用. 后来在外文网站上找到了一个方法就把问题解决了 在eclipse中配置xmlcatalog 1. Location: D:\eclipse3.3\springmodules-c…
在写xml的时候又一次总是报cvc-complex-type.2.4.a: Invalid content was found starting with element 错误,还出现小红叉,在网上找了很多,有说是把报红叉的代码写在<jsp-config></jsp-config>之间,试了之后发现完全没用. 后来在外文网站上找到了一个方法就把问题解决了 在eclipse中配置xmlcatalog 1. Location: D:\eclipse3.3\springm…
web.xml 出现cvc-complex-type.2.4.a: Invalid content was found starting with element <web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance http://www.springmodules.…
今天用myeclipse导入 一个项目出现后出现cvc-complex-type.2.4.a: Invalid content was found starting with element 'inf...的错误. 后来在网上找了很多,有说是把报红叉的代码写在<jsp-config></jsp-config>之间,试了之后发现完全没用. 后来在外文网站上找到了一个方法就把问题解决了 解决办法: 将 “http://www.springmodules.org/schema/cache…
项目突然间爆出了这样的问题: Description Resource Path Location Typecvc-complex-type.2.4.a: Invalid content was found starting with element 'build'. One of '{"http://maven.apache.org/POM/4.0.0":parent, "http://maven.apache.org/POM/4.0.0":name, "…
cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-name'. One of '{"http://xmlns.jcp.org/xml/ns/javaee":servlet-class, "http://xmlns.jcp.org/xml/ns/javaee":jsp-file, "http://xmlns.jcp.org/xml/ns/javae…
问题?Invalid content was found starting with element 'mvc:exclude-mapping'. 这是springmvc中显著的错误,在配置拦截器的时候,会用到不拦截某一些请求 如: < mvc:interceptors> <span style="white-space:pre"> </span>< mvc:interceptor> <span style="whi…
报错内容为: Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. 网上所述总结来说就是 解析内容内包含BOM .这个标记是看不到的,流里面有这个标记而已. BOM:Byte Order Mark,中文名字节顺序标记.UCS规范建议在传输字节流前,先传输BOM来判断字节顺序. 其实UTF-8是不需要用BOM来表明字节顺序的,但是可以 用BOM来表明编码方式.BOM的UTF-8编码…
The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,tagli…