struts2中的错误--java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils(

时间:2022-08-30 00:05:15

struts2中的错误--java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils

(2013-04-07 10:16:38)
标签: 

365

 

it

 
 

2013-4-7 10:13:56 org.apache.catalina.startup.HostConfig checkResources
信息: Reloading context [/chapter05-1]
2013-4-7 10:13:56 org.apache.catalina.core.StandardContext stop
信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/chapter05-1] has not been started
2013-4-7 10:13:56 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [struts-default.xml]
2013-4-7 10:13:56 org.apache.catalina.core.StandardContext filterStart
严重:
 Exception starting filter 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.getFilter(ApplicationFilterConfig.java:295)
 at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
 at org.apache.catalina.core.ApplicationFilterConfig.(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.startup.HostConfig.checkResources(HostConfig.java:1284)
 at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1382)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
 at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389)
 at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653)
 at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662)
 at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642)
 at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang3.StringUtils
 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
 ... 22 more
2013-4-7 10:13:56 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2013-4-7 10:13:56 org.apache.catalina.core.StandardContext start
严重: Context [/chapter05-1] startup failed due to previous errors

原因是:差了

commons-lang3-3.1.jar