submit topology successfully.
/opt/taobao/java/bin/java
Exception in thread "main" java.lang.NoClassDefFoundError: com/alibaba/rocketmq/client/consumer/listener/MessageListenerConcurrently
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)at java.net.URLClassLoader.access$1
本地测试没问题,提交后在结果的地方显示以上错误。以下是pom.xml
<?
xml version
="1.0"
encoding
="UTF-8"
?>
<
project
xmlns:
xsi
="http://www.w3.org/2001/XMLSchema-instance"
xmlns
="http://maven.apache.org/POM/4.0.0"
xsi
:schemaLocation
="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<
modelVersion
>4.0.0
</
modelVersion
>
<
groupId
>com.alibaba.middleware.race
</
groupId
>
<
artifactId
>preliminary
</
artifactId
>
<
version
>1.0-SNAPSHOT
</
version
>
<
build
>
<
plugins
>
<
plugin
>
<
groupId
>org.apache.maven.plugins
</
groupId
>
<
artifactId
>maven-compiler-plugin
</
artifactId
>
<
configuration
>
<
source
>1.6
</
source
>
<
target
>1.6
</
target
>
</
configuration
>
</
plugin
>
<
plugin
>
<
groupId
>org.apache.maven.plugins
</
groupId
>
<
artifactId
>maven-assembly-plugin
</
artifactId
>
<
configuration
>
<
appendAssemblyId
>false
</
appendAssemblyId
>
<
descriptors
>
<
descriptor
>src/main/resources/assembly.xml
</
descriptor
>
</
descriptors
>
<
descriptorRefs
>
<
descriptorRef
>jar-with-dependencies
</
descriptorRef
>
</
descriptorRefs
>
</
configuration
>
<
executions
>
<
execution
>
<
id
>make-assembly
</
id
>
<
phase
>install
</
phase
>
<
goals
>
<
goal
>single
</
goal
>
</
goals
>
</
execution
>
</
executions
>
</
plugin
>
</
plugins
>
</
build
>
<
dependencies
>
<
dependency
>
<
groupId
>com.alibaba.rocketmq
</
groupId
>
<
artifactId
>rocketmq-client
</
artifactId
>
<
version
>3.2.6
</
version
>
<
exclusions
>
<
exclusion
>
<
groupId
>org.slf4j
</
groupId
>
<
artifactId
>slf4j-api
</
artifactId
>
</
exclusion
>
<
exclusion
>
<
groupId
>org.slf4j
</
groupId
>
<
artifactId
>slf4j-log4j12
</
artifactId
>
</
exclusion
>
<
exclusion
>
<
groupId
>org.slf4j
</
groupId
>
<
artifactId
>slf4j-jdk14
</
artifactId
>
</
exclusion
>
</
exclusions
>
</
dependency
>
<
dependency
>
<
groupId
>com.alibaba.jstorm
</
groupId
>
<
artifactId
>jstorm-core
</
artifactId
>
<
version
>2.1.1
</
version
>
<
scope
>provided
</
scope
>
<
exclusions
>
<
exclusion
>
<
groupId
>org.slf4j
</
groupId
>
<
artifactId
>slf4j-nop
</
artifactId
>
</
exclusion
>
<
exclusion
>
<
groupId
>org.slf4j
</
groupId
>
<
artifactId
>slf4j-jdk14
</
artifactId
>
</
exclusion
>
</
exclusions
>
</
dependency
>
<
dependency
>
<
groupId
>com.taobao.tair
</
groupId
>
<
artifactId
>tair-client
</
artifactId
>
<
version
>2.3.5
</
version
>
<
exclusions
>
<
exclusion
>
<
groupId
>org.slf4j
</
groupId
>
<
artifactId
>slf4j-api
</
artifactId
>
</
exclusion
>
<
exclusion
>
<
groupId
>org.slf4j
</
groupId
>
<
artifactId
>slf4j-log4j12
</
artifactId
>
</
exclusion
>
</
exclusions
>
</
dependency
>
</
dependencies
>
</
project
>
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。