严重: Exception starting filter struts2Unable to load configuration. - action - file:/D:/tomcat/apache-tomcat-7.0.70/webapps/struts_test/WEB-INF/classes/struts.xml:26:66 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4939) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619)Caused by: Unable to load configuration. - action - file:/D:/tomcat/apache-tomcat-7.0.70/webapps/struts_test/WEB-INF/classes/struts.xml:26:66 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415) ... 19 moreCaused by: Action class [action.loginAction] not found - action - file:/D:/tomcat/apache-tomcat-7.0.70/webapps/struts_test/WEB-INF/classes/struts.xml:26:66 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:420) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:479) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275) at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) ... 21 more2016-10-1 16:05:13 org.apache.catalina.core.StandardContext startInternal严重: One or more Filters failed to start. Full details will be found in the appropriate container log file2016-10-1 16:05:13 org.apache.catalina.core.StandardContext startInternal严重: Context [/struts_test] startup failed due to previous errors2016-10-1 16:05:13 org.apache.catalina.startup.HostConfig deployDirectory
3 回答
dukelee
TA贡献1条经验 获得超0个赞
把你的web.xml和你项目中的struts.xml文件位置 都贴出来 估计你的struts.xml的位置没有放对 或者是你的web.xml中的struts.xml路径不对
我是偶哦
TA贡献10条经验 获得超3个赞
Caused by: Action class [action.loginAction] not found - action - file:/D:/tomcat/apache-tomcat-7.0.70/webapps/struts_test/WEB-INF/classes/struts.xml:26:66
应该贴一下struts.xml 文件内容和项目结构
添加回答
举报
0/150
提交
取消