当前位置: 代码迷 >> Java Web开发 >> tomcat起动出错,麻烦高手看一上
  详细解决方案

tomcat起动出错,麻烦高手看一上

热度:5774   发布时间:2013-02-25 21:14:30.0
tomcat起动出错,麻烦高手看一下
环境:MyEclipse 6.5 jdk jdk1.6.0_21 tomcat apache-tomcat-7.0.29
起动TOMCAT时报以下错误,是什么原因

2012/08/07 10:53:22 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
情報: Parsing configuration file [struts-default.xml]
2012/08/07 10:53:22 org.apache.catalina.core.StandardContext filterStart
致命的: フィルタ struts2 の起動中の例外です
java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:209)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:210)
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:437)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
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.<init>(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: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: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)
... 26 more
2012/08/07 10:53:22 org.apache.catalina.core.StandardContext startInternal
致命的: Error filterStart
2012/08/07 10:53:22 org.apache.catalina.core.StandardContext startInternal
致命的: 以前のエラーのためにコンテキストの起動が失敗しました [/structs2Test]
2012/08/07 10:53:22 org.apache.coyote.AbstractProtocol start
情報: Starting ProtocolHandler ["http-bio-8080"]
2012/08/07 10:53:22 org.apache.coyote.AbstractProtocol start
情報: Starting ProtocolHandler ["ajp-bio-8009"]
2012/08/07 10:53:22 org.apache.catalina.startup.Catalina start
情報: Server startup in 1675 ms

------解决方案--------------------------------------------------------
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils
有没有导入commons-lang3包?
------解决方案--------------------------------------------------------
java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
  相关解决方案