posted on 2008-09-23 21:49
xcp 阅读(13938)
评论(16) 所属分类:
struts2
今天下午做了一个ssh项目,是利用spring配置文件管理hibernate配置文件,结果一发布出现以下错误,请高手们指教!!!!
严重: 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.
(applicationfilterconfig.java:108)
at org.apache.catalina.core.standardcontext.filterstart(standardcontext.java:3709)
at org.apache.catalina.core.standardcontext.start(standardcontext.java:4356)
at org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:791)
at org.apache.catalina.core.containerbase.addchild(containerbase.java:771)
at org.apache.catalina.core.standardhost.addchild(standardhost.java:525)
at org.apache.catalina.startup.hostconfig.deploydirectory(hostconfig.java:924)
at org.apache.catalina.startup.hostconfig.deploydirectories(hostconfig.java:887)
at org.apache.catalina.startup.hostconfig.deployapps(hostconfig.java:492)
at org.apache.catalina.startup.hostconfig.start(hostconfig.java:1147)
at org.apache.catalina.startup.hostconfig.lifecycleevent(hostconfig.java:311)
at org.apache.catalina.util.lifecyclesupport.firelifecycleevent(lifecyclesupport.java:117)
at org.apache.catalina.core.containerbase.start(containerbase.java:1053)
at org.apache.catalina.core.standardhost.start(standardhost.java:719)
at org.apache.catalina.core.containerbase.start(containerbase.java:1045)
at org.apache.catalina.core.standardengine.start(standardengine.java:443)
at org.apache.catalina.core.standardservice.start(standardservice.java:516)
at org.apache.catalina.core.standardserver.start(standardserver.java:710)
at org.apache.catalina.startup.catalina.start(catalina.java:578)
at sun.reflect.nativemethodaccessorimpl.invoke0(native method)
at sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39)
at sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25)
at java.lang.reflect.method.invoke(method.java:597)
at org.apache.catalina.startup.bootstrap.start(bootstrap.java:288)
at org.apache.catalina.startup.bootstrap.main(bootstrap.java:413)
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.(unknown source)
at org.apache.xerces.parsers.domparser.(unknown source)
at org.apache.xerces.jaxp.documentbuilderimpl.(unknown source)
at org.apache.xerces.jaxp.documentbuilderfactoryimpl.newdocumentbuilder(unknown source)
at com.sun.org.apache.xalan.internal.xsltc.trax.sax2dom.(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.(domhelper.java:198)
at com.opensymphony.xwork2.util.domhelper$dombuilder.(domhelper.java:189)
at com.opensymphony.xwork2.util.domhelper$dombuilder.(domhelper.java:175)
at com.opensymphony.xwork2.util.domhelper.parse(domhelper.java:115)
at com.opensymphony.xwork2.config.providers.xmlconfigurationprovider.loadconfigurationfiles(xmlconfigurationprovider.java:830)
... 34 more
请高手们指教????
名称: ♪4c.esl | .↗evon
口号: 遇到新问题♪先要寻找一个方案乄而不是创造一个方案こ
mail: