问题描述
2014-11-313:36:27org.apache.catalina.core.ApplicationContextlog信息:LoadingSpringrootWebApplicationContextlog4j:WARNNoappenderscouldbefoundforlogger(com.opensymphony.xwork2.config.providers.XmlConfigurationProvider).log4j:WARNPleaseinitializethelog4jsystemproperly.2014-11-313:36:46org.apache.catalina.core.StandardContextfilterStart严重:Exceptionstartingfilterstruts2Unabletoloadconfiguration.-bean-jar:file:/D:/Tomcat%206.0/webapps/loginuser/WEB-INF/lib/struts2-core-2.3.4.1.jar!/struts-default.xml:29:72atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428)atorg.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)atorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)atorg.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)atorg.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)atorg.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)atorg.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4363)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)atorg.apache.catalina.core.StandardHost.start(StandardHost.java:719)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)atorg.apache.catalina.core.StandardService.start(StandardService.java:516)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:578)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Causedby:Unabletoloadconfiguration.-bean-jar:file:/D:/Tomcat%206.0/webapps/loginuser/WEB-INF/lib/struts2-core-2.3.4.1.jar!/struts-default.xml:29:72atcom.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)atorg.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)...29moreCausedby:Unabletoloadbean:type:class:com.opensymphony.xwork2.ObjectFactory-bean-jar:file:/D:/Tomcat%206.0/webapps/loginuser/WEB-INF/lib/struts2-core-2.3.4.1.jar!/struts-default.xml:29:72atcom.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232)atorg.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)atcom.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)...31moreCausedby:Beantypeclasscom.opensymphony.xwork2.ObjectFactorywiththenamexworkhasalreadybeenloadedbybean-jar:file:/D:/Tomcat%206.0/webapps/loginuser/WEB-INF/lib/struts2-core-2.2.1.jar!/struts-default.xml:29:72-bean-jar:file:/D:/Tomcat%206.0/webapps/loginuser/WEB-INF/lib/struts2-core-2.3.4.1.jar!/struts-default.xml:29:72atcom.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)...34more2014-11-313:36:46org.apache.catalina.core.StandardContextstart严重:ErrorfilterStart2014-11-313:36:46org.apache.catalina.core.StandardContextstart严重:Context[/loginuser]startupfailedduetopreviouserrors2014-11-313:36:47com.opensymphony.xwork2.util.logging.commons.CommonsLoggerinfo信息:Parsingconfigurationfile[struts-default.xml]2014-11-313:36:48com.opensymphony.xwork2.util.logging.commons.CommonsLoggerinfo信息:Unabletolocateconfigurationfilesofthenamestruts-plugin.xml,skipping2014-11-313:36:48com.opensymphony.xwork2.util.logging.commons.CommonsLoggerinfo信息:Parsingconfigurationfile[struts-plugin.xml]2014-11-313:36:48com.opensymphony.xwork2.util.logging.commons.CommonsLoggerinfo信息:Parsingconfigurationfile[struts.xml]2014-11-313:36:49org.apache.coyote.http11.Http11AprProtocolstart信息:StartingCoyoteHTTP/1.1onhttp-80882014-11-313:36:49org.apache.coyote.ajp.AjpAprProtocolstart信息:StartingCoyoteAJP/1.3onajp-80092014-11-313:36:49org.apache.catalina.startup.Catalinastart信息:Serverstartupin23847ms
解决方案
解决方案二:
大神快来帮我啊
解决方案三:
你这个/D:/Tomcat%206.0/webapps目录中的tomcat文件夹使用了中文吗?如果是的话,把中文去掉
解决方案四:
tomcat6.0中间的空格去掉试试
解决方案五:
引用2楼u011564172的回复:
你这个/D:/Tomcat%206.0/webapps目录中的tomcat文件夹使用了中文吗?如果是的话,把中文去掉
%20貌似是空格……
解决方案六:
引用4楼Android_iPhone的回复:
Quote: 引用2楼u011564172的回复:
你这个/D:/Tomcat%206.0/webapps目录中的tomcat文件夹使用了中文吗?如果是的话,把中文去掉%20貌似是空格……
对啊是空格啊tomcat6.0这是文件夹名字
解决方案七:
你的struts包冲突了,lib下有两个struts的jar:struts2-core-2.2.1.jar、struts2-core-2.3.4.1.jar,删掉一个。
解决方案八:
引用5楼qq_20639227的回复:
Quote: 引用4楼Android_iPhone的回复:
Quote: 引用2楼u011564172的回复:
你这个/D:/Tomcat%206.0/webapps目录中的tomcat文件夹使用了中文吗?如果是的话,把中文去掉%20貌似是空格……
对啊是空格啊tomcat6.0这是文件夹名字
把空格删了,tomcat6.0再试试
解决方案九:
jar冲突了
解决方案十:
引用6楼xuefeng0707的回复:
你的struts包冲突了,lib下有两个struts的jar:struts2-core-2.2.1.jar、struts2-core-2.3.4.1.jar,删掉一个。
我试试看
解决方案十一:
1.文件名的合法性检查.2.jar包版本兼容性检查.