当前位置: 代码迷 >> Java相关 >> 额,出错了,是不是还没部署好?解决思路
  详细解决方案

额,出错了,是不是还没部署好?解决思路

热度:3179   发布时间:2013-02-25 21:47:18.0
额,出错了,是不是还没部署好?
Java code
2012-3-5 23:13:12 org.apache.catalina.core.AprLifecycleListener init信息: Loaded APR based Apache Tomcat Native library 1.1.22.2012-3-5 23:13:13 org.apache.catalina.core.AprLifecycleListener init信息: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].2012-3-5 23:13:16 org.apache.coyote.http11.Http11AprProtocol init信息: Initializing Coyote HTTP/1.1 on http-80802012-3-5 23:13:16 org.apache.coyote.ajp.AjpAprProtocol init信息: Initializing Coyote AJP/1.3 on ajp-80092012-3-5 23:13:16 org.apache.catalina.startup.Catalina load信息: Initialization processed in 4444 ms2012-3-5 23:13:16 org.apache.catalina.core.StandardService start信息: Starting service Catalina2012-3-5 23:13:16 org.apache.catalina.core.StandardEngine start信息: Starting Servlet Engine: Apache Tomcat/6.0.352012-3-5 23:13:16 org.apache.catalina.startup.HostConfig deployDescriptor信息: Deploying configuration descriptor host-manager.xml2012-3-5 23:13:17 org.apache.catalina.startup.HostConfig deployDescriptor信息: Deploying configuration descriptor manager.xml2012-3-5 23:13:17 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory docs2012-3-5 23:13:17 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory examples2012-3-5 23:13:18 org.apache.catalina.core.ApplicationContext log信息: ContextListener: contextInitialized()2012-3-5 23:13:18 org.apache.catalina.core.ApplicationContext log信息: SessionListener: contextInitialized()2012-3-5 23:13:18 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory ROOT2012-3-5 23:13:18 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory struts22012-3-5 23:13:20 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn警告: Could not create JarEntryRevision for [jar:file:/F:/Java/apache-tomcat-6.0.35/apache-tomcat-6.0.35/webapps/struts2/WEB-INF/lib/struts2-core-2.3.1.2.jar]!java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils    at com.opensymphony.xwork2.util.FileManager$JarEntryRevision.build(FileManager.java:309)    at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:145)    at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:105)    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:935)    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:155)    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:122)    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:179)    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)    at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436)    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.getFilter(ApplicationFilterConfig.java:295)    at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072)    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726)    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)    at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)    at org.apache.catalina.core.StandardService.start(StandardService.java:525)    at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)    at org.apache.catalina.startup.Catalina.start(Catalina.java:595)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:597)    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.FileUtils    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)    ... 39 more2012-3-5 23:13:20 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info信息: Parsing configuration file [struts-default.xml]2012-3-5 23:13:20 org.apache.catalina.core.StandardContext filterStart严重: Exception starting filter struts2java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:201)    at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180)    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)    at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436)    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.getFilter(ApplicationFilterConfig.java:295)    at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072)    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726)    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)    at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)    at org.apache.catalina.core.StandardService.start(StandardService.java:525)    at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)    at org.apache.catalina.startup.Catalina.start(Catalina.java:595)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:597)    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)    ... 35 more2012-3-5 23:13:20 org.apache.catalina.core.StandardContext start严重: Error filterStart2012-3-5 23:13:20 org.apache.catalina.core.StandardContext start严重: Context [/struts2] startup failed due to previous errors2012-3-5 23:13:21 org.apache.coyote.http11.Http11AprProtocol start信息: Starting Coyote HTTP/1.1 on http-80802012-3-5 23:13:21 org.apache.coyote.ajp.AjpAprProtocol start信息: Starting Coyote AJP/1.3 on ajp-80092012-3-5 23:13:21 org.apache.catalina.startup.Catalina start信息: Server startup in 5364 ms
  相关解决方案