java.lang.NoClassDefFoundError: org/apache/commons/el/Logger

原创 2016年05月31日 07:58:04

五月 31, 2016 7:59:34 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.NoClassDefFoundError: org/apache/commons/el/Logger
 at org.apache.myfaces.util.ClassUtils.<clinit>(ClassUtils.java:41)
 at org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(FacesConfigurator.java:138)
 at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:115)
 at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:63)
 at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:46)
 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4811)
 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5251)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.el.Logger
 at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1305)
 at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1139)
 ... 14 more

五月 31, 2016 7:59:34 上午 com.sun.faces.config.ConfigureListener contextInitialized
信息: 初始化上下文 '/autotest' 的 Mojarra 2.1.27 ( 20140108-1632 https://svn.java.net/svn/mojarra~svn/tags/2.1.27@12764)
五月 31, 2016 7:59:34 上午 com.sun.faces.spi.InjectionProviderFactory createInstance
信息: JSF1048:有 PostConstruct/PreDestroy 注释。标有这些注释的 ManagedBeans 方法将表示注释已处理。
五月 31, 2016 7:59:36 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.NoClassDefFoundError: Could not initialize class org.apache.myfaces.util.ClassUtils
 at org.apache.myfaces.config.FacesConfigurator.feedStandardConfig(FacesConfigurator.java:138)
 at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:115)
 at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:63)
 at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:46)
 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4809)
 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5251)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)

五月 31, 2016 7:59:36 上午 org.apache.catalina.core.StandardContext startInternal
严重: One or more listeners failed to start. Full details will be found in the appropriate container log file
五月 31, 2016 7:59:36 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/autotest] startup failed due to previous errors
五月 31, 2016 7:59:36 上午 javax.faces.FactoryFinder$FactoryManager getFactory
严重: 启动时没有正确初始化应用程序,无法找到工厂:javax.faces.application.ApplicationFactory. Attempting to find backup.
五月 31, 2016 7:59:36 上午 com.sun.faces.config.ConfigureListener contextDestroyed
严重: Unexpected exception when attempting to tear down the Mojarra runtime
java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory.
 at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1010)
 at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:342)
 at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:141)
 at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:314)
 at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4856)
 at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5474)
 at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 at java.lang.Thread.run(Thread.java:745)

五月 31, 2016 7:59:36 上午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
五月 31, 2016 7:59:36 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
警告: The web application [autotest] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
五月 31, 2016 7:59:36 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
警告: The web application [autotest] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.lang.Object.wait(Native Method)
 java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
 com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)
五月 31, 2016 7:59:36 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\Tomcat 8.0\webapps\ROOT
五月 31, 2016 7:59:36 上午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory F:\Tomcat 8.0\webapps\ROOT has finished in 109 ms
五月 31, 2016 7:59:36 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
五月 31, 2016 7:59:36 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
五月 31, 2016 7:59:36 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 23599 ms

解决办法:导入common_el.jar包即可。

 

java.lang.NoClassDefFoundError: org/apache/commons/el/Logger

工程导入了log4j.jar,也建了log4j.properties ,启动服务还是报错: 导入commons-el.jar 包后,又报新的错。 六月 10, 2016 10:26:02 上午 o...
  • ziyouniao719672119
  • ziyouniao719672119
  • 2016年06月10日 10:47
  • 669

怎么解决java.lang.NoClassDefFoundError错误

前言在日常Java开发中,我们经常碰到java.lang.NoClassDefFoundError这样的错误,需要花费很多时间去找错误的原因,具体是哪个类不见了?类明明还在,为什么找不到?而且我们很容...
  • jamesjxin
  • jamesjxin
  • 2015年06月23日 15:22
  • 412095

Maven项目出错——java.lang.NoClassDefFoundError

错误详情: 严重: Error configuring application listener of class cn.com.yitong.ares.core.ContextLoaderListe...
  • u012604299
  • u012604299
  • 2015年07月02日 14:45
  • 3709

java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext

java.lang.NoClassDefFoundError:org/springframework/context/ApplicationContext   如果是tomcat部署工程后出现...
  • pianistOfSoftware
  • pianistOfSoftware
  • 2016年10月13日 10:57
  • 4900

maven 转myeclipse项目

>mvn eclipse:clean eclipse:eclipse 运行出错 maven-metadata-glassfish-repo-archive.xml这个文件第5行去掉 再运行就对了...
  • szh2048
  • szh2048
  • 2012年06月18日 14:00
  • 2145

Spring学习笔记(二十一):使用阿里云OSS的javaSDK时遇到的问题(附:测试代码)

摘自:阿里云官网 https://help.aliyun.com/document_detail/32024.html 当时出现了如下的错误: Exception in thread "mai...
  • Jalon2015
  • Jalon2015
  • 2016年08月31日 15:47
  • 4832

让你快速认识flume及安装和使用flume1.5传输数据(日志)到hadoop2.2 文档 安装问题

1.log4j:WARN No appenders could be found for logger (org.apache.flume.lifecycle.LifecycleSupervisor)...
  • zbjbaggio1
  • zbjbaggio1
  • 2014年06月05日 17:29
  • 5283

kafka与storm集成测试问题小结

1 拷贝kafka依赖jar包到storm lib [root@hdmaster libs]# cp kafka_2.10-0.8.2.1.jar /opt/apache-storm-0.9.5/l...
  • shj1119
  • shj1119
  • 2015年09月30日 11:12
  • 11714

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

缺少 commons-logging-api-1.1.jar ,只要引入struts2 的基础jar包就可以避免此类问题 java.lang.NoClassDefFoundError...
  • bestcxx
  • bestcxx
  • 2016年09月09日 13:59
  • 1289

Caused by: java.lang.NoClassDefFoundError: org/apache/commons/pool/BasePoolableObjectFactory

摘要:异常信息解决过程记录 一:异常信息: Caused by: java.lang.NoClassDefFoundError: org/apache/commons/pool/BaseP...
  • sxdtzhaoxinguo
  • sxdtzhaoxinguo
  • 2016年05月31日 10:12
  • 2013
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:java.lang.NoClassDefFoundError: org/apache/commons/el/Logger
举报原因:
原因补充:

(最多只允许输入30个字)