首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

TOMCAT 有关问题 大家帮忙看看 什么东东

2013-09-11 
TOMCAT 问题大家帮忙看看 什么错误啊HTML codetomcat 错误严重: Exception starting filter struts2java

TOMCAT 问题 大家帮忙看看 什么错误啊

HTML code
"tomcat 错误"严重: Exception starting filter struts2java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:198)    at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)    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:380)    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)    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:273)    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)    at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98)    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4584)    at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262)    at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257)    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.lang.StringUtils    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)    ... 20 more


[解决办法]
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils

没有这个文件 commons-lang-${version}.jar 的某个版本。
[解决办法]
java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils

[解决办法]
没有apache的jar包。没有commons-lang-2.2.jar或者commons-lang-2.7.jar等

热点排行