struts2 annotation + spring + maven整合异常

冰雷卡尔 发布于 2014/01/02 18:50
阅读 699
收藏 0
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
加载中
0
loyal
loyal
用了spring还用毛的struts呢?用了struts还用个毛的spring呢?
0
pantrick
pantrick
错误没贴全
0
冰雷卡尔
冰雷卡尔

引用来自“抓瓦工人”的答案

错误没贴全
贴全了  有用的信息就是这么多
0
pantrick
pantrick

引用来自“Security”的答案

引用来自“抓瓦工人”的答案

错误没贴全
贴全了  有用的信息就是这么多

找到问题了

你没细心看


 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


 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 


这两个jar 里有重复的struts-plugin.xml, 



返回顶部
顶部