简体   繁体   English

启动 jboss 服务器时,未建立 maven 依赖项

[英]maven dependency not building when starting jboss server

I am using a certain imported dependency (org.apache.wicket) for two of my maven modules.我正在为我的两个 maven 模块使用某个导入的依赖项(org.apache.wicket)。

I'm getting following error when trying to start up the jboss server尝试启动 jboss 服务器时出现以下错误

Caused by: java.lang.RuntimeException: WFLYSRV0177: Error getting reflective information for class etel.middleware.integration_feedback.IntegrationFeedbackReaderBean with ClassLoader ModuleClassLoader for Module "deployment.etel.ear.etel-ejb-1.0-SNAPSHOT.jar:main" from Service Module Loader
    at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [wildfly-server-1.0.2.Final.jar:1.0.2.Final]
Caused by: java.lang.NoClassDefFoundError: org/apache/wicket/ajax/json/JSONException

I see this error to mean that it can't find the jar for org.apache.wicket, however.但是,我看到此错误意味着它找不到 org.apache.wicket 的 jar。 I have following maven dependcy set:我有以下 maven 依赖集:

    <dependency>
        <groupId>org.apache.wicket</groupId>
        <artifactId>wicket-core</artifactId>
        <version>6.9.0</version>
        <scope>compile</scope>
    </dependency>

what's weird is that this has previously worked with maven set like this, but doesn't anymore after running a clean install with maven.奇怪的是,这以前曾与像这样设置的 maven 一起使用,但在使用 maven 运行干净安装后不再适用。

I'm using jboss version 9.02 final, and using intellij as IDE我正在使用 jboss 版本 9.02 final,并使用 intellij 作为 IDE

Try to use newest dependency, the one you use is quite old尝试使用最新的依赖,你使用的是相当旧的

<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-core</artifactId>
<version>9.0.0-M3</version>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM