qq_BANG主_0
2019-03-29 13:50
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
[2019-03-29 13:46:57.907] boot - ERROR [main] --- SpringApplication: Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dubboItemService' defined in file [D:\ideaProject\dubboOne\server\target\classes\com\debug\mooc\dubbo\one\server\service\dubbo\DubboItemService.class]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Failed to load extension class(interface: interface com.alibaba.dubbo.rpc.Protocol, class line: com.alibaba.dubbo.rpc.protocol.rest.RestProtocol) in jar:file:/D:/maven/repository/com/alibaba/dubbo/2.6.0/dubbo-2.6.0.jar!/META-INF/dubbo/internal/com.alibaba.dubbo.rpc.Protocol, cause: org/apache/http/conn/ConnectionKeepAliveStrategy
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:581)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:780)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:333)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1277)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1265)
你好,请问下这是哪里出错了
clean install一下
D:\java\bin\java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:3469,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=3468 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath "D:\java\jre\lib\charsets.jar;D:\java\jre\lib\deploy.jar;D:\java\jre\lib\ext\access-bridge-64.jar;D:\java\jre\lib\ext\cldrdata.jar;D:\java\jre\lib\ext\dnsns.jar;D:\java\jre\lib\ext\jaccess.jar;D:\java\jre\lib\ext\jfxrt.jar;D:\java\jre\lib\ext\localedata.jar;D:\java\jre\lib\ext\nashorn.jar;D:\java\jre\lib\ext\sunec.jar;D:\java\jre\lib\ext\sunjce_provider.jar;D:\java\jre\lib\ext\sunmscapi.jar;D:\java\jre\lib\ext\sunpkcs11.jar;D:\java\jre\lib\ext\zipfs.jar;D:\java\jre\lib\javaws.jar;D:\java\jre\lib\jce.jar;D:\java\jre\lib\jfr.jar;D:\java\jre\lib\jfxswt.jar;D:\java\jre\lib\jsse.jar;D:\java\jre\lib\management-agent.jar;D:\java\jre\lib\plugin.jar;D:\java\jre\lib\resources.jar;D:\java\jre\lib\rt.jar;D:\dubboOne\server\target\classes;D:\dubboOne\model\target\classes;D:\dubboOne\api\target\classes;D:\sumjar\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;D:\sumjar\repository\com\github\pagehelper\pagehelper\4.1.2\pagehelper-4.1.2.jar;D:\sumjar\repository\com\github\jsqlparser\jsqlparser\0.9.4\jsqlparser-0.9.4.jar;D:\sumjar\repository\org\projectlombok\lombok\1.16.22\lombok-1.16.22.jar;D:\sumjar\repository\org\mybatis\spring\boot\mybatis-spring-boot-starter\1.1.1\mybatis-spring-boot-starter-1.1.1.jar;D:\sumjar\repository\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\1.1.1\mybatis-spring-boot-autoconfigure-1.1.1.jar;D:\sumjar\repository\org\mybatis\mybatis\3.4.0\mybatis-3.4.0.jar;D:\sumjar\repository\org\mybatis\mybatis-spring\1.3.0\mybatis-spring-1.3.0.jar;D:\sumjar\repository\org\springframework\boot\spring-boot-starter-jdbc\2.0.5.RELEASE\spring-
找到了一个可能有用的方法
我发现我遇到了两个错误
第一个错误 Caused by: java.lang.RuntimeException: Class is not a root resource. It, or one of its interfaces must be annotated with @Path: com.debug.mooc.dubbo.one.api.service.IDubboItemService implements: 要在DubboItemService的上一行加上@Path("moocOne")注解
第二个错误 Caused by: java.lang.ClassNotFoundException: javassist.ClassPool 我看了这个bloghttps://blog.csdn.net/moxiaoya1314/article/details/72545632 server模块的pom里加上 <dependency> <groupId>org.javassist</groupId> <artifactId>javassist</artifactId> <version>3.20.0-GA</version> </dependency>
应该就可以了
我也是这个问题,是不是我的dubbo2.8.4有问题,代码太长了贴不出来
rg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dubboItemService' defined in file
。。。。
Caused by: java.lang.ClassNotFoundException: javassist.ClassPool
2小时实战Apache顶级项目-RPC框架Dubbo分布式服务调度
20338 学习 · 145 问题
相似问题