Unable to load configuration. - package

Unable to load configuration. - package (action)

今天遇到了这个问题,异常只告诉我们在哪行出错了,但是为什么出错却没给描述。

首选说下我是怎么解决的, 把package(action) 对应的名字(name)改掉,改成一个不会被经常用的名字,重启 问题解决。

从解决的方法上看,应该是我们取的名字(name)和已经package (action)重了 特别要注意 struts 或者 struts插件自身也会有配置,如果继承了某些配置 也有可能造成命名重复。

不知道还有没有其它的原因会造成这个异常,至少目前我没有碰到,遇到这个异常的朋友可以试下,看看能不能解决你的问题。

 

 

阅读更多

Strus2 Unable to load configuration.

02-13

程序启动的时候报错:n严重: Exception starting filter struts2nUnable to load configuration. - action - file:/home/yinyutai/self/app/Tomcat/apache-tomcat-7.0.75/webapps/day24_struts1/WEB-INF/classes/struts.xml:7:85n at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:502)n at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)n at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)n at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)n at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)n at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)n at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4958)n at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5652)n at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)n at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)n at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)n at java.util.concurrent.FutureTask.run(FutureTask.java:266)n at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)n at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)n at java.lang.Thread.run(Thread.java:745)nCaused by: Unable to load configuration. - action - file:/home/yinyutai/self/app/Tomcat/apache-tomcat-7.0.75/webapps/day24_struts1/WEB-INF/classes/struts.xml:7:85n at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)n at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)n at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490)n ... 14 morenCaused by: Action class [com.itheima.web.action.HelloAction] not found - action - file:/home/yinyutai/self/app/Tomcat/apache-tomcat-7.0.75/webapps/day24_struts1/WEB-INF/classes/struts.xml:7:85n at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:482)n at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:426)n at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:552)n at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:292)n at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112)n at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:250)n at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)n ... 16 moren但是看了提示的那个位置,写的是:n![ 那个位置是method="sayHello"](https://img-ask.csdn.net/upload/201702/13/1486997072_241307.png) 没发现有什么错误!n![这是引用的jar文件](https://img-ask.csdn.net/upload/201702/13/1486997384_259839.png)nHelloAction.java:n package com.itheima.web.action;n/**n * Struts2入门案例n * @author rootn *n */npublic class HelloAction n /**n * 在动作类中制定的动作方法n * 动作方法的书写要求:n * 1.都是public的n * 2.返回值必须是Stringn * 3.必须没有参数n * @returnn */n public String sayHello() n System.out.println("sayHello,方法执行了!");n return "success";n nnnweb.xml:nn nn day24_struts1n n n n struts2n org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFiltern n n struts2n /*n n n n index.jspn nnnn请大神,给看下,这是一个Struts2的一个小例子但是没有启动起来不知到错误出在哪里,谢谢。

Unable to load configuration. - Class: com.opensymphony.xwork2.config.providers.

09-01

2014-09-01 10:04:36,335 ERROR -Dispatcher initialization failedrnUnable to load configuration. - Class: com.opensymphony.xwork2.config.providers.XmlConfigurationProviderrnFile: XmlConfigurationProvider.javarnMethod: loadConfigurationFilesrnLine: 1045 - com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java:1045:-1rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)rn at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)rn at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)rn at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)rn at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)rn at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)rn at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)rn at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)rn at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)rn at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)rn at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)rn at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)rn at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)rn at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)rn at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)rn at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)rn at org.mortbay.jetty.Server.doStart(Server.java:224)rn at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)rn at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)rn at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454)rn at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396)rn at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)rn at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)rn at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)rn at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)rn at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)rn at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)rn at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)rn at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)rn at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)rn at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)rn at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)rn at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)rn at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)rn at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)rn at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)rn at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)rn at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)rn at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)rn at org.codehaus.classworlds.Launcher.main(Launcher.java:46)rnCaused by: Error loading configuration file struts-default.xml - Class: com.opensymphony.xwork2.config.providers.XmlConfigurationProviderrnFile: XmlConfigurationProvider.javarnMethod: loadConfigurationFilesrnLine: 1045 - com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java:1045:-1rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:169)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:132)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:225)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)rn ... 48 morernCaused by: java.lang.NullPointerExceptionrn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1045)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:165)rn ... 51 morern[WARNING] failed struts2: Unable to load configuration. - Class: com.opensymphony.xwork2.config.providers.XmlConfigurationProviderrnFile: XmlConfigurationProvider.javarnMethod: loadConfigurationFilesrnLine: 1045 - com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java:1045:-1rn[ERROR] Failed startup of context org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@d704f0/service,E:\sinosofthaida\online\src\main\webapprnUnable to load configuration. - Class: com.opensymphony.xwork2.config.providers.XmlConfigurationProviderrnFile: XmlConfigurationProvider.javarnMethod: loadConfigurationFilesrnLine: 1045 - com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java:1045:-1rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:502)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)rn at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)rn at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)rn at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)rn at org.codehaus.classworlds.Launcher.main(Launcher.java:46)rnCaused by: Unable to load configuration. - Class: com.opensymphony.xwork2.config.providers.XmlConfigurationProviderrnFile: XmlConfigurationProvider.javarnMethod: loadConfigurationFilesrnLine: 1045 - com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java:1045:-1rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490)rn ... 46 morernCaused by: Error loading configuration file struts-default.xml - Class: com.opensymphony.xwork2.config.providers.XmlConfigurationProviderrnFile: XmlConfigurationProvider.javarnMethod: loadConfigurationFilesrnLine: 1045 - com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java:1045:-1rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:169)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:132)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:225)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)rn ... 48 morernCaused by: java.lang.NullPointerExceptionrn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1045)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:165)rn ... 51 morernrn项目启动就报错,什么情况

Dispatcher initialization failed Unable to load configuration.

04-23

严重: Dispatcher initialization failedrnUnable to load configuration. - action - file:/E:/works/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyWeibo/WEB-INF/classes/struts.xml:8:94rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:103)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4638)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)rn at java.lang.Thread.run(Thread.java:722)rnCaused by: Action class [com.insigma.struts.WeiboinfoAction] not found - action - file:/E:/works/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyWeibo/WEB-INF/classes/struts.xml:8:94rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:420)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:479)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 18 morernrn四月 23, 2012 7:37:48 下午 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnUnable to load configuration. - action - file:/E:/works/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyWeibo/WEB-INF/classes/struts.xml:8:94rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:103)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4638)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)rn at java.lang.Thread.run(Thread.java:722)rnCaused by: Unable to load configuration. - action - file:/E:/works/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyWeibo/WEB-INF/classes/struts.xml:8:94rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)rn ... 16 morernCaused by: Action class [com.insigma.struts.WeiboinfoAction] not found - action - file:/E:/works/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyWeibo/WEB-INF/classes/struts.xml:8:94rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:420)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:479)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 18 morernrn四月 23, 2012 7:37:48 下午 org.apache.catalina.core.StandardContext startInternalrn严重: Error filterStartrn四月 23, 2012 7:37:48 下午 org.apache.catalina.core.StandardContext startInternalrn严重: Context [/MyWeibo] startup failed due to previous errorsrn四月 23, 2012 7:37:48 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaksrn严重: The web application [/MyWeibo] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1e46afc]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@12be51c]) 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.rn四月 23, 2012 7:37:48 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaksrn严重: The web application [/MyWeibo] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@ce9a12]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1e5414a]) 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.rn四月 23, 2012 7:37:48 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-bio-8080"]rn四月 23, 2012 7:37:48 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-bio-8009"]rn四月 23, 2012 7:37:48 下午 org.apache.catalina.startup.Catalina startrn信息: Server startup in 1801 msrnrn求各路大神指点!

SSH在启动时报错Unable to load configuration.

06-18

[code=XML]rnrn rn contextConfigLocation rn rn /WEB-INF/classes/applicationContext.xml rn rn rn rn rn rn org.springframework.web.context.ContextLoaderListenerrn rn rn rn rn struts2rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn rn configrn /WEB-INF/classes/struts.xmlrn rn rnrn rn struts2rn /*rn rnrn[/code]rnrn[code=Java]rn严重: Dispatcher initialization failedrnUnable to load configuration. - [unknown location]rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:103)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4638)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1099)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1621)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)rn at java.lang.Thread.run(Thread.java:722)rnCaused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location]rn at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:293)rn at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:264)rn at org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectionProvider.java:202)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 22 morernrn六月 18, 2012 12:03:02 上午 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnUnable to load configuration. - [unknown location]rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:103)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4638)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1099)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1621)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)rn at java.lang.Thread.run(Thread.java:722)rnCaused by: Unable to load configuration. - [unknown location]rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)rn ... 20 morernCaused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location]rn at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:293)rn at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:264)rn at org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectionProvider.java:202)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 22 morernrn六月 18, 2012 12:03:02 上午 org.apache.catalina.core.StandardContext startInternalrn严重: Error filterStartrn六月 18, 2012 12:03:02 上午 org.apache.catalina.core.StandardContext startInternalrn严重: Context [/exttest] startup failed due to previous errorsrn[/code]rn弄了好久没有解决,望各位大神帮忙解决下。在网上查了好久说是没有加这个包struts2-spring-plugin-2.2.3.1。但是我已经加了。还是报这个错误。在这不胜感激了。spring跟hibernate整合我已经测得没有问题了。跟struts就出了这问题。rnrnrnrn

struts2问题:Unable to load configuration. - action - file:/......

07-22

[b]异常:[/b]rnrnrn[color=#FF0000]2013-7-22 17:58:21 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\Java\jre6\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;E:/Java/jre6/bin/client;E:/Java/jre6/bin;E:/Java/jre6/lib/i386;E:\Oracle\product\11.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;E:\Java\jdk1.6.0_26\bin;E:\MySQL\MySQL Server 5.5\bin;E:\TortoiseSVN\bin;E:\Oracle\product\11.2.0\client_1\BIN;E:\eclipseJUNO;;.rn2013-7-22 17:58:21 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:Login_SSH' did not find a matching property.rn2013-7-22 17:58:22 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-bio-8080"]rn2013-7-22 17:58:22 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-bio-8009"]rn2013-7-22 17:58:22 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 725 msrn2013-7-22 17:58:22 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn2013-7-22 17:58:22 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/7.0.42rn2013-7-22 17:58:24 org.apache.catalina.core.ApplicationContext logrn信息: No Spring WebApplicationInitializer types detected on classpathrn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-default.xml]rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-plugin.xml]rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts.xml]rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionFileProcessor)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterCreator)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterHolder)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)rn2013-7-22 17:58:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser)rn2013-7-22 17:58:25 com.opensymphony.xwork2.util.logging.commons.CommonsLogger errorrn严重: Dispatcher initialization failedrnUnable to load configuration. - action - file:/E:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Login_SSH/WEB-INF/classes/struts.xml:16:97rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:107)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: Action class [com.dqgb.Action.RegisterAction] not found - action - file:/E:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Login_SSH/WEB-INF/classes/struts.xml:16:97rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:482)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:426)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:552)rn rnrn

换一批

Unable to load configuration. - bean - jar:file

12-31

严重: Dispatcher initialization failedrnUnable to load configuration. - bean - jar:file:/D:/Program%20Files/Tomcat%206.0/webapps/StrutsTest/WEB-INF/lib/struts2-core-2.2.3.1.jar!/struts-default.xml:29:72rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/D:/Program%20Files/Tomcat%206.0/webapps/StrutsTest/WEB-INF/lib/struts2-core-2.2.3.1.jar!/struts-default.xml:29:72rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:221)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:169)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)rn ... 31 morernCaused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/D:/Program%20Files/Tomcat%206.0/webapps/StrutsTest/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72 - bean - jar:file:/D:/Program%20Files/Tomcat%206.0/webapps/StrutsTest/WEB-INF/lib/struts2-core-2.2.3.1.jar!/struts-default.xml:29:72rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:205)rn ... 34 morern2011-12-31 17:06:26 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnUnable to load configuration. - bean - jar:file:/D:/Program%20Files/Tomcat%206.0/webapps/StrutsTest/WEB-INF/lib/struts2-core-2.2.3.1.jar!/struts-default.xml:29:72rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: Unable to load configuration. - bean - jar:file:/D:/Program%20Files/Tomcat%206.0/webapps/StrutsTest/WEB-INF/lib/struts2-core-2.2.3.1.jar!/struts-default.xml:29:72rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)rn ... 29 morernCaused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/D:/Program%20Files/Tomcat%206.0/webapps/StrutsTest/WEB-INF/lib/struts2-core-2.2.3.1.jar!/struts-default.xml:29:72rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:221)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:169)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)rn ... 31 morernCaused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/D:/Program%20Files/Tomcat%206.0/webapps/StrutsTest/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72 - bean - jar:file:/D:/Program%20Files/Tomcat%206.0/webapps/StrutsTest/WEB-INF/lib/struts2-core-2.2.3.1.jar!/struts-default.xml:29:72rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:205)rn ... 34 morern2011-12-31 17:06:26 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2011-12-31 17:06:26 org.apache.catalina.core.StandardContext startrn严重: Context [/StrutsTest] startup failed due to previous errorsrn2011-12-31 17:06:26 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2011-12-31 17:06:26 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2011-12-31 17:06:26 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/16 config=nullrn2011-12-31 17:06:26 org.apache.catalina.startup.Catalina start

Exception starting filter struts2 Unable to load configuration.

04-26

严重: Exception starting filter struts2rnUnable to load configuration. - [unknown location]rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:48)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: Caught exception while loading file struts-default.xml - [unknown location]rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:894)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:144)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:111)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:164)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)rn ... 31 morernCaused by: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfigurationrn at org.apache.xerces.parsers.DOMParser.(Unknown Source)rn at org.apache.xerces.parsers.DOMParser.(Unknown Source)rn at org.apache.xerces.jaxp.DocumentBuilderImpl.(Unknown Source)rn at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)rn at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.(SAX2DOM.java:69)rn at com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler(TransletOutputHandlerFactory.java:187)rn at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:392)rn at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult(TransformerHandlerImpl.java:137)rn at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:205)rn at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:190)rn at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:181)rn at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:167)rn at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:107)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:885)rn ... 35 morernrnrn这是报的什么错啊 ,我调试了好久都没有用,我头都晕了!!求高手指教啊

ssh整合错误:Unable to load configuration. - [unknown location]

04-02

[code=Java]rn2010-4-2 20:15:08 org.apache.catalina.core.AprLifecycleListener initrn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: G:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;G:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_8.5.0.me201003121946\tomcat\binrn2010-4-2 20:15:08 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2010-4-2 20:15:08 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1160 msrn2010-4-2 20:15:08 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2010-4-2 20:15:08 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.13rn2010-4-2 20:15:12 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrn2010-04-02 20:15:27,906 ERROR [org.apache.struts2.dispatcher.Dispatcher] - Dispatcher initialization failedrnUnable to load configuration. - [unknown location]rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)rn at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location]rn at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:293)rn at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:264)rn at org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectionProvider.java:203)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:169)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)rn ... 30 morern2010-4-2 20:15:27 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnUnable to load configuration. - [unknown location]rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)rn at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4340)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: Unable to load configuration. - [unknown location]rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)rn ... 28 morernCaused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location]rn at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:293)rn at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:264)rn at org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectionProvider.java:203)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:169)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)rn ... 30 morern2010-4-2 20:15:27 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2010-4-2 20:15:27 org.apache.catalina.core.StandardContext startrn严重: Context [/blog] startup failed due to previous errorsrn2010-4-2 20:15:27 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrnlog4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.rn2010-4-2 20:15:29 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2010-4-2 20:15:29 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2010-4-2 20:15:29 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/125 config=nullrn2010-4-2 20:15:29 org.apache.catalina.startup.Catalina startrn信息: Server startup in 21497 msrnrnrn[/code]rnrn版本:rnspring:3.0.1 rnhibernate:3.3 rnstruts:2.1.8

Unable to load configuration. - bean - jar:file:/F:/apache-tomcat-7.0.69/webapps

07-07

Unable to load configuration. - bean - jar:file:/F:/apache-tomcat-7.0.69/webapps/strus2/WEB-INF/lib/struts2-spring-plugin-2.3.24.jar!/struts-plugin.xml:29:132rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)rn at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4908)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5602)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean - jar:file:/F:/apache-tomcat-7.0.69/webapps/strus2/WEB-INF/lib/struts2-spring-plugin-2.3.24.jar!/struts-plugin.xml:29:132rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:247)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:240)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)rn ... 22 morernCaused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAwarern at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:621)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3125)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1341)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1827)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:621)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3125)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1341)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1827)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)rn at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:144)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:218)rn ... 25 morern本地jar包rn[img=http://img.bbs.csdn.net/upload/201707/07/1499418277_849129.png][/img]rn大佬们,你们在哪里呀,bug来了,小弟解决不掉啊

struts2.18怎么启动不了呢?Unable to load configuration. - action

06-01

tomcat6.0.14,struts2.1.81,简单的一个例子居然就不能成功,郁闷啊,已导入的jar包有7个,分别是:rn[color=#FF0000]commons-fileupload-1.2.1.jarrncommons-io-1.3.2.jarrncommons-logging-1.0.4.jarrnfreemarker-2.3.15.jarrnognl-2.7.3.jarrnstruts2-core-2.1.8.1.jarrnxwork-core-2.1.6.jarrn[/color]rn我的web.xml如下:rn[code=Java]rnrnrnrn rn struts2rn rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilterrn rn rn rn struts2rn /*rn rn rn rn index.jsprn rn rnrn[/code]rnrnsrc下的struts.xml如下:rn[code=Java]rnrnrnrnrn rn rn /succ.jsprn /fail.jsprn rn rnrn[/code]rnrnRegisterAction.java如下:rn[code=Java]rnpackage com.ac.action;rnrnimport com.opensymphony.xwork2.ActionSupport;rnrnpublic class RegisterAction extends ActionSupport rnrn private String username;rn private String password;rn private String password2;rn rn public String getUsername() rn return username;rn rn public void setUsername(String username) rn this.username = username;rn rn public String getPassword() rn return password;rn rn public void setPassword(String password) rn this.password = password;rn rn public String getPassword2() rn return password2;rn rn public void setPassword2(String password2) rn this.password2 = password2;rn rn rn @Overridern public String execute() throws Exception rn return "success";rn rn rnrnrnrn[/code]rnrnconf下的sever.xml如下:rn[code=Java]rn.rn.rn rn.rn.[/code]rnrnreg.jsp如下:rn[code=Java]rn rn rn rn rn 用户名:rn rn rn rn 密 码:rn rn rn rn 重复密码:rn rn rn rn rn rn rn rn rnrn[/code]rnrn最后结果,连启动都启动不起来,错误信息如下:rnrn[code=Java]rn严重: Exception starting filter struts2rnUnable to load configuration. - action - file:/E:/workspace/aaa/WebRoot/WEB-INF/classes/struts.xml:8:65rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: Unable to load configuration. - action - file:/E:/workspace/aaa/WebRoot/WEB-INF/classes/struts.xml:8:65rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)rn ... 20 morernCaused by: Error building results for action register in namespace - action - file:/E:/workspace/aaa/WebRoot/WEB-INF/classes/struts.xml:8:65rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:367)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:468)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:264)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:193)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)rn ... 22 morernCaused by: There is no result type defined for type 'success' mapped with name 'success'. Did you mean 'success'? - result - file:/E:/workspace/aaa/WebRoot/WEB-INF/classes/struts.xml:9:27rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults(XmlConfigurationProvider.java:621)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)rn ... 27 morern2010-6-1 16:04:45 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2010-6-1 16:04:45 org.apache.catalina.core.StandardContext startrn严重: Context [/reg] startup failed due to previous errorsrn2010-6-1 16:04:45 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcrn严重: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn2010-6-1 16:04:45 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1fa681c]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@c92507]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2010-6-1 16:04:45 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@19e09a4]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@8aeed0]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2010-6-1 16:04:45 org.apache.catalina.loader.WebappClassLoader validateJarFilern[/code]rnrn搜遍百度,google也没找到相应的解决办法,拜求大神帮忙啊,谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢rnrn

求教高手:Unable to load configuration. - bean - jar:file:

07-22

今天配置Struts2时出了这个问题,求高手指点,错误信息如下:rnrnUnable to load configuration. - bean - jar:file:/D:/MyWorkSpase/tomcat-6.0.20/webapps/LMS/WEB-INF/lib/struts2-gxp-plugin-2.3.1.2.jar!/struts-plugin.xml:8:162rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:583)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: Unable to load bean: type:org.apache.struts2.views.gxp.inject.InjectedObjectContainer class:org.apache.struts2.views.gxp.inject.InjectedObjectContainer - bean - jar:file:/D:/MyWorkSpase/tomcat-6.0.20/webapps/LMS/WEB-INF/lib/struts2-gxp-plugin-2.3.1.2.jar!/struts-plugin.xml:8:162rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:235)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 31 more

项目启动报错Unable to load configuration. - action - file 求大神解决。。。。

02-15

Unable to load configuration. - action - file:/C:/Myeclipse6.5/workspace/apache-tomcat-6.0.29/webapps/login/WEB-INF/classes/information.xml:8:94rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)rn at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:193)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4651)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: Error building results for action information in namespace /information - action - file:/C:/Myeclipse6.5/workspace/apache-tomcat-6.0.29/webapps/login/WEB-INF/classes/information.xml:8:94rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:389)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:495)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:286)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:234)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 30 morernCaused by: There is no result type defined for type 'redirect-action' mapped with name 'executeAdd'. Did you mean 'redirectAction'? - result - file:/C:/Myeclipse6.5/workspace/apache-tomcat-6.0.29/webapps/login/WEB-INF/classes/information.xml:19:53rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults(XmlConfigurationProvider.java:653)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:387)rn ... 35 morern2013-2-15 16:14:57 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnUnable to load configuration. - action - file:/C:/Myeclipse6.5/workspace/apache-tomcat-6.0.29/webapps/login/WEB-INF/classes/information.xml:8:94rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:450)rn at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:193)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4651)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: Unable to load configuration. - action - file:/C:/Myeclipse6.5/workspace/apache-tomcat-6.0.29/webapps/login/WEB-INF/classes/information.xml:8:94rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)rn ... 28 morernCaused by: Error building results for action information in namespace /information - action - file:/C:/Myeclipse6.5/workspace/apache-tomcat-6.0.29/webapps/login/WEB-INF/classes/information.xml:8:94rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:389)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:495)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:286)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:234)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 30 morernCaused by: There is no result type defined for type 'redirect-action' mapped with name 'executeAdd'. Did you mean 'redirectAction'? - result - file:/C:/Myeclipse6.5/workspace/apache-tomcat-6.0.29/webapps/login/WEB-INF/classes/information.xml:19:53rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults(XmlConfigurationProvider.java:653)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:387)rn ... 35 morern2013-2-15 16:14:57 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2013-2-15 16:14:57 org.apache.catalina.core.StandardContext startrn严重: Context [/login] startup failed due to previous errorsrn2013-2-15 16:14:57 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContext

Exception starting filter struts2 Unable to load configuration. - [unknown locat

10-31

Exception starting filter struts2 Unable to load configuration. - [unknown location]rn启动tomcat或从新部署项目时老报这个错,并且时好时坏,太郁闷了。。。求各路大神看看rn2013-10-31 12:53:24 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\MyEclipse 6.5\bin;C:\Program Files\Apache Software Foundation\Tomcat 6.0\binrn2013-10-31 12:53:24 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2013-10-31 12:53:24 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 509 msrn2013-10-31 12:53:24 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2013-10-31 12:53:24 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.18rn2013-10-31 12:53:26 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rnlog4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.rn2013-10-31 12:54:01 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnUnable to load configuration. - [unknown location]rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: Unable to load configuration. - [unknown location]rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)rn ... 29 morernCaused by: Unable to load jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ROOT/WEB-INF/lib/struts2-dojo-plugin-2.3.4.jar!/struts-plugin.xml - [unknown location]rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:909)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:154)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:121)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:179)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 31 morernCaused by: Connection timed out: connect - [unknown location]rn at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:904)rn ... 35 morernCaused by: java.net.ConnectException: Connection timed out: connectrn at java.net.PlainSocketImpl.socketConnect(Native Method)rn at java.net.PlainSocketImpl.doConnect(Unknown Source)rn at java.net.PlainSocketImpl.connectToAddress(Unknown Source)rn at java.net.PlainSocketImpl.connect(Unknown Source)rn at java.net.Socket.connect(Unknown Source)rn at java.net.Socket.connect(Unknown Source)rn at sun.net.NetworkClient.doConnect(Unknown Source)rn at sun.net.www.http.HttpClient.openServer(Unknown Source)rn at sun.net.www.http.HttpClient.openServer(Unknown Source)rn at sun.net.www.http.HttpClient.(Unknown Source)rn at sun.net.www.http.HttpClient.New(Unknown Source)rn at sun.net.www.http.HttpClient.New(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)rn at javax.xml.parsers.SAXParser.parse(Unknown Source)rn at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:113)rn ... 36 morern2013-10-31 12:54:01 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2013-10-31 12:54:01 org.apache.catalina.core.StandardContext startrn严重: Context [] startup failed due to previous errorsrn2013-10-31 12:54:01 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn2013-10-31 12:54:02 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2013-10-31 12:54:02 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2013-10-31 12:54:02 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/31 config=nullrn2013-10-31 12:54:02 org.apache.catalina.startup.Catalina startrn信息: Server startup in 38047 msrn

Exception starting filter struts2 Unable to load configuration. - bean -

02-29

Exception starting filter struts2rnUnable to load configuration. - bean - jar:file:/F:/Tomcat7.0/webapps/SSH/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:46:178rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:48)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4917)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5609)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1975)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: Unable to load bean: type:org.apache.struts2.dispatcher.multipart.MultiPartRequest class:org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest - bean - jar:file:/F:/Tomcat7.0/webapps/SSH/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:46:178rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:222)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:165)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)rn ... 21 morernCaused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/RequestContextrn at java.lang.Class.getDeclaredConstructors0(Native Method)rn at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)rn at java.lang.Class.getDeclaredConstructors(Class.java:1836)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:212)rn ... 24 morernCaused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.RequestContextrn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1856)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1705)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 28 morernrn附上两张配置[img=http://img.bbs.csdn.net/upload/201602/29/1456677711_985563.png][/img]rn[img=http://img.bbs.csdn.net/upload/201602/29/1456677988_796819.png][/img]rnrn寻求帮助[img=http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/43.gif][/img]rn

struts部署不成功Dispatcher initialization。failed Unable to load configuration.

09-29

严重: Dispatcher initialization failedrnUnable to load configuration. - bean - jar:file:/D:/Workspaces/apache-tomcat-7.0.55/webapps/Hellostruts/WEB-INF/lib/struts2-spring-plugin-2.3.16.3.jar!/struts-plugin.xml:29:132rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4828)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5508)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean - jar:file:/D:/Workspaces/apache-tomcat-7.0.55/webapps/Hellostruts/WEB-INF/lib/struts2-spring-plugin-2.3.16.3.jar!/struts-plugin.xml:29:132rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:234)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)rn ... 20 morernCaused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAwarern at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:760)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2957)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1210)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1690)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:760)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2957)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1210)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1690)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:144)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)rn ... 23 morernCaused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContextAwarern at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn ... 39 morern九月 29, 2014 12:15:46 下午 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnUnable to load configuration. - bean - jar:file:/D:/Workspaces/apache-tomcat-7.0.55/webapps/Hellostruts/WEB-INF/lib/struts2-spring-plugin-2.3.16.3.jar!/struts-plugin.xml:29:132rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:501)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4828)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5508)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: Unable to load configuration. - bean - jar:file:/D:/Workspaces/apache-tomcat-7.0.55/webapps/Hellostruts/WEB-INF/lib/struts2-spring-plugin-2.3.16.3.jar!/struts-plugin.xml:29:132rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)rn ... 18 morernCaused by: Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean - jar:file:/D:/Workspaces/apache-tomcat-7.0.55/webapps/Hellostruts/WEB-INF/lib/struts2-spring-plugin-2.3.16.3.jar!/struts-plugin.xml:29:132rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:234)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)rn ... 20 morernCaused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAwarern at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:760)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2957)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1210)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1690)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:760)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2957)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1210)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1690)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:144)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)rn ... 23 morernCaused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContextAwarern at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn ... 39 morern九月 29, 2014 12:15:46 下午 org.apache.catalina.core.StandardContext startInternalrn严重: Error filterStartrn九月 29, 2014 12:15:46 下午 org.apache.catalina.core.StandardContext startInternalrn严重: Context [/Hellostruts] startup failed due to previous errorsrn九月 29, 2014 12:15:46 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaksrn严重: The web application [/Hellostruts] created a ThreadLocal with key of type [com.sun.faces.util.Util$1] (value [com.sun.faces.util.Util$1@cffb79]) and a value of type [java.util.HashMap] (value [com.sun.faces.patternCache= = ]) 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.rn九月 29, 2014 12:15:46 下午 org.apache.catalina.startup.HostConfig deployDirectoryrnrn求助,感激涕零

struts2和hibernate整合 Unable to load configuration. - [unknown location]

03-17

2012-3-17 22:32:40 com.opensymphony.xwork2.util.logging.commons.CommonsLogger errorrn严重: Dispatcher initialization failedrnUnable to load configuration. - [unknown location]rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

收藏 求教高手:Unable to load configuration. - bean - jar:file:

03-13

[11:41:25.895] main Caused by: Unable to load configuration. - bean - jar:file:/E:/Workspace2/MSAdapter/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72rn[11:41:25.895] main at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)rn[11:41:25.895] main at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn[11:41:25.895] main at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn[11:41:25.895] main at com.caucho.server.dispatch.FilterManager.createFilter(FilterManager.java:197)rn[11:41:25.895] main ... 18 morern[11:41:25.895] main Caused by: Unable to load configuration. - bean - jar:file:/E:/Workspace2/MSAdapter/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72rn[11:41:25.895] main at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)rn[11:41:25.895] main at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)rn[11:41:25.895] main at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)rn[11:41:25.895] main ... 21 morern[11:41:25.895] main Caused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/E:/Workspace2/MSAdapter/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72rn[11:41:25.895] main at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:221)rn[11:41:25.895] main at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)rn[11:41:25.895] main at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:169)rn[11:41:25.895] main at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)rn[11:41:25.895] main ... 23 morern[11:41:25.895] main Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/E:/Workspace2/MSBP_Refactor/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72 - bean - jar:file:/E:/Workspace2/MSAdapter/WebRoot/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:29:72rn[11:41:25.895] main at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:205)rn[11:41:25.895] main ... 26 morernrnrn怎么回事儿啊?

关于Unable to load configuration. - action - file:/C:/Program%20Files/apache-tomca

01-17

在myeclipse8.5 tomcat 7.0rnUnable to load configuration. - action - file:/C:/Program%20Files/apache-tomcat-7.0.5/webapps/ch02/WEB-INF/classes/struts.xml:7:76rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)rn at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:98)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4405)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5037)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:570)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1010)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:933)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1267)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)rn at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:328)rn at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:308)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1043)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:738)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1035)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:289)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:442)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:674)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:596)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)rnCaused by: Action class [org.sunxin.struts2.action.RegisterAction] not found - action - file:/C:/Program%20Files/apache-tomcat-7.0.5/webapps/ch02/WEB-INF/classes/struts.xml:7:76rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:420)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:479)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 39 morern2011-1-17 13:24:45 org.apache.catalina.core.StandardContext filterStartrnjar包有:commons-fildupload-1.2.1.jar commons-io-1.3.2.jar commons-logging-1.0.4.jar freemarker-2.3.26.jar rnjavassist-3.7.jar ognl-3.0.jar struts2-core-2.2.1.jar xwork-core-2.2.1.jar

Unable to load configuration. - bean - jar:file:/D:/Workspaces/apache-tomcat-7.0

09-29

严重: Dispatcher initialization failedrnUnable to load configuration. - bean - jar:file:/D:/Workspaces/apache-tomcat-7.0.55/webapps/Hellostruts/WEB-INF/lib/struts2-core-2.3.16.3.jar!/struts-default.xml:40:72rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4828)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5508)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/D:/Workspaces/apache-tomcat-7.0.55/webapps/Hellostruts/WEB-INF/lib/struts2-core-2.3.16.3.jar!/struts-default.xml:40:72rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 20 morernCaused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name struts has already been loaded by bean - jar:file:/D:/Workspaces/apache-tomcat-7.0.55/webapps/Hellostruts/WEB-INF/lib/struts2-core-2.2.1.jar!/struts-default.xml:30:124 - bean - jar:file:/D:/Workspaces/apache-tomcat-7.0.55/webapps/Hellostruts/WEB-INF/lib/struts2-core-2.3.16.3.jar!/struts-default.xml:40:72rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)rn ... 23 morern九月 29, 2014 10:50:36 上午 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnUnable to load configuration. - bean - jar:file:/D:/Workspaces/apache-tomcat-7.0.55/webapps/Hellostruts/WEB-INF/lib/struts2-core-2.3.16.3.jar!/struts-default.xml:40:72rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4828)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5508)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: Unable to load configuration. - bean - jar:file:/D:/Workspaces/apache-tomcat-7.0.55/webapps/Hellostruts/WEB-INF/lib/struts2-core-2.3.16.3.jar!/struts-default.xml:40:72rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)rn ... 18 morernCaused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/D:/Workspaces/apache-tomcat-7.0.55/webapps/Hellostruts/WEB-INF/lib/struts2-core-2.3.16.3.jar!/struts-default.xml:40:72rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232)rn at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 20 morernCaused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name struts has already been loaded by bean - jar:file:/D:/Workspaces/apache-tomcat-7.0.55/webapps/Hellostruts/WEB-INF/lib/struts2-core-2.2.1.jar!/struts-default.xml:30:124 - bean - jar:file:/D:/Workspaces/apache-tomcat-7.0.55/webapps/Hellostruts/WEB-INF/lib/struts2-core-2.3.16.3.jar!/struts-default.xml:40:72rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)rn ... 23 morern九月 29, 2014 10:50:36 上午 org.apache.catalina.core.StandardContext startInternalrn严重: Error filterStartrn九月 29, 2014 10:50:36 上午 org.apache.catalina.core.StandardContext startInternalrn严重: Context [/Hellostruts] startup failed due to previous errorsrn九月 29, 2014 10:50:36 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaksrn严重: The web application [/Hellostruts] created a ThreadLocal with key of type [com.sun.faces.util.Util$1] (value [com.sun.faces.util.Util$1@105481]) and a value of type [java.util.HashMap] (value [com.sun.faces.patternCache= = ]) 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.rn九月 29, 2014 10:50:36 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deployment of web application directory D:\Workspaces\apache-tomcat-7.0.55\webapps\Hellostruts has finished in 3,059 msrn九月 29, 2014 10:50:36 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\Workspaces\apache-tomcat-7.0.55\webapps\host-managerrn九月 29, 2014 10:50:37 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deployment of web application directory D:\Workspaces\apache-tomcat-7.0.55\webapps\host-manager has finished in 50 msrn九月 29, 2014 10:50:37 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\Workspaces\apache-tomcat-7.0.55\webapps\managerrn九月 29, 2014 10:50:37 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deployment of web application directory D:\Workspaces\apache-tomcat-7.0.55\webapps\manager has finished in 36 msrn九月 29, 2014 10:50:37 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory D:\Workspaces\apache-tomcat-7.0.55\webapps\ROOTrn九月 29, 2014 10:50:37 上午 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deployment of web application directory D:\Workspaces\apache-tomcat-7.0.55\webapps\ROOT has finished in 39 msrn九月 29, 2014 10:50:37 上午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-apr-8080"]rn九月 29, 2014 10:50:37 上午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-apr-8009"]rn九月 29, 2014 10:50:37 上午 org.apache.catalina.startup.Catalina startrn信息: Server startup in 3844 msrnrnrn折腾了好几天,网上的方法都试了还是没用,lib下把struts2的包全导进去了的,应该没有少,求大家集思广益呀!

没有更多推荐了,返回首页