Caused by java.lang.NoClassDefFoundErrorjavassistClassPath
エラー表示
主なエラー:
ソリューション
Javassist依存を追加するには:
参考博文
https://blog.csdn.net/hehuanchun0311/article/details/79755266
https://blog.csdn.net/achilles12345/article/details/41958713
E:\Java\jdk1.7.0_80\bin\java.exe "-javaagent:E:\IntelliJ IDEA 2018.3.1\lib\idea_rt.jar=58584:E:\IntelliJ IDEA 2018.3.1\bin" -Dfile.encoding=UTF-8 -classpath E:\Java\jdk1.7.0_80\jre\lib\charsets.jar;E:\Java\jdk1.7.0_80\jre\lib\deploy.jar;E:\Java\jdk1.7.0_80\jre\lib\ext\access-bridge-64.jar;E:\Java\jdk1.7.0_80\jre\lib\ext\dnsns.jar;E:\Java\jdk1.7.0_80\jre\lib\ext\jaccess.jar;E:\Java\jdk1.7.0_80\jre\lib\ext\localedata.jar;E:\Java\jdk1.7.0_80\jre\lib\ext\sunec.jar;E:\Java\jdk1.7.0_80\jre\lib\ext\sunjce_provider.jar;E:\Java\jdk1.7.0_80\jre\lib\ext\sunmscapi.jar;E:\Java\jdk1.7.0_80\jre\lib\ext\zipfs.jar;E:\Java\jdk1.7.0_80\jre\lib\javaws.jar;E:\Java\jdk1.7.0_80\jre\lib\jce.jar;E:\Java\jdk1.7.0_80\jre\lib\jfr.jar;E:\Java\jdk1.7.0_80\jre\lib\jfxrt.jar;E:\Java\jdk1.7.0_80\jre\lib\jsse.jar;E:\Java\jdk1.7.0_80\jre\lib\management-agent.jar;E:\Java\jdk1.7.0_80\jre\lib\plugin.jar;E:\Java\jdk1.7.0_80\jre\lib\resources.jar;E:\Java\jdk1.7.0_80\jre\lib\rt.jar;F:\IdeaProjects\provider\target\classes;C:\Users\job012\.m2\repository\org\springframework\spring-context\4.0.0.RELEASE\spring-context-4.0.0.RELEASE.jar;C:\Users\job012\.m2\repository\org\springframework\spring-aop\4.0.0.RELEASE\spring-aop-4.0.0.RELEASE.jar;C:\Users\job012\.m2\repository\org\springframework\spring-beans\4.0.0.RELEASE\spring-beans-4.0.0.RELEASE.jar;C:\Users\job012\.m2\repository\org\springframework\spring-core\4.0.0.RELEASE\spring-core-4.0.0.RELEASE.jar;C:\Users\job012\.m2\repository\org\springframework\spring-expression\4.0.0.RELEASE\spring-expression-4.0.0.RELEASE.jar;C:\Users\job012\.m2\repository\org\springframework\spring-context-support\4.0.0.RELEASE\spring-context-support-4.0.0.RELEASE.jar;C:\Users\job012\.m2\repository\org\springframework\spring-web\4.0.0.RELEASE\spring-web-4.0.0.RELEASE.jar;C:\Users\job012\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Users\job012\.m2\repository\org\springframework\spring-webmvc\4.0.0.RELEASE\spring-webmvc-4.0.0.RELEASE.jar;C:\Users\job012\.m2\repository\org\codehaus\jackson\jackson-core-asl\1.9.2\jackson-core-asl-1.9.2.jar;C:\Users\job012\.m2\repository\org\codehaus\jackson\jackson-mapper-asl\1.9.13\jackson-mapper-asl-1.9.13.jar;C:\Users\job012\.m2\repository
et\sf\json-lib\json-lib\2.4\json-lib-2.4-jdk15.jar;C:\Users\job012\.m2\repository\commons-beanutils\commons-beanutils\1.8.0\commons-beanutils-1.8.0.jar;C:\Users\job012\.m2\repository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;C:\Users\job012\.m2\repository\commons-lang\commons-lang\2.5\commons-lang-2.5.jar;C:\Users\job012\.m2\repository\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;C:\Users\job012\.m2\repository
et\sf\ezmorph\ezmorph\1.0.6\ezmorph-1.0.6.jar;C:\Users\job012\.m2\repository\com\alibaba\dubbo\2.5.3\dubbo-2.5.3.jar;C:\Users\job012\.m2\repository\org\springframework\spring\2.5.6.SEC03\spring-2.5.6.SEC03.jar;C:\Users\job012\.m2\repository\org\javassist\javassist\3.15.0-GA\javassist-3.15.0-GA.jar;C:\Users\job012\.m2\repository\org\jboss
etty
etty\3.2.5.Final
etty-3.2.5.Final.jar;C:\Users\job012\.m2\repository\org\apache\zookeeper\zookeeper\3.3.6\zookeeper-3.3.6.jar;C:\Users\job012\.m2\repository\jline\jline\0.9.94\jline-0.9.94.jar;C:\Users\job012\.m2\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;C:\Users\job012\.m2\repository\com\github\sgroschupf\zkclient\0.1\zkclient-0.1.jar com.ly.service.LuncherProvider
log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Caused by: java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1069)
... 13 more
Caused by: java.lang.IllegalStateException: fail to create adaptive instance: java.lang.IllegalStateException: Can not create adaptive extenstion interface com.alibaba.dubbo.rpc.Protocol, cause: Failed to load extension class(interface: interface com.alibaba.dubbo.common.compiler.Compiler, class line: com.alibaba.dubbo.common.compiler.support.JavassistCompiler) in jar:file:/C:/Users/job012/.m2/repository/com/alibaba/dubbo/2.5.3/dubbo-2.5.3.jar!/META-INF/dubbo/internal/com.alibaba.dubbo.common.compiler.Compiler, cause: javassist/ClassPath
at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:459)
at com.alibaba.dubbo.config.ServiceConfig.(ServiceConfig.java:60)
... 20 more
Caused by: java.lang.IllegalStateException: Can not create adaptive extenstion interface com.alibaba.dubbo.rpc.Protocol, cause: Failed to load extension class(interface: interface com.alibaba.dubbo.common.compiler.Compiler, class line: com.alibaba.dubbo.common.compiler.support.JavassistCompiler) in jar:file:/C:/Users/job012/.m2/repository/com/alibaba/dubbo/2.5.3/dubbo-2.5.3.jar!/META-INF/dubbo/internal/com.alibaba.dubbo.common.compiler.Compiler, cause: javassist/ClassPath
at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:723)
at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:455)
... 21 more
Caused by: java.lang.IllegalStateException: Failed to load extension class(interface: interface com.alibaba.dubbo.common.compiler.Compiler, class line: com.alibaba.dubbo.common.compiler.support.JavassistCompiler) in jar:file:/C:/Users/job012/.m2/repository/com/alibaba/dubbo/2.5.3/dubbo-2.5.3.jar!/META-INF/dubbo/internal/com.alibaba.dubbo.common.compiler.Compiler, cause: javassist/ClassPath
at com.alibaba.dubbo.common.extension.ExtensionLoader.loadFile(ExtensionLoader.java:685)
at com.alibaba.dubbo.common.extension.ExtensionLoader.loadExtensionClasses(ExtensionLoader.java:591)
at com.alibaba.dubbo.common.extension.ExtensionLoader.getExtensionClasses(ExtensionLoader.java:567)
at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtensionClass(ExtensionLoader.java:728)
at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:721)
at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:455)
at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtensionClass(ExtensionLoader.java:738)
at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtensionClass(ExtensionLoader.java:732)
at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:721)
... 22 more
Caused by: java.lang.NoClassDefFoundError: javassist/ClassPath
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:278)
at com.alibaba.dubbo.common.extension.ExtensionLoader.loadFile(ExtensionLoader.java:627)
... 30 more
Caused by: java.lang.ClassNotFoundException: javassist.ClassPath
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 33 more
主なエラー:
Caused by: java.lang.NoClassDefFoundError: javassist/ClassPath
Caused by: java.lang.ClassNotFoundException: javassist.ClassPath
ソリューション
Javassist依存を追加するには:
org.javassist
javassist
3.20.0-GA
参考博文
https://blog.csdn.net/hehuanchun0311/article/details/79755266
https://blog.csdn.net/achilles12345/article/details/41958713