三月 14, 2016 6:08:46 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\tools\myeclipse\binary\com.sun.java.jdk7.win32.x86_1.7.0.u45\bin;D:\tools\myeclipse\plugins\com.genuitec.eclipse.easie.tomcat7.myeclipse_11.5.0.me201310302042\tomcat\bin
三月 14, 2016 6:08:47 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
三月 14, 2016 6:08:47 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
三月 14, 2016 6:08:47 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1513 ms
三月 14, 2016 6:08:47 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
三月 14, 2016 6:08:47 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.30
三月 14, 2016 6:08:47 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\tm\apache-tomcat-8.0.32\webapps\.metadata\.me_tcat7\webapps\mystruts2
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
18:08:53.561 [localhost-startStop-1] ERROR org.apache.struts2.dispatcher.Dispatcher - Dispatcher initialization failed
com.opensymphony.xwork2.config.ConfigurationException: Unable to load configuration.
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70) ~[xwork-core-2.3.24.1.jar:2.3.24.1] at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967) ~[struts2-core-2.3.24.1.jar:2.3.24.1] at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435) ~[struts2-core-2.3.24.1.jar:2.3.24.1] at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479) [struts2-core-2.3.24.1.jar:2.3.24.1] at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) [struts2-core-2.3.24.1.jar:2.3.24.1] at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) [struts2-core-2.3.24.1.jar:2.3.24.1] at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277) [catalina.jar:7.0.30] at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258) [catalina.jar:7.0.30] at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382) [catalina.jar:7.0.30] at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:103) [catalina.jar:7.0.30] at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650) [catalina.jar:7.0.30] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306) [catalina.jar:7.0.30] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:7.0.30] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) [catalina.jar:7.0.30] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) [catalina.jar:7.0.30] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618) [catalina.jar:7.0.30] at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1100) [catalina.jar:7.0.30] at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1618) [catalina.jar:7.0.30] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_45] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_45] at java.lang.Thread.run(Thread.java:744) [?:1.7.0_45]
Caused by: com.opensymphony.xwork2.config.ConfigurationException: Action class [com.zhu.login.action.LoginAction] not found
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:486) ~[xwork-core-2.3.24.1.jar:2.3.24.1] at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:429) ~[xwork-core-2.3.24.1.jar:2.3.24.1] at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:556) ~[xwork-core-2.3.24.1.jar:2.3.24.1] at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:295) ~[xwork-core-2.3.24.1.jar:2.3.24.1] at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112) ~[struts2-core-2.3.24.1.jar:2.3.24.1] at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:264) ~[xwork-core-2.3.24.1.jar:2.3.24.1] at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) ~[xwork-core-2.3.24.1.jar:2.3.24.1] ... 22 more
三月 14, 2016 6:08:53 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load configuration. - action - file:/D:/tm/apache-tomcat-8.0.32/webapps/.metadata/.me_tcat7/webapps/mystruts2/WEB-INF/classes/struts.xml:9:68
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:493) 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:277) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:103) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306) 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:618) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1100) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1618) 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. - action - file:/D:/tm/apache-tomcat-8.0.32/webapps/.metadata/.me_tcat7/webapps/mystruts2/WEB-INF/classes/struts.xml:9:68
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479) ... 19 more
Caused by: Action class [com.zhu.login.action.LoginAction] not found - action - file:/D:/tm/apache-tomcat-8.0.32/webapps/.metadata/.me_tcat7/webapps/mystruts2/WEB-INF/classes/struts.xml:9:68
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:486) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:429) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:556) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:295) at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:264) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) ... 22 more
Caused by: Action class [com.zhu.login.action.LoginAction] not found - action - file:/D:/tm/apache-tomcat-8.0.32/webapps/.metadata/.me_tcat7/webapps/mystruts2/WEB-INF/classes/struts.xml:9:68
我瞎说一下。
把路径设置好。再不行重装tomcat。。
以后出现这种情况直接找顺序上的最后一个Caused by(其实是第一个,因为java对异常处理十分完善,栈堆消息和历程会全部打印出来),所以一般引发异常都是第一个异常的抛出点,也就是最后一个Caused by
Caused by: Action class [com.zhu.login.action.LoginAction] not found - action - file:/D:/tm/apache-tomcat-8.0.32/webapps/.metadata/.me_tcat7/webapps/mystruts2/WEB-INF/classes/struts.xml:9:68
你的struts.xml第9行有问题,看看是不是少了个右括号或者是忘了写什么,应该是格式不对,再不行就是配置的全类名单词写错了
java系的应用,其报错日志大多都是垃圾日志。
能换平台换平台,不能换平台建议你使点劲,没准喝点蜂蜜他就好了。