struts2 annotation + spring + maven整合异常
2014-01-02 18:46:17 [ localhost-startStop-1:3656 ] - [ ERROR ] Dispatcher initialization failed
Unable to load configuration. - bean - jar:file:/D:/installsoft/apache-tomcat-7.0.34-study/wtpwebapps/struts2_spring_mybatis/WEB-INF/lib/struts2-convention-plugin-2.3.15.1.jar!/struts-plugin.xml:30:137
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490)
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:278)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:259)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:383)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:104)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: Unable to load bean: type:com.opensymphony.xwork2.UnknownHandler class:org.apache.struts2.convention.ConventionUnknownHandler - bean - jar:file:/D:/installsoft/apache-tomcat-7.0.34-study/wtpwebapps/struts2_spring_mybatis/WEB-INF/lib/struts2-convention-plugin-2.3.15.1.jar!/struts-plugin.xml:30:137
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:226)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
... 18 more
Caused by: Bean type interface com.opensymphony.xwork2.UnknownHandler with the name convention has already been loaded by bean - jar:file:/D:/installsoft/apache-tomcat-7.0.34-study/wtpwebapps/struts2_spring_mybatis/WEB-INF/lib/spring-jdbc-3.0.2.RELEASE.jar!/struts-plugin.xml:30:137 - bean - jar:file:/D:/installsoft/apache-tomcat-7.0.34-study/wtpwebapps/struts2_spring_mybatis/WEB-INF/lib/struts2-convention-plugin-2.3.15.1.jar!/struts-plugin.xml:30:137
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:229)
... 21 more
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
引用来自“Security”的答案
引用来自“抓瓦工人”的答案
错误没贴全
错误没贴全
错误没贴全
用了spring还用毛的struts呢?用了struts还用个毛的spring呢?