Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
快速启动:ejb远程客户端:线程中的异常;“主要”;java.lang.NoClassDefFoundError:org/jboss/logging/Logger_Java_Maven_Logging_Jboss - Fatal编程技术网

快速启动:ejb远程客户端:线程中的异常;“主要”;java.lang.NoClassDefFoundError:org/jboss/logging/Logger

快速启动:ejb远程客户端:线程中的异常;“主要”;java.lang.NoClassDefFoundError:org/jboss/logging/Logger,java,maven,logging,jboss,Java,Maven,Logging,Jboss,我想在wildfly上部署quickstart的ejb remote项目运行,服务器端哈希正确运行。虽然客户端可以编译,但在执行命令“mvn exec:exec”时无法成功,任何人都可以帮助我。对不起,我无法上传图片 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obta

我想在wildfly上部署quickstart的ejb remote项目运行,服务器端哈希正确运行。虽然客户端可以编译,但在执行命令“mvn exec:exec”时无法成功,任何人都可以帮助我。对不起,我无法上传图片
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.
--> http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0

<parent>
    <groupId>org.wildfly.quickstarts</groupId>
    <artifactId>ejb-remote</artifactId>
    <version>11.0.0-SNAPSHOT</version>
    <relativePath>../pom.xml</relativePath>
</parent>
<artifactId>ejb-remote-client</artifactId>
<packaging>jar</packaging>
<name>${qs.name.prefix} ejb-remote - client</name>
<description>This project demonstrates how to access an EJB from a remote client; this is the client POM file</description>

<dependencies>

    <!-- Include the ejb client jars -->
    <dependency>
        <groupId>org.wildfly</groupId>
        <artifactId>wildfly-ejb-client-bom</artifactId>
        <version>10.0.0.Final</version>
        <type>pom</type>
        <scope>compile</scope>
    </dependency>

    <!-- We depend on the EJB remote business interfaces of this application -->
    <dependency>
        <groupId>org.wildfly.quickstarts</groupId>
        <artifactId>ejb-remote-server-side</artifactId>
        <version>${project.version}</version>
        <type>ejb-client</type>
    </dependency>

    <!-- TODO remove-->
    <dependency>
        <groupId>org.jboss.modules</groupId>
        <artifactId>jboss-modules</artifactId>
    </dependency>

    <!-- https://mvnrepository.com/artifact/jboss/jboss-common-client -->
</dependencies>

<build>
    <plugins>

        <!-- Add the maven exec plug-in to allow us to run a java program
            via maven -->
        <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <version>${version.exec.plugin}</version>

            <executions>
                <execution>
                    <goals>
                        <goal>exec</goal>
                    </goals>
                </execution>
            </executions>

            <configuration>
                <executable>java</executable>
                <workingDirectory>${project.build.directory}/exec-working-directory</workingDirectory>
                <arguments>
                    <argument>-classpath</argument>
                    <classpath></classpath>
                    <argument>org.jboss.as.quickstarts.ejb.remote.client.RemoteEJBClient</argument>
                </arguments>
                <!--<detail>true</detail>-->
            </configuration>

        </plugin>
        <!-- build standalone exe jar -->
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-assembly-plugin</artifactId>
            <configuration>
                <descriptorRefs>
                    <descriptorRef>jar-with-dependencies</descriptorRef>
                </descriptorRefs>
                <archive>
                    <manifest>
                        <mainClass>org.jboss.as.quickstarts.ejb.remote.client.RemoteEJBClient</mainClass>
                    </manifest>
                </archive>
            </configuration>
        </plugin>
    </plugins>

</build>

org.wildfly.quickstarts
远程ejb
11.0.0-SNAPSHOT
../pom.xml
ejb远程客户端
罐子
${qs.name.prefix}ejb远程-客户端
此项目演示如何从远程客户端访问EJB;这是客户端POM文件
野生蝇
wildfly ejb客户端bom
10.0.0.1决赛
聚甲醛
编译
org.wildfly.quickstarts
ejb远程服务器端
${project.version}
ejb客户端
org.jboss.modules
jboss模块
org.codehaus.mojo
execmaven插件
${version.exec.plugin}
执行官
JAVA
${project.build.directory}/exec工作目录
-类路径
org.jboss.as.quickstarts.ejb.remote.client.RemoteEJBClient
org.apache.maven.plugins
maven汇编插件
带有依赖项的jar
org.jboss.as.quickstarts.ejb.remote.client.RemoteEJBClient

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

快速修复:

1) 添加对jboss日志的依赖:

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

org.jboss.logging
jboss日志
编译
2) 将jboss模块依赖项的范围更改为编译:

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

org.jboss.modules
jboss模块
编译

从maven标记中,将pom.xml及其依赖项详细信息专门共享给正在使用的org.jboss。在
exec:exec
时,您是否需要设置任何属性?项目的pom.xml中不存在exec:exec时要设置的属性吗?在pom.xml中,有一个标记:blow:请编辑并共享问题中的pom.xml内容。好的,我已经编辑了again@nullpointer