2 yu zongyao yu_zongyao 于 2014.05.03 12:49 提问

SSH配置,出现了unable to load /struts2-spring-plugin-2.2.1.jar

java myeclipse SSH配置,出现了unable to load /struts2-spring-plugin-2.2.1.jar!/struts-plugin.xml:。可是我在WEB-INF/lib里面有这个jar包。

log4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider).
log4j:WARN Please initialize the log4j system properly.
2014-5-3 12:40:59 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load configuration. - bean - jar:file:/E:/Java%E5%AD%A6%E4%B9%A0%E8%BD%AF%E4%BB%B6/tomcat/apache-tomcat-7.0.52/webapps/TestHibernate/WEB-INF/lib/struts2-spring-plugin-2.2.1.jar!/struts-plugin.xml:29:132
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
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.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
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 configuration. - bean - jar:file:/E:/Java%E5%AD%A6%E4%B9%A0%E8%BD%AF%E4%BB%B6/tomcat/apache-tomcat-7.0.52/webapps/TestHibernate/WEB-INF/lib/struts2-spring-plugin-2.2.1.jar!/struts-plugin.xml:29:132
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
... 19 more
Caused by: Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean - jar:file:/E:/Java%E5%AD%A6%E4%B9%A0%E8%BD%AF%E4%BB%B6/tomcat/apache-tomcat-7.0.52/webapps/TestHibernate/WEB-INF/lib/struts2-spring-plugin-2.2.1.jar!/struts-plugin.xml:29:132
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
... 21 more
Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name spring has already been loaded by bean - jar:file:/E:/Java%E5%AD%A6%E4%B9%A0%E8%BD%AF%E4%BB%B6/tomcat/apache-tomcat-7.0.52/webapps/TestHibernate/WEB-INF/lib/struts2-spring-plugin-2.0.11.2.jar!/struts-plugin.xml:30:132 - bean - jar:file:/E:/Java%E5%AD%A6%E4%B9%A0%E8%BD%AF%E4%BB%B6/tomcat/apache-tomcat-7.0.52/webapps/TestHibernate/WEB-INF/lib/struts2-spring-plugin-2.2.1.jar!/struts-plugin.xml:29:132
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)
... 24 more
2014-5-3 12:40:59 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
2014-5-3 12:40:59 org.apache.catalina.core.StandardContext startInternal
严重: Context [/TestHibernate] startup failed due to previous errors
2014-5-3 12:40:59 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/TestHibernate] created a ThreadLocal with key of type com.sun.faces.util.Util$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2014-5-3 12:40:59 org.apache.catalina.startup.HostConfig deployDirectory

2个回答

yf924092
yf924092   2014.05.31 02:50

换个服务器试试了,别用myeclipse自带的

ThePromonkeyOf_HeLuo
ThePromonkeyOf_HeLuo   2016.06.07 14:44

不用myeclipse自带的,自己集成的Tomcat也不行。

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
struts整合spring插件出现如下异常:Unable to load jar:struts2-spring-plugin-2.3.15.3.jar!/struts-plugin.xml
struts的spring插件版本比struts版本高也不行,struts版本要和struts的spring插件版本一致,否则抛出如下异常: 异常如下: Unable to loadjar:struts2-spring-plugin-2.3.15.3.jar!/struts-plugin.xml - [unknown location] 参考网址: http://blog.csdn.net
Unable to load configuration. - bean - jar:file:/.../struts2-gxp-plugin-2.3.1.jar!/strut-plugin.xml
解决struts2找不到InjectedObjectContainer的异常错误 1、问题描述 在配置struts2的时候,启动Tomcat报如下的错误: Caused by: java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer 2、解
SSH项目启动报错Unable to load configuration. - bean - jar:file,具体配置以及错误信息如下所示,请求大神帮忙解答一下
项目用的是tomcat7、Myeclipse10、jdk是j2SE-1.5,框架是spring+struts2+hibernate,项目启动报错是什么原因?怎么解决呢? **applicationContext.xml的配置**: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="htt
SSH整合时,tomcat启动报错(unable to load class com.mysql.jdbc.Driver)
今天在做SSH整合的时候,碰到tomcat启动报错的问题,(UnsupportedClassVersionError,unable to load class com.mysql.jdbs.Driver)
SSH整合问题:Unable to load configuration. - bean - jar:file:/
今天学习到strusts2与spring的整合,把原来可以交给spring产生的东西都扔给了它,终于拜托了繁琐的代码,只专心于逻辑开发就OK了,现在连strusts的action都可以交给spring容器产生了!   在strusts2和spring整合的时候,必不可少的一个
Genymotion 模拟器出现unable to load virtualbox engine 错误的解决方案
问题:打开Genymotion 模拟器出现unable load virtualbox engine 错误,从而导致无法使用该模拟器。 解决方法:1、设置Genymotion和VirtualBox的兼容性,设置为win7或者别的。 2、打开VirtualBox ,点击管理,点击全局设定,点击网络,点击仅主机网络。 3、设置ip地址如下图。
关于struts2-spring-plugin-2.1.6.jar冲突问题
搭建ssh框架时,引入了题目中的struts2-spring-plugin-2.1.6.jar,可是启动项目时总是报错: Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean - jar:fil
Genymotion 出现“Unable to load virtualbox engine”错误解决方案
使用Win10系统, 在官网上下Genymotion模拟器, 带virtual box虚拟机,安装后,启动Genymotion,报错Unable to load virtualbox engine, 照例在网上搜索一番, 什么修改路径错误, 修改注册表路径,安装virtual box的驱动,删除genymotion 的log文件, 兼容模式都试过了。无作用。 无意中, 查看C:
Mac配置Hadoop遇到的一些问题
在Mac OS X 10.10.5中参考《hadoop实战第2版》配置hadoop(虽然该书已经有点老了,可以同时参考其他博文和官方文档) 0.据书上说要先安装Xcode,由于一直有Xcode,不知这步是否必要 1.首先安装Homebrew 未遇到问题 可以参考百度经验http://jingyan.baidu.com/article/fec7a1e5ec30341190b4e7e5.h
解决Genymotion出现Unable to load VirtualBox engine问题
软件下载官网:http://www.genymotion.net Win7环境下安装后,会启动失败: Genymotion出现Unable to load VirtualBox engine问题 解决方法: 右键-->VirtualBox-->属性-->兼容性-->(打钩)以兼容模式运行这个程序-->(选择)Windows Server 2008 (Service pack 1