Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java.lang.ClassNotFoundException: ch.qos.logback.classic.spi.ThrowableProxy?

Tags:

while starting my weblogic(having my app war file containing logback-classic-1.0.1.jar),i am getting below exception.Any suggestion ?

<Sep 9, 2015 9:27:13 AM UTC> <Warning> <Common> <BEA-000632> <Resource Pool "JDBC Data Source-0" shutting down, ignoring 3 resources still in use by applications..> Exception in thread "Thread-12" java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy         at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:125)         at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:468)         at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:424)         at ch.qos.logback.classic.Logger.log(Logger.java:824)         at org.apache.commons.logging.impl.SLF4JLocationAwareLog.error(SLF4JLocationAwareLog.java:225)         at org.springframework.transaction.interceptor.TransactionAspectSupport.completeTransactionAfterThrowing(TransactionAspectSupport.java:415)         at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:114)         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)         at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:58)         at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:213)         at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66)         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)         at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)         ................         at java.lang.Thread.run(Thread.java:701) Caused by: java.lang.ClassNotFoundException: ch.qos.logback.classic.spi.ThrowableProxy         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)         at java.lang.ClassLoader.loadClass(ClassLoader.java:323)         at java.lang.ClassLoader.loadClass(ClassLoader.java:268)         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:52)         ... 18 more Exception in thread "Thread-18" java.lang.NoClassDefFoundError: ch/qos/logback/classic/spi/ThrowableProxy         at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:125)         at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:468)         at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:424)         at ch.qos.logback.classic.Logger.log(Logger.java:824)         at org.apache.commons.logging.impl.SLF4JLocationAwareLog.error(SLF4JLocationAwareLog.java:225)         at org.springframework.transaction.interceptor.TransactionAspectSupport.completeTransactionAfterThrowing(TransactionAspectSupport.java:415)         at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:114)         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)         at org.springframework.cache.interceptor.CacheInterceptor$1.invoke(CacheInterceptor.java:58)         at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:213)         at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66)         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)         at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622)         .......................         at java.lang.Thread.run(Thread.java:701) Caused by: java.lang.ClassNotFoundException: ch.qos.logback.classic.spi.ThrowableProxy         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)         at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)         at java.lang.ClassLoader.loadClass(ClassLoader.java:323)         at java.lang.ClassLoader.loadClass(ClassLoader.java:268)         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)         at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:52)     ... 18 more 
like image 722
user3198603 Avatar asked Sep 09 '15 10:09

user3198603


1 Answers

This error happens when spring applications jar are rebuilt, removed, or updated during execution.

Ref: https://github.com/spring-projects/spring-boot/issues/4968

like image 80
ton Avatar answered Sep 18 '22 13:09

ton