You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/01/04 14:22:28 UTC
[GitHub] [dubbo] studyyun opened a new issue #9524: [2.7.8],provider端jar包运行报错NoClassDefFoundError
studyyun opened a new issue #9524:
URL: https://github.com/apache/dubbo/issues/9524
<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
- [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
## 现象
idea本地可以正常启动,并且消费者能调用生产者,maven打包中途也没有报错,启动命令java -jar xxx.jar报错


## 环境信息
- Dubbo版本:2.7.8
- 操作系统版本:Linux version 5.10.60-9.al8.x86_64 (mockbuild@x86-006.build.alibaba.eu6) (gcc (GCC) 10.2.1 20200825 (Alibaba 10.2.1-3 2.30), GNU ld version 2.35-12.2.al8)
- java版本:1.8.0_161
- springboot版本:2.2.6
## 报错日志

## 包依赖


--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] studyyun closed issue #9524: [2.7.8],provider端jar包运行报错NoClassDefFoundError
Posted by GitBox <gi...@apache.org>.
studyyun closed issue #9524:
URL: https://github.com/apache/dubbo/issues/9524
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] juzi214032 edited a comment on issue #9524: [2.7.8],provider端jar包运行报错NoClassDefFoundError
Posted by GitBox <gi...@apache.org>.
juzi214032 edited a comment on issue #9524:
URL: https://github.com/apache/dubbo/issues/9524#issuecomment-1005799283
给你的 common 模块中的 pom 文件添加如下配置:
```xml
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<classifier>exec</classifier>
</configuration>
</plugin>
</plugins>
</build>
```
不过并不建议这样用,包含 SpringBoot 的模块不要作为二方包给其他模块用,建议这个模块剔除 SpringBoot
参考:https://blog.csdn.net/guduyishuai/article/details/60968728
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] studyyun edited a comment on issue #9524: [2.7.8],provider端jar包运行报错NoClassDefFoundError
Posted by GitBox <gi...@apache.org>.
studyyun edited a comment on issue #9524:
URL: https://github.com/apache/dubbo/issues/9524#issuecomment-1005356936
> 可以提供一个可以复现的 demo 吗
好的,麻烦了,这是地址:git@github.com:studyyun/dubboStudy.git
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] juzi214032 commented on issue #9524: [2.7.8],provider端jar包运行报错NoClassDefFoundError
Posted by GitBox <gi...@apache.org>.
juzi214032 commented on issue #9524:
URL: https://github.com/apache/dubbo/issues/9524#issuecomment-1005799283
给你的 common 模块中的 pom 文件添加如下配置:
```xml
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<classifier>exec</classifier>
</configuration>
</plugin>
</plugins>
</build>
```
不过并不建议这样用,包含 SpringBoot 的模块不要作为二方包给其他模块用,建议这个模块剔除 SpringBoot,参考:https://www.cnblogs.com/kingsonfu/p/11805455.html
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] studyyun removed a comment on issue #9524: [2.7.8],provider端jar包运行报错NoClassDefFoundError
Posted by GitBox <gi...@apache.org>.
studyyun removed a comment on issue #9524:
URL: https://github.com/apache/dubbo/issues/9524#issuecomment-1005356936
> 可以提供一个可以复现的 demo 吗
好的,麻烦了,这是地址:git@github.com:studyyun/dubboStudy.git
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] juzi214032 edited a comment on issue #9524: [2.7.8],provider端jar包运行报错NoClassDefFoundError
Posted by GitBox <gi...@apache.org>.
juzi214032 edited a comment on issue #9524:
URL: https://github.com/apache/dubbo/issues/9524#issuecomment-1005799283
给你的 common 模块中的 pom 文件添加如下配置:
```xml
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<classifier>exec</classifier>
</configuration>
</plugin>
</plugins>
</build>
```
不过并不建议这样用,包含 SpringBoot 的模块不要作为二方包给其他模块用,建议这个模块剔除 SpringBoot,参考:https://blog.csdn.net/guduyishuai/article/details/60968728
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] studyyun edited a comment on issue #9524: [2.7.8],provider端jar包运行报错NoClassDefFoundError
Posted by GitBox <gi...@apache.org>.
studyyun edited a comment on issue #9524:
URL: https://github.com/apache/dubbo/issues/9524#issuecomment-1005455496
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] juzi214032 edited a comment on issue #9524: [2.7.8],provider端jar包运行报错NoClassDefFoundError
Posted by GitBox <gi...@apache.org>.
juzi214032 edited a comment on issue #9524:
URL: https://github.com/apache/dubbo/issues/9524#issuecomment-1005799283
给你的 common 模块中的 pom 文件添加如下配置:
```xml
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<classifier>exec</classifier>
</configuration>
</plugin>
</plugins>
</build>
```
不过并不建议这样用,包含 SpringBoot 的模块不要作为二方包给其他模块用,建议这个模块剔除 SpringBoot
参考:
- 博客:https://blog.csdn.net/guduyishuai/article/details/60968728
- 官方文档:https://docs.spring.io/spring-boot/docs/2.6.2/maven-plugin/reference/htmlsingle/#packaging.examples.custom-classifier
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] studyyun commented on issue #9524: [2.7.8],provider端jar包运行报错NoClassDefFoundError
Posted by GitBox <gi...@apache.org>.
studyyun commented on issue #9524:
URL: https://github.com/apache/dubbo/issues/9524#issuecomment-1005356936
> 可以提供一个可以复现的 demo 吗
git@github.com:studyyun/dubboStudy.git
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] studyyun commented on issue #9524: [2.7.8],provider端jar包运行报错NoClassDefFoundError
Posted by GitBox <gi...@apache.org>.
studyyun commented on issue #9524:
URL: https://github.com/apache/dubbo/issues/9524#issuecomment-1005455496
> 可以提供一个可以复现的 demo 吗
好的多谢,麻烦帮忙看看,这是地址:git@github.com:studyyun/dubboStudy.git
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] studyyun commented on issue #9524: [2.7.8],provider端jar包运行报错NoClassDefFoundError
Posted by GitBox <gi...@apache.org>.
studyyun commented on issue #9524:
URL: https://github.com/apache/dubbo/issues/9524#issuecomment-1005846845
牛!问题已解决,多谢大佬,我研究一下。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
[GitHub] [dubbo] juzi214032 commented on issue #9524: [2.7.8],provider端jar包运行报错NoClassDefFoundError
Posted by GitBox <gi...@apache.org>.
juzi214032 commented on issue #9524:
URL: https://github.com/apache/dubbo/issues/9524#issuecomment-1004927422
可以提供一个可以复现的 demo 吗
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org