0
回答
使用struts-2.3.16.1搭建ssh,自定义configProviders,启动报错
华为云实践训练营,热门技术免费实践!>>>   

[BOSS]-[2014-04-23 14:59:49][ INFO]-[localhost-startStop-1]- com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info(CommonsLogger.java:42) - Unable to locate configuration files of the name struts.xml, skipping
[BOSS]-[2014-04-23 14:59:49][ INFO]-[localhost-startStop-1]- com.opensymphony.xwork2.util.logging.commons.CommonsLogger.info(CommonsLogger.java:42) - Parsing configuration file [struts.xml]
[BOSS]-[2014-04-23 14:59:50][ERROR]-[localhost-startStop-1]- com.opensymphony.xwork2.util.logging.commons.CommonsLogger.error(CommonsLogger.java:38) - Dispatcher initialization failed
Unable to load configuration. - Class: com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
File: XmlConfigurationProvider.java
Method: loadConfigurationFiles
Line: 1011 - com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java:1011:-1
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: Caught exception while loading file com/vianet/common/module/frames/META-INF/config/action.xml - Class: com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
File: XmlConfigurationProvider.java
Method: loadConfigurationFiles
Line: 1011 - com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java:1011:-1
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1025)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:165)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:132)
at com.vianet.framework.core.context.ActionConfigProvider.init(ActionConfigProvider.java:36)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:233)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
... 20 more
Caused by: java.lang.NullPointerException
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1011)
... 25 more
四月 23, 2014 2:59:50 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load configuration. - Class: com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
File: XmlConfigurationProvider.java
Method: loadConfigurationFiles
Line: 1011 - com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java:1011:-1
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:501)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: Unable to load configuration. - Class: com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
File: XmlConfigurationProvider.java
Method: loadConfigurationFiles
Line: 1011 - com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java:1011:-1
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)
... 18 more
Caused by: Caught exception while loading file com/vianet/common/module/frames/META-INF/config/action.xml - Class: com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
File: XmlConfigurationProvider.java
Method: loadConfigurationFiles
Line: 1011 - com/opensymphony/xwork2/config/providers/XmlConfigurationProvider.java:1011:-1
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1025)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:165)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:132)
at com.vianet.framework.core.context.ActionConfigProvider.init(ActionConfigProvider.java:36)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:233)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
... 20 more
Caused by: java.lang.NullPointerException
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1011)
... 25 more
四月 23, 2014 2:59:50 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
四月 23, 2014 2:59:50 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/VianetFramework] startup failed due to previous errors
四月 23, 2014 2:59:50 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext

<无标签>
举报
休闲熊猫
发帖于4年前 0回/754阅
顶部