4
回答
struts2 annotation + spring + maven整合异常
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   
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
举报
冰雷卡尔
发帖于4年前 4回/550阅
顶部