`
编程足球
  • 浏览: 251238 次
  • 性别: Icon_minigender_1
  • 来自: 福州
社区版块
存档分类
最新评论

struts2 的 convention-plugin和spring-plugin 冲突报错

    博客分类:
  • SSH
阅读更多
2013-5-24 19:48:10 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
严重: Dispatcher initialization failed
Unable to load configuration. - bean - jar:file:/G:/ProgramFiles/apache-tomcat-6.0.37-windows-x86/apache-tomcat-6.0.37/webapps/SSH/WEB-INF/lib/struts2-convention-plugin-2.3.14.jar!/struts-plugin.xml:32:155
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)
	at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:424)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
	at org.apache.catalina.core.StandardService.start(StandardService.java:525)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: Unable to load bean: type:org.apache.struts2.convention.ActionConfigBuilder class:org.apache.struts2.convention.PackageBasedActionConfigBuilder - bean - jar:file:/G:/ProgramFiles/apache-tomcat-6.0.37-windows-x86/apache-tomcat-6.0.37/webapps/SSH/WEB-INF/lib/struts2-convention-plugin-2.3.14.jar!/struts-plugin.xml:32:155
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:243)
	at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:210)
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
	... 31 more
Caused by: java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/finder/UrlSet$FileProtocolNormalizer
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
	at java.lang.Class.getDeclaredConstructors(Class.java:1836)
	at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:233)
	... 34 more
Caused by: java.lang.ClassNotFoundException: com.opensymphony.xwork2.util.finder.UrlSet$FileProtocolNormalizer
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
	... 38 more


解决方案:可能是jar包的版本冲突问题,可能是
xwork-core-2.3.14.jar 和 struts2-core-2.3.14.jar 版本太低了.升级下版本应该就可以了
分享到:
评论

相关推荐

    Struts2开发常用jar包

    2.5.10.1.jar,struts2-config-browser-plugin-2.5.10.1.jar,struts2-convention-plugin-2.5.10.1.jar,struts2-dwr-plugin-2.5.10.1.jar,struts2-embeddedjsp-plugin-2.5.10.1.jar,struts2-gxp-plugin-2.5.10.1....

    struts-2.3.30-all所有jar包

    struts2-convention-plugin-2.3.30.jar, struts2-core-2.3.30.jar, struts2-dojo-plugin-2.3.30.jar, struts2-dwr-plugin-2.3.30.jar, struts2-embeddedjsp-plugin-2.3.30.jar, struts2-gxp-plugin-2.3.30.jar, ...

    struts-2.5.2-all所有jar包

    struts2-convention-plugin-2.5.2.jar, struts2-core-2.5.2.jar, struts2-dwr-plugin-2.5.2.jar, struts2-embeddedjsp-plugin-2.5.2.jar, struts2-gxp-plugin-2.5.2.jar, struts2-jasperreports-plugin-2.5.2.jar, ...

    struts-2.5.10-all所有jar包

    2.5.10.jar,struts2-cdi-plugin-2.5.10.jar,struts2-config-browser-plugin-2.5.10.jar,struts2-convention-plugin-2.5.10.jar,struts2-core-2.5.10.jar,struts2-dwr-plugin-2.5.10.jar,struts2-embeddedjsp-plugin-...

    Struts 2 远程代码执行漏洞(s2-045\s2-046)修复所用到的包

    struts2-convention-plugin-2.3.32.jar struts2-core-2.3.32.jar struts2-spring-plugin-2.3.32.jar xwork-core-2.3.32.jar --来源 ...

    struts-2.5所有jar包

    java web开发中所用到的struts2所有相关jar包,版本struts-2.5

    struts2-convention-plugin-2.3.24.3.jar

    spring使用注解配置需要的jar包

    Struts2最新漏洞升级2.3.32版本

    struts2-spring-plugin-2.3.32.jar xwork-core-2.3.32.jar 2、删除上面原有的低版本jar 3、修改 WEB-INF\classes 目录下struts.xml 文件,加上: &lt;constant name="struts.enable.DynamicMethodInvocation" ...

    struts2.1.6+spring2.0+hibernate3.2常用配置包

    struts2-convention-plugin-2.1.6.jar //2* struts2-spring-plugin-2.1.6.jar //1 xwork-2.1.2.jar //2 xerces-2.6.2.jar //3 xml-apis.jar //3 注:以下包为数据源连接池 相关 用到那个添加相应的包 c3p0-0.9.1.2...

    struts-2.5.17-lib

    asm-5.2.jar commons-io-2.5.jar commons-lang3-3.6.jar freemarker-2.3.26-...struts2-convention-plugin-2.5.17.jar struts2-core-2.5.17.jar struts2-spring-plugin-2.5.17.jar 以上是升级2.5.17所需要的jar包

    struts2045修复建议及补丁

    - 严格过滤 Content-Type 、filename里的内容,严禁ognl表达式相关字段。... - struts2-convention-plugin-2.3.32.jar - struts2-core-2.3.32.jar - struts2-spring-plugin-2.3.32.jar - xwork-core-2.3.32.jar

    Struts2.1Spring2.5IBatisJQuery框架

    1) 利用Struts2的struts2-convention-plugin插件,实现URL →Action、Result→JSP的自动映射。 2) 利用Struts2的struts2-spring-plugin插件,实现在Action中自动注入service对象。 3) 利用Spring的@Service、@...

    struts-jar.zip

    struts2-convention-plugin-2.5.13.jar struts2-core-2.5.13.jar struts2-spring-plugin-2.5.13.jar struts-core-1.3.8.jar struts-taglib-1.3.8.jar struts-tiles-1.3.8.jar

    struts2 spring4 hibernate4 Struts2零配置,json基本架包

    struts2 spring4 hibernate4 Struts2零配置基本架包 struts2-json-plugin-2.5.5.jar struts2-convention-plugin-2.5.5.jar

    struts2.zip

    struts2-convention-plugin-2.5.10.1.jar struts2-core-2.5.10.1.jar struts2-spring-plugin-2.5.10.1.jar

    struts 2.1.8 jar 完整开发

    commons-fileupload-1.2.1 commons-io-1.3.2 freemarker-2.3.15 ognl-2.7.3 struts2-json-plugin-2.1.8.1 struts2-embeddedjsp-plugin-2.1.8.1 struts2-core-2.1.8.1 ...struts2-spring-plugin-2.1.8.jar

    struts2源码合集

    struts2-convention-plugin-2.3.7-sources.jar struts2-core-2.3.7-sources.jar struts2-core-2.3.8-sources.jar struts2-core-2.3.15.1-sources.jar struts2-rest-plugin-2.3.7-sources.jar struts2-spring-plugin-...

    struts2漏洞修复

    该漏洞影响范围(Struts 2.3.5 - Struts 2.3.31, Struts 2.5 ...文件包含ognl-3.0.21.jar,struts2-convention-plugin-2.3.34.jar,struts2-core-2.3.34.jar,struts2-spring-plugin-2.3.34.jar,xwork-core-2.3.34.jar

    常用的jar包

    struts2-spring-plugin-2.0.14.jar, struts2-config-browser-plugin-2.3.1.1.jar, struts2-convention-plugin-2.3.1.1.jar, c3p0-0.9.1.2.jar,poi-3.6-20091214.jar, ojdbc14.jar, jfreechart-1.0.13.jar, ...

Global site tag (gtag.js) - Google Analytics