Open 15168326318 opened 6 years ago
你好,就是选择接口名称的时候报错。
dubbo接口是不是增加了group或者version? 如果是的话,目前是不支持的,计划在后续的版本支持这个功能。目前您可以修改com/mmc/dubbo/doe/handler/CuratorHandler.java 的public List
对的,增加了version版本号。 修改com/mmc/dubbo/doe/handler/CuratorHandler.java 的public List getProviders(String interfaceName) 方法是可以了。
还想问下: app\doe\lib,这个下面的jar,我想直接拷贝过去,但必须重启才有效,有什么访问自动生效或者页面触发也可以啊?
v1.0.0 版本,在增加依赖的页面可以重新加载jar
v1.1.0 开放了重启应用和发布的功能,不过需要python支持
页面能不能做成swager那样的,公司需要这样功能的项目。但开源的dubbo swagger对代码侵入太多了,你们两个人的项目弄中和下就完美了。
可以加个模块,接入mock系统
我这边的dubbo接口同时增加了group和version,如果修改,我尝试在getProviders里添加group和version,还是获取不到provider列表
上面的问题解决了,但是页面上点击发送的时候,报错:2018-11-24 10:52:53.221 ERROR [New I/O worker #1] com.mmc.dubbo.doe.handler.SendReceiveHandler.caught (SendReceiveHandler.java:94) - SendReceiveHandler.caught java.lang.NoClassDefFoundError: com/esotericsoftware/kryo/Kryo
上面的问题解决了,但是页面上点击发送的时候,报错:2018-11-24 10:52:53.221 ERROR [New I/O worker #1] com.mmc.dubbo.doe.handler.SendReceiveHandler.caught (SendReceiveHandler.java:94) - SendReceiveHandler.caught java.lang.NoClassDefFoundError: com/esotericsoftware/kryo/Kryo
检查下pom 是不是依赖冲突了
发现依赖包里需要加上序列化kryo的包以及javassist,然后dubbo版本和组名的问题已经解决,可以跑起来了,期待你新版本的发布啊。如果api代码修改,pom里需要重新添加依赖么,有更好的实现方式么?
打成jar包部署到linux上,添加依赖,执行就会报错 [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException
打成jar包部署到linux上,添加依赖,执行就会报错 [ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoGoalSpecifiedException
修改下/app/doe/pom.xml 这个文件,加入以下代码,或者复制deploy目录的pom.xml到/app/doe 目录
<build>
<defaultGoal>compile</defaultGoal>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>/app/doe/lib</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
我加了配置部署到linux上还是不行啊
自己在linux上手动执行下面的mvn命令可以执行,为何调用新增依赖总是报错!
com.mmc.dubbo.doe.client.ProcessClient.run (ProcessClient.java:56) - begin to exec the command /bin/bash -c mvn dependency:copy-dependencies -DoutputDirectory=/app/doe/lib/ -DincludeScope=compile -f /app/doe/pom.xml
2018-11-27 02:34:47.330 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.run (StreamHandler.java:55) - begin to put the message into redis.
2018-11-27 02:34:48.338 INFO [http-nio-8087-exec-9] com.mmc.dubbo.doe.crontroller.PomController.getRealTimeMsg (PomController.java:129) - PomController.getRealTimeMsg(3)
2018-11-27 02:34:48.506 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[INFO] Scanning for projects...
2018-11-27 02:34:48.568 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[INFO] ------------------------------------------------------------------------
2018-11-27 02:34:48.571 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[INFO] BUILD FAILURE
2018-11-27 02:34:48.575 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[INFO] ------------------------------------------------------------------------
2018-11-27 02:34:48.578 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[INFO] Total time: 0.087 s
2018-11-27 02:34:48.579 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[INFO] Finished at: 2018-11-27T02:34:48-05:00
2018-11-27 02:34:48.580 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[INFO] ------------------------------------------------------------------------
2018-11-27 02:34:48.582 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format
自己在linux上手动执行下面的mvn命令可以执行,为何调用新增依赖总是报错! com.mmc.dubbo.doe.client.ProcessClient.run (ProcessClient.java:56) - begin to exec the command /bin/bash -c mvn dependency:copy-dependencies -DoutputDirectory=/app/doe/lib/ -DincludeScope=compile -f /app/doe/pom.xml 2018-11-27 02:34:47.330 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.run (StreamHandler.java:55) - begin to put the message into redis. 2018-11-27 02:34:48.338 INFO [http-nio-8087-exec-9] com.mmc.dubbo.doe.crontroller.PomController.getRealTimeMsg (PomController.java:129) - PomController.getRealTimeMsg(3) 2018-11-27 02:34:48.506 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[INFO] Scanning for projects... 2018-11-27 02:34:48.568 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[INFO] ------------------------------------------------------------------------ 2018-11-27 02:34:48.571 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[INFO] BUILD FAILURE 2018-11-27 02:34:48.575 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[INFO] ------------------------------------------------------------------------ 2018-11-27 02:34:48.578 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[INFO] Total time: 0.087 s 2018-11-27 02:34:48.579 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[INFO] Finished at: 2018-11-27T02:34:48-05:00 2018-11-27 02:34:48.580 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[INFO] ------------------------------------------------------------------------ 2018-11-27 02:34:48.582 INFO [pool-4-thread-1] com.mmc.dubbo.doe.handler.StreamHandler.putToRedis (StreamHandler.java:101) - 3|[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
您把deploy目录下pom文件上传到linux,然后写个java类测试下看下
你好,就是选择接口名称的时候报错。
可以试试这个工具,希望能满足你的需求 https://github.com/everythingbest/dubbo-postman
请写下您遇到的问题