配置文件报错:cvc-complex-type.2.4.a: Invalid content was found starting with element filter

配置文件filter元素报错
解决办法:
解决办法为:将“http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd”这段话加入到xml文件的"xmlns:xsi="的标签中

如下所示:
{

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
">

}

时间: 2024-10-11 05:45:58

配置文件报错:cvc-complex-type.2.4.a: Invalid content was found starting with element filter的相关文章

web.xml文件报错:cvc-complex-type.2.4.a: Invalid content was found starting with element &#39;init-param&#39;.

cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http:// xmlns.jcp.org/xml/ns/javaee":enabled, "http://xmlns.jcp.org/xml/ns/javaee":async-supported, "http:// xmlns.jcp.org/xml/ns/java

Type cvc-complex-type.2.4.a: Invalid content was found starting with element &#39;build&#39;.错误的解决方法

项目突然间爆出了这样的问题: 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, "

【原创】mybatis配置文件报错:The content of element type &quot;configuration&quot; must match &quot;(properties&gt;settings&gt;typeAliases&gt;typeHa...

最近使用mybatis,在mybatis的xml配置文件中总是会提示错误 The content of element type "configuration" must match "(properties>settings>typeAliases>typeHandlers>objectFactory>objectWrapperFactory>plugins>environments>mappers?)". 后来发现

菜鸟调错(四)——Spring与DWR集成,配置文件报错

背景简介: 该项目是市信用办的一个系统,之前好像是一个石家庄的公司负责的.我属于是半路接手.拿到源码后,根据他们给的简(shao)单(de)明(ke)了(lian)的说明把项目搭起来.结果可想而知,项目文件一片红.于是就开始解决这些错误,好在很多错误都是类似的.经过一番捣鼓,大部分的错误都解决了,有一个Spring跟DWR集成配置的错误,错误信息如下: Multiple annotations found at this line: - schema_reference.4: Failed to

c3p0配置文件报错 对实体 &quot;characterEncoding&quot; 的引用必须以 &#39;;&#39; 分隔符结尾。

原配置文件: 异常截图: 百度可知: 在xml的配置文件中 :要用  &   代替 更改后配置文件: c3p0配置文件报错 对实体 "characterEncoding" 的引用必须以 ';' 分隔符结尾.

vuex2 mapActions 报错 `unknown action type: xxxx`

export const setBreadCrumb = ({ dispatch }, data) => { dispatch('SET_BREADCRUMB', data) } 当调用的时候报[vuex2] mapActions 报错 `unknown action type: setBreadCrumb` 后台改成 export const setBreadCrumb = ({ commit }, data) => { commit('SET_BREADCRUMB', data) } 未报

Hibernate使用MyExclipse10自动生成配置文件报错

使用MyExclipse10自动生成hibernate映射文件如下: 结果发现启动服务时报以下错误: 原因:因为hibernate换过项目地址,所以dtd文件的地址也换掉了.在hbm.xml文件里面把 http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd 换成 http://www.jboss.org/dtd/hibernate/hibernate-mapping-3.0.dtd 问题就解决了. Hibernate使用MyExc

【mybatis】mybatis访问报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

mybatis访问报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) 需要检查的步骤: 1.是否mapper.java文件上使用了注解@Mapper  或者 在启动类上扫描了Mapper类 @MapperScan("com.swapping.springcloud.ms.integral.mapper")   [注意扫描的包名是否正确] 2.注意mapper.xml文件中的

tesserocr报错 Failed to init API, possibly an invalid tessdata path: C:\Users\Administrator\venv\py3spider\

print(tesserocr.file_to_text("1.png")) 报错Failed to init API, possibly an invalid tessdata path: C:\Users\Administrator\venv\py3spider\ 需要将tessdata文件夹   放到C:\Users\Administrator\venv\py3spider\Scripts目录  即报错目录的Scripts下面 原文地址:https://www.cnblogs.c