问题描述
- javaweb程序放在resin上运行报错,具体错误如下
-
javax.servlet.ServletException: Unable to load configuration. - bean - jar:file:/e:/qingniusoftware/Payment/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72
at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:234)
at com.caucho.server.dispatch.FilterManager.init(FilterManager.java:105)
at com.caucho.server.webapp.WebApp.startImpl(WebApp.java:3698)
at com.caucho.server.webapp.WebApp.access$400(WebApp.java:207)
at com.caucho.server.webapp.WebApp$StartupTask.run(WebApp.java:5217)
at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)
Caused by: Unable to load configuration. - bean - jar:file:/e:/qingniusoftware/Payment/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:204)
... 6 more
Caused by: Unable to load configuration. - bean - jar:file:/e:/qingniusoftware/Payment/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
... 9 more
Caused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/e:/qingniusoftware/Payment/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:221)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:169)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
... 11 more
解决方案
补充一下,不是jar包的问题,jar包绝对没有问题,配置文件resin.xml也对了很多次。
解决方案二:
第一行 你的resin是放在 e:/qingniusoftware/Payment。。。。。路径下的么 ? 感觉是一些文件清理不干净的问题
解决方案三:
感觉像struts.xml的问题,,看下你的struts.xml配置文件,,
解决方案四:
这是我eclipse中的配置
时间: 2024-11-03 01:00:29