严重: Exception starting filter Struts2
Caught exception while loading file struts-default.xml - [unknown location]
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:839)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3696)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3086)
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:404)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1309)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>(SAX2DOM.java:69)
at com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler(TransletOutputHandlerFactory.java:187)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:392)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult(TransformerHandlerImpl.java:137)
at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:213)
at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:198)
at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:189)
at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:175)
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:830)
... 20 more
解决方法:
移除项目目录中的xerces.jar
there was a conflict between tomcat's internal XML parser and the xerces I was using inside my project.
参考链接:
http://www.nabble.com/org.apache.xerces.parsers.XML11Configuration-cannot-be-cast-to-org.apache.xerces.xni.parser.XMLParserConfiguration-td14108368.html
分享到:
相关推荐
`Caught exception while loading file struts-default.xml - [unknown location]` 这个异常是因为 Struts 框架中的配置文件 `struts-default.xml` 无法正确地加载。 解决方法 2:配置 Struts 框架 要解决这个...
Caught exception while loading file struts-default.xml - [unknown location] ``` **解决方法**: 这个错误通常由库文件冲突引起,比如多个版本的`xml-apis.jar`或`xerces-2.6.2.jar`文件同时存在。为了解决这个...
需要注意的是,在配置文件中`extends`属性的值必须与框架的默认命名空间匹配,即`struts-default`而非`struts_default`。 #### 表单元素绑定异常 Struts2支持直接从请求参数中自动绑定到Action类的属性,但在某些...
System.out.println("Caught an ArithmeticException: " + e.getMessage()); } finally { System.out.println("Finally block executed."); } } } ``` 在这个例子中,当试图除以零时,`ArithmeticException`被...
"VC/C++源码, FileException" 提供了一个学习VC++异常处理机制的实例,这对于初学者来说是极具价值的。 在C++中,异常处理是通过`try`、`catch`和`throw`关键字来实现的。当程序在`try`块中遇到无法正常处理的错误...
### NC-WAS 集群部署详解 #### 一、NC-WAS 集群部署概述 NC-WAS集群部署是指用友NC系统与IBM WebSphere Application Server (简称WAS)集群结合的一种部署方式。这种部署模式充分利用了WAS集群的优势,能够实现负载...
在压缩包"caught-in-a-web-of-apis-master"中,"master"通常指的是GitHub仓库的主分支,意味着这些代码可能来源于一个公开的研究项目或存储库。通常,这样的文件结构可能包含README文件,详细介绍了项目的目的、如何...
本项目名为"Caught-You-Phone-Handed",意在通过机器学习技术实现对手持手机行为的智能识别。项目基于GitHub平台,但由于其对大文件推送的限制,原项目被拆分为多个部分,其中"Caught-You-Phone-Handed-main"是主要...
std::cerr << "Caught exception: " () ; } ``` `catch`后面的表达式定义了捕获的异常类型,可以是特定的异常类型,如`std::exception`,也可以是多个类型的异常,或者用`...`捕获所有类型的异常。 5. **异常...
映射需要包含在扩展了“gwt-default”的包内,并且添加"Gwt"拦截器。 XML配置示例: ```xml <package name="example" extends="gwt-default"> <interceptor-ref name="gwt"/> ``` 3. **定义GWT服务接口...
在尝试使用INTouch 2014 R2 SP1版本软件在Windows 10操作系统上创建新型应用程序时,用户遇到了“Could not perform operation -- unexpected exception. Unexpected failure (8000ffff)”这一错误提示。该问题出现...
标题中的"No-callback-form-caught"暗示我们将探讨一种不依赖回调函数的网络抓包方法。下面将详细介绍这种技术以及其背后的原理。 网络抓包通常涉及到网络层协议,如TCP/IP协议栈,它允许我们查看原始的数据包,...
在给定的"input-caught.rar_Caught"压缩包中,我们可以看到一个名为"输入捕捉通道7.c"的源代码文件,这暗示了该代码是针对特定单片机的输入捕捉功能实现,很可能是用于飞思卡尔(Freescale,现已被NXP半导体收购)的...
my $exception = Exception::Class->caught(); if ($exception->isa('MyException')) { # 处理 MyException } elsif ($exception->isa('AnotherException')) { # 处理 AnotherException } else { # 其他...
IT Managers can easily get caught up in day-to-day operations and activities and lose sight of important management behaviors. Whether you re a new or seasoned manager, the following suggestions can ...
初级新手入门吉他谱 guitar tab
catch --- caught --- caught choose --- chose --- chosen come --- came --- come cost --- cost --- cost cut --- cut --- cut 【学习明确】本单元主要复习巩固现在完成时,同时探讨中国和加拿大的城市生活差异...
S7.NET库提供了异常处理机制,通过捕获`S7Exception`,可以获取详细的错误信息,帮助开发者定位问题。 5. **性能优化** 为了提高通讯效率,S7.NET支持批量读写操作,可以通过一次通讯操作读取或写入多个变量。此外...
- **Multi-Catch Exception Handling**: Explanation of the new multi-catch feature that allows multiple exceptions to be caught in a single catch block, improving code readability and maintainability. ...
[Vadass (Oltlo)]Cheating Wife Honoka ~Caught Red-Handed Edition~ [Chinese] [Colorized].jpg