`
slc2006119
  • 浏览: 7393 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

异常 Caught exception while loading file struts-default.xml - [unknown location]

阅读更多
严重: 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)



jar包有冲突, 应该是XML解析包有冲突. 检查发布后的WEB-INF/lib有两个XML解析包: xml-apis.jar和xerces-2.6.2.jar 这种错误真正原因不是JDK 6和Struts 2冲突, 而是 MyEclipse Hibernate 类库中多了两个包: xml-apis.jar和xerces-2.6.2.jar, 这两个包的功能和JDK的冲突了. 解决办法: 1. 删除发布后目录的 WEB-INF/lib/ 下的这两个文件; 2. 或者使用JDK 1.5来启动Tomcat 6.

分享到:
评论

相关推荐

    [Content_Types].xml[Content_Types].xml[Content_Types].xml

    [Content_Types].xml[Content_Types].xml[Content_Types].xml[Content_Types].xml[Content_Types].xml[Content_Types].xml[Content_Types].xml[Content_Types].xml[Content_Types].xml

    Activiti-in-Action.pdf

    the Activiti Engine, and starting in a new job, that time caught up with me. After I had settled in a bit, I took up the writing task again and began working on the remaining chapters. So here I am, ...

    No-callback-form-caught.rar_Caught

    不用回调形式抓包,另一种形式网络抓包,显示包名称,类型,时间

    input-caught.rar_Caught

    输入捕捉程序,适用于飞思卡尔JM60等单片机,应用于输入捕捉通道。

    Could not perform operation -- unexpected exception. Unexpected failure (8000ff

    INTOUCH 2014 R2 SP1在win10 系统不能新建新型应用程序,出现(8000ffff)错误Could not perform operation -- unexpected exception. Unexpected failure (8000ffff) caught at line 779 in CreateGalaxy.cpp (in y:\...

    java调用net开发的webservice实例

    - I/O exception (java.net.ConnectException) caught when processing request: Connection timed out: connect - Retrying request - I/O exception (java.net.ConnectException) caught when processing request:...

    RAW-socket-caught-procedures.rar_Linux/Unix编程_Unix_Linux_

    这是一个RAW套接口的抓包程序,在linux 平台下实现,已经测试通过,是一个原理性的测试程序

    Java自定义异常案例--ExceptionManager(java源码)

    * an exception wrapping the exist exception but requires a custom message. * * @param msg the detail message which is the part of the information will * be shown. * @param throwable...

    JSP Simple Examples

    In try block we write those code which can throw exception while code execution and when the exception is thrown it is caught inside the catch block. Multiple try catch We can have more than one try/...

    智能手机英语怎么说.docx

    His sin was to have been caught napping by the smart - phone craze. 他的过错在于没有捕捉到智能手机热潮. 12. Dell's first smartphone, for example, will run on the Android platform. 例如, 戴尔的首款...

    java.util.concurrent.ExecutionException 问题解决方法

    主要介绍了java.util.concurrent.ExecutionException 问题解决方法的相关资料,需要的朋友可以参考下

    Unity.in.Action.Multiplatform.Game.Development.in.Csharp

    Controlling mission flow and multiple levels 262 ■ Completing a level by reaching the exit 265 ■ Losing the level when caught by enemies 268 11.3 Handling the player’s progression through the game ...

    tester-caught-point-exceptions

    尝试AbsClass-对InheritanceClass对象执行第二个功能org.apache 5-调用繁荣功能org.apache 6 ****-繁荣-**** org.apache 7-获取异常并重新抛出com.example 8 AbsClass的捕获-获取异常-并将其重新抛出org.apache 9-...

    From C to C++

    GreenCppC 2008-8-24 ========================================= // I 类,对象,函数重载 //-------- From C to C++ ------------ // A simple C Program! // convert a string to uppercase!...

    webservice-ajax

    ... &lt;/system.web&gt; ... &lt;configuration&gt; Making client-side JavaScript code Let us take a look at the default.aspx file that was automatically created in our project (if it was not - ...

    caught-in-a-web-of-apis:附带的攻击代码

    Web APIs研究论文中附带的攻击代码执照版权所有(c) 和

    《Java Servlet编程(第二版)》英文版 chm (含源码)

    The Java 2, Enterprise Edition (J2EE), specification has included servlets as a core component, and application server vendors wouldn't be caught dead without a scalable servlet implementation....

    AndroidPhotoView

    In order to prevent this exception (which typically occurs when you zoom out), take a look at HackyDrawerLayout and you can see the solution is to simply catch the exception. Any ViewGroup which uses...

    Resoling transactional Access-Analytic Performance Trade_offs

    Users are often caught between a rock and a hard place: columnar formats such as Apache Parquet offer extremely fast scan rates for analytics, but little to no ability for real-time modification or ...

    Thinking with Types

    A friend caught me writing one day, and dared me to publish what I had. I acquiesced. And so on July 8th, 2018, I posted a 37 page document to reddit, gauging if there was any interest from the ...

Global site tag (gtag.js) - Google Analytics