quickstart:ejb-remote-client:线程中的异常" main" java.lang.NoClassDefFoundError:org / jboss / logging / Logger

时间:2017-03-04 07:56:54

标签: java maven logging jboss

我想在wildfly上运行quickstart的ejb-remote项目来运行,服务器端哈希运行正确。另外客户端可以编译,执行命令时无法成功" mvn exec:exec",任何人都可以帮助我。我无法上传图片

read(3, "qqq\n", 131072)                = 4
write(1, "qqq\n", 4)                    = 4
read(3, "", 131072)                     = 0

- > http://maven.apache.org/maven-v4_0_0.xsd">     4.0.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

1 个答案:

答案 0 :(得分:0)

不确定pom.xml的意图是什么,但它现在似乎已被打破。

快速修复:

1)添加对jboss-logging的依赖:

<dependency>
    <groupId>org.jboss.logging</groupId>
    <artifactId>jboss-logging</artifactId>
    <scope>compile</scope>
</dependency>

2)将jboss-modules依赖项的范围更改为compile:

<dependency>
    <groupId>org.jboss.modules</groupId>
    <artifactId>jboss-modules</artifactId>
    <scope>compile</scope>
</dependency>