`

XML11Configuration cannot be cast to XMLParserConfiguration

阅读更多

有时struts2项目运行时会出现下面的错误:

 

org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

 

org.apache.xerces.parsers.XML11Configuration

不能转换为

org.apache.xerces.xni.parser.XMLParserConfiguration

 

这两个类均位于一个名叫xerces.jar的架包里,删除这个架包可以解决这个问题

 

xerces介绍:

 

Apache的Xerces的是一个合作的软件开发项目,致力于提供强大,功能齐全,商业品质,并免费提供的XML解析器和一个支持多语言平台,多种密切相关的技术。该项目由遍布全球各地的人们(包括独立和公司下属的专家)来管理,这些人通过使用互联网来进行交流,规划,开发XML软件及相关文件。

分享到:
评论

相关推荐

    解决cannot be cast to javax.servlet.Filter 报错的问题

    当遇到“`cannot be cast to javax.servlet.Filter`”的错误时,通常意味着在程序运行过程中尝试将一个对象强制转换为`Filter`接口,但该对象实际类型并不符合预期。这种错误的出现可能是由于类路径(Classpath)中...

    prefix cannot be "null" when creating a QName

    “prefix cannot be 'null' when creating a QName”这一异常通常是由于处理XML文档时对`QName`对象的不正确使用导致的。通过理解`QName`的概念、正确指定前缀以及选择合适的StAX实现库(如Woodstox),可以有效避免...

    sjsxp.jar(解决启动报错)

    启动报错:javax.servlet.ServletException:javax.xml.stream.FactoryConfigurationError: Provider for class javax.xml.stream.XMLInputFactory cannot be created。引入jar包解决问题

    Android代码-类似于增强的SeekBar小部件

    Developers can customize the following attributes (both via XML and programmatically): bar color bar thickness tick height number of ticks connecting line thickness connecting line col

    maven 3.5.0 Cannot assign configuration entry 'pluginArtifacts' with value '${pl

    总结,当遇到"Maven 3.5.0 Cannot assign configuration entry 'pluginArtifacts' with value '${plugin.artifacts}'"的错误时,应首先检查项目的pom.xml配置,确保所有属性引用都被正确处理。同时,确保Maven环境的...

    Configuration对properties、xml配置文件的【增删改查】及动态加载

    Apache Commons Configuration库提供了一个强大的工具集,用于处理各种类型的配置文件,包括properties和XML格式。这个库使得在运行时对配置进行【增删改查】操作变得简单,同时支持动态加载,从而实现配置的实时...

    Authorization in ASP.Net MVC using XML Configuration.

    I have created simple application to demonstrate how you can xml based configuration to apply authorization in MVC application. Following are four major pieces of the application. ...

    XRecyclerView实现RecyclerView下拉刷新上来加载

    2. 设置布局:在XML布局文件中添加XRecyclerView,并配置相应的属性。 3. 初始化XRecyclerView:在Activity或Fragment的onCreate方法中,找到XRecyclerView实例并初始化,设置Adapter和LayoutManager。 4. 配置下拉...

    XMLParserConfiguration_abaquspython_

    标题“XMLParserConfiguration_abaquspython_”暗示了我们即将探讨的主题是关于ABAQUS软件中的Python接口,特别是与XML解析配置相关的知识。ABAQUS是一款强大的非线性有限元分析软件,它允许用户通过其内置的Python ...

    java 读取PDF文件中的内容

    File file = new File("path_to_your_pdf_file.pdf"); PDDocument document = PDDocument.load(file); ``` 2. **获取PDF页面**:PDF文件由多个页面组成,每个页面都是一个`PDPage`对象。你可以通过`PDDocument....

    LINQ教程中文版(LINQ TO SQL ,LINQ TO XML)

    本教程主要涵盖了两个核心部分:LINQ to SQL 和 LINQ to XML,都是针对不同类型数据源进行查询的工具。 ### LINQ to SQL LINQ to SQL 是一种对象关系映射(ORM)框架,允许开发者使用C#或VB.NET语言直接对SQL...

    audio_policy_configuration.xml

    android 音频设备配置文件

    Struts2 中的一个小问题

    最近在学struts2,遇到了个小...The file cannot be validated as the host "struts.apache.org" is currently unreachable 在网上找了很久,没有找到解决方法,后来自己解决了。 拿出来,希望对有同样问题的有点帮助。

    解决any change made in its configuration may be lost after reimport

    标题"解决any change made in its configuration may be lost after reimport"正是针对这一问题的解决方案。 问题的核心在于,Idea的Module Settings配置并没有被正确地同步到Maven的构建配置中。当我们在Idea中...

    JSTL 发生jar包错误

    JSTL 标签 发生 uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application问题时解决方法

    api-versions.xml 下载使用

    \Android\Sdk\platform-tools\api\api-versions.xml

    Java and XML(英文第三版)

    Java and XML, 3rd Edition, shows you how to cut through all the hype about XML and put it to work. It teaches you how to use the APIs, tools, and tricks of XML to build real-world applications. The ...

    configuration file

    configuration file

    xsd生成xml工具

    在IT行业中,XML(eXtensible Markup Language)是一种用于标记数据的标准格式,而XSD(XML Schema Definition)则是用于定义XML文档结构和数据类型的规范。"xsd生成xml工具"是一个实用程序,它允许开发者根据XSD...

    SpringCloud应用篇之SpringCloudStream(消息驱动)

    SpringCloudStream为一些供应商的消息中间件产品提供了个性化的自动化配置实现,并引入了发布-订阅、消费组、分区这...我们中间件使用RabbitMQ,创建spring-cloud-stream模块编辑pom.xml文件,引入SpringCloudStream对

Global site tag (gtag.js) - Google Analytics