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

五月 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.(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)