为了账号安全,请及时绑定邮箱和手机立即绑定

正在回答

2 回答

我的第一次执行成功了,但第二次运行就错误404了,而且这过程中我什么也没改

0 回复 有任何疑惑可以回复我~

Unable to load configuration. - bean - jar:file:/F:/java测试/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/HelloWorld/WEB-INF/lib/struts2-core-2.3.24.jar!/struts-default.xml:57:72

at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)

at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967)

at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435)

at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479)

at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)

at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)

at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)

at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)

at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)

at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4958)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5652)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/F:/java测试/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/HelloWorld/WEB-INF/lib/struts2-core-2.3.24.jar!/struts-default.xml:57:72

at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:247)

at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)

at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:240)

at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)

... 17 more

Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name struts has already been loaded by bean - jar:file:/E:/googledownload/apache-tomcat-7.0.72/lib/struts2-core-2.3.24.jar!/struts-default.xml:57:72 - bean - jar:file:/F:/java测试/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/HelloWorld/WEB-INF/lib/struts2-core-2.3.24.jar!/struts-default.xml:57:72

at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:231)

... 20 more


四月 04, 2017 4:05:05 下午 org.apache.catalina.core.StandardContext filterStart

严重: Exception starting filter struts2

Unable to load configuration. - bean - jar:file:/F:/java测试/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/HelloWorld/WEB-INF/lib/struts2-core-2.3.24.jar!/struts-default.xml:57:72

at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:493)

at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)

at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)

at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)

at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)

at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)

at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4958)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5652)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: Unable to load configuration. - bean - jar:file:/F:/java测试/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/HelloWorld/WEB-INF/lib/struts2-core-2.3.24.jar!/struts-default.xml:57:72

at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)

at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967)

at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435)

at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479)

... 14 more

Caused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/F:/java测试/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/HelloWorld/WEB-INF/lib/struts2-core-2.3.24.jar!/struts-default.xml:57:72

at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:247)

at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)

at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:240)

at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)

... 17 more

Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name struts has already been loaded by bean - jar:file:/E:/googledownload/apache-tomcat-7.0.72/lib/struts2-core-2.3.24.jar!/struts-default.xml:57:72 - bean - jar:file:/F:/java测试/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/HelloWorld/WEB-INF/lib/struts2-core-2.3.24.jar!/struts-default.xml:57:72

at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:231)

... 20 more


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Struts2入门
  • 参与学习       95062    人
  • 解答问题       456    个

本教程带你踏上Struts2学习之旅,对Struts2进行更深入讲解

进入课程

unlable to load

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信