设为首页 收藏本站
查看: 658|回复: 0

[经验分享] java.lang.NoClassDefFoundError: org/apache/log4j/LogManager(转)

[复制链接]

尚未签到

发表于 2018-11-23 09:56:32 | 显示全部楼层 |阅读模式
2012-12-15 19:40:01 org.apache.catalina.core.AprLifecycleListener init  
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\jdk\jre6\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\SWTOOLS\ReadyApps;D:\jdk\bin;D:\jdk\jre\bin;C:\Program Files\TortoiseSVN\bin;D:\Program Files (x86)\MySQL\MySQL Server 5.0\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;.
  
2012-12-15 19:40:01 org.apache.tomcat.util.digester.SetPropertiesRule begin
  
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:fanjf' did not find a matching property.
  
2012-12-15 19:40:01 org.apache.coyote.AbstractProtocol init
  
信息: Initializing ProtocolHandler ["http-bio-8080"]
  
2012-12-15 19:40:01 org.apache.coyote.AbstractProtocol init
  
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
  
2012-12-15 19:40:01 org.apache.catalina.startup.Catalina load
  
信息: Initialization processed in 930 ms
  
2012-12-15 19:40:01 org.apache.catalina.core.StandardService startInternal
  
信息: Starting service Catalina
  
2012-12-15 19:40:01 org.apache.catalina.core.StandardEngine startInternal
  
信息: Starting Servlet Engine: Apache Tomcat/7.0.33
  
2012-12-15 19:40:02 org.apache.catalina.loader.WebappClassLoader validateJarFile

  
信息: validateJarFile(D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\fanjf\WEB-INF\lib\servlet-4.1.36.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending>  
2012-12-15 19:40:02 org.apache.catalina.loader.WebappClassLoader validateJarFile

  
信息: validateJarFile(D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\fanjf\WEB-INF\lib\servlet-api-5.0.16.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending>  
2012-12-15 19:40:04 org.apache.catalina.core.ApplicationContext log
  
信息: Set web app root system property: 'webName.root' = [D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\fanjf\]
  
2012-12-15 19:40:04 org.apache.catalina.core.ApplicationContext log
  
信息: Initializing log4j from [D:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\fanjf\WEB-INF\log4j.properties]
  
2012-12-15 19:40:08 org.apache.catalina.core.StandardContext listenerStart

  
严重: Exception sending context initialized event to listener instance of>  
java.lang.NoClassDefFoundError: org/apache/log4j/PropertyConfigurator
  at org.springframework.util.Log4jConfigurer.initLogging(Log4jConfigurer.java:106)
  at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:144)
  at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:47)
  at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)
  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
  at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.PropertyConfigurator
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
  ... 13 more
  
21298225
  
2012-12-15 19:40:09 org.apache.catalina.core.ApplicationContext log
  
信息: Initializing Spring root WebApplicationContext
  
2012-12-15 19:40:09 org.springframework.web.context.ContextLoader initWebApplicationContext
  
信息: Root WebApplicationContext: initialization started
  
2012-12-15 19:40:09 org.springframework.context.support.AbstractApplicationContext prepareRefresh
  
信息: Refreshing org.springframework.web.context.support.XmlWebApplicationContext@4d092447: display name [Root WebApplicationContext]; startup date [Sat Dec 15 19:40:09 CST 2012]; root of context hierarchy
  
2012-12-15 19:40:09 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  
信息: Loading XML bean definitions from ServletContext resource [/WEB-INF/classes/com/taobao/www/fanjf/config/applicationContext.xml]
  
2012-12-15 19:40:09 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
  
信息: Loading XML bean definitions from ServletContext resource [/WEB-INF/classes/com/taobao/www/fanjf/config/applicationContext-services.xml]
  
2012-12-15 19:40:09 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
  
信息: Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@4d092447]: org.springframework.beans.factory.support.DefaultListableBeanFactory@15c313da
  
2012-12-15 19:40:09 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties

  
信息: Loading properties file from>  
2012-12-15 19:40:09 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
  
信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@15c313da: defining beans [config,dataSource,sqlMapClient,sbookDAO,itemcatDAO,userDAO,fanjfReportMemeberDAO,userInviteDAO,sbookServices,itemcatServices,userServices,userInviteServices,fanjfReportMemeberServices,sbookAction,itemcatAction,userAction,userInviteAction,statusAction,DisplayPayedAction,reportAction,toLogoutAction,searchAction,initAction,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,servicesPointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,txAdvice]; root of factory hierarchy
  
2012-12-15 19:40:09 org.springframework.jdbc.datasource.DriverManagerDataSource setDriverClassName
  
信息: Loaded JDBC driver: com.mysql.jdbc.Driver
  
2012-12-15 19:40:10 org.springframework.web.context.ContextLoader initWebApplicationContext
  
信息: Root WebApplicationContext: initialization completed in 1610 ms
  
2012-12-15 19:40:10 org.apache.catalina.core.StandardContext startInternal
  
严重: Error listenerStart
  
2012-12-15 19:40:10 org.apache.catalina.core.StandardContext startInternal
  
严重: Context [/fanjf] startup failed due to previous errors
  
2012-12-15 19:40:10 org.apache.catalina.core.ApplicationContext log
  
信息: Closing Spring root WebApplicationContext
  
2012-12-15 19:40:10 org.springframework.context.support.AbstractApplicationContext doClose
  
信息: Closing org.springframework.web.context.support.XmlWebApplicationContext@4d092447: display name [Root WebApplicationContext]; startup date [Sat Dec 15 19:40:09 CST 2012]; root of context hierarchy
  
2012-12-15 19:40:10 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletons
  
信息: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@15c313da: defining beans [config,dataSource,sqlMapClient,sbookDAO,itemcatDAO,userDAO,fanjfReportMemeberDAO,userInviteDAO,sbookServices,itemcatServices,userServices,userInviteServices,fanjfReportMemeberServices,sbookAction,itemcatAction,userAction,userInviteAction,statusAction,DisplayPayedAction,reportAction,toLogoutAction,searchAction,initAction,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,servicesPointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,txAdvice]; root of factory hierarchy
  
2012-12-15 19:40:10 org.apache.catalina.core.ApplicationContext log
  
信息: Shutting down log4j
  
2012-12-15 19:40:10 org.apache.catalina.core.StandardContext listenerStop

  
严重: Exception sending context destroyed event to listener instance of>  
java.lang.NoClassDefFoundError: org/apache/log4j/LogManager
  at org.springframework.util.Log4jConfigurer.shutdownLogging(Log4jConfigurer.java:117)
  at org.springframework.web.util.Log4jWebConfigurer.shutdownLogging(Log4jWebConfigurer.java:170)
  at org.springframework.web.util.Log4jConfigListener.contextDestroyed(Log4jConfigListener.java:51)
  at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4831)
  at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
  at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
  at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
  
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.LogManager
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
  ... 14 more
  
2012-12-15 19:40:10 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
  
严重: The web application [/fanjf] 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.
  
2012-12-15 19:40:10 org.apache.coyote.AbstractProtocol start
  
信息: Starting ProtocolHandler ["http-bio-8080"]
  
2012-12-15 19:40:10 org.apache.coyote.AbstractProtocol start
  
信息: Starting ProtocolHandler ["ajp-bio-8009"]
  
2012-12-15 19:40:10 org.apache.catalina.startup.Catalina start
  
信息: Server startup in 9190 ms
  




运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-638522-1-1.html 上篇帖子: 脚本安装apache 下篇帖子: centos6.2下apache+SVN安装配置
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表