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

Source: Internet
Author: User

Severe: exception starting filter struts2 <br/> caught exception while loading file struts-default.xml-[unknown location] <br/> at com. opensymphony. xwork2.config. providers. xmlconfigurationprovider. loadconfigurationfiles (xmlconfigurationprovider. java: 839) <br/> at com. opensymphony. xwork2.config. providers. xmlconfigurationprovider. loaddocuments (xmlconfigurationprovider. java: 131) <br/> at com. opensymphony. xwork2.config. providers. xmlconfigurationprovider. init (xmlconfigurationprovider. java: 100) <br/> at com. opensymphony. xwork2.config. impl. defaultconfiguration. reload (defaultconfiguration. java: 130) <br/> at com. opensymphony. xwork2.config. configurationmanager. getconfiguration (configurationmanager. java: 52) <br/> at Org. apache. struts2.dispatcher. dispatcher. init_preloadconfiguration (dispatcher. java: 395) <br/> at Org. apache. struts2.dispatcher. dispatcher. init (dispatcher. java: 452) <br/> at Org. apache. struts2.dispatcher. filterdispatcher. init (filterdispatcher. java: 201) <br/> at Org. apache. catalina. core. applicationfilterconfig. getfilter (applicationfilterconfig. java: 275) <br/> at Org. apache. catalina. core. applicationfilterconfig. setfilterdef (applicationfilterconfig. java: 397) <br/> at Org. apache. catalina. core. applicationfilterconfig. <init> (applicationfilterconfig. java: 108) <br/> at Org. apache. catalina. core. standardcontext. filterstart (standardcontext. java: 3696) <br/> at Org. apache. catalina. core. standardcontext. start (standardcontext. java: 4343) <br/> at Org. apache. catalina. core. standardcontext. reload (standardcontext. java: 3086) <br/> at Org. apache. catalina. loader. webapploader. backgroundprocess (webapploader. java: 404) <br/> at Org. apache. catalina. core. containerbase. backgroundprocess (containerbase. java: 1309) <br/> at Org. apache. catalina. core. containerbase $ containerbackgroundprocessor. processchilbase (containerbase. java: 1601) <br/> at Org. apache. catalina. core. containerbase $ containerbackgroundprocessor. processchilbase (containerbase. java: 1610) <br/> at Org. apache. catalina. core. containerbase $ containerbackgroundprocessor. processchilbase (containerbase. java: 1610) <br/> at Org. apache. catalina. core. containerbase $ containerbackgroundprocessor. run (containerbase. java: 1590) <br/> at java. lang. thread. run (thread. (Java: 619) <br/> caused by: Java. lang. classcastexception: Org. apache. xerces. parsers. xml11configuration cannot be cast to Org. apache. xerces. xni. parser. xmlparserconfiguration <br/> at Org. apache. xerces. parsers. domparser. <init> (unknown source) <br/> at Org. apache. xerces. parsers. domparser. <init> (unknown source) <br/> at Org. apache. xerces. JAXP. documentbuilderimpl. <init> (unknown source) <br/> at Org. apache. xerces. JAXP. documentbuilderfactoryimpl. newdocumentbuilder (unknown source) <br/> at com.sun.org. apache. xalan. internal. TC. trax. sax2dom. <init> (sax2dom. java: 69) <br/> at com.sun.org. apache. xalan. internal. TC. runtime. output. transletoutputhandlerfactory. getserializationhandler (transletoutputhandlerfactory. java: 187) </P> <p>

Jar package conflicts. XML parsing package conflicts. check the post-release WEB-INF/lib has two XML parsing packages: xml-apis.jar and xerces-2.6.2.jar this error is not really caused by JDK 6 and Struts 2 conflicts, but myeclipse hibernate library has two more packages: xml-apis.jar and xerces-2.6.2.jar, the two Package features conflict with JDK. solution: 1. delete the two files under the WEB-INF/lib/directory after the release; 2. or use JDK 1.5 to start Tomcat 6.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.