Java WELD-000119:由于基础类加载错误,未从生成任何bean定义

Java WELD-000119:由于基础类加载错误,未从生成任何bean定义,java,debugging,jsf,deployment,wildfly,Java,Debugging,Jsf,Deployment,Wildfly,我在使用MyEclipse和JavaEE方面是新手 我正在尝试在wildfly 8.0.0上部署我的web应用程序。在MyEclipse中 不幸的是,在我从SVN进行了一些代码更改(我不确定这是什么原因)之后,我遇到了这个错误,在此之前它工作正常: [org.jboss.weld.Bootstrap] (weld-worker-2) WELD-000119: Not generating any bean definitions from (.....) because of underlyin

我在使用MyEclipse和JavaEE方面是新手

我正在尝试在wildfly 8.0.0上部署我的web应用程序。在MyEclipse中

不幸的是,在我从SVN进行了一些代码更改(我不确定这是什么原因)之后,我遇到了这个错误,在此之前它工作正常:

[org.jboss.weld.Bootstrap] (weld-worker-2) WELD-000119: Not generating any bean definitions from (.....) because of underlying class loading error: Type WebArchive from [Module "deployment.Test.war:main" from Service Module Loader] not found.  If this is unexpected, enable DEBUG logging to see the full error.
当我(运行)服务器时,部署成功,尽管控制台生成了一些相同错误的行,但当我(调试)服务器时,它会不断生成相同的错误

有人能帮我吗


谢谢。

此错误消息并不提示以调试模式启动服务器,而是将org.jboss.weld.Bootstrap或根记录器的日志级别设置为调试。
请参阅以了解如何执行该操作,可能是类加载器找不到“WebArchive”,因为它需要作为模块添加到WildFly配置中。你是这样做的:

module add --name=org.apache.commons.lang3.commons-lang3 --resources=C:\Users\b\.m2\repository\org\apache\commons\commons-lang3\3.4\commons-lang3-3.4.jar
此外,您可能需要在pom.xml的
部分中添加WebArchive作为依赖项

下面是my pom.xml的相关部分:

  <build>
    <!-- Maven will append the version to the finalName (which is the name
        given to the generated WAR, and hence the context root) -->
    <plugins>
        <plugin>
            <artifactId>maven-war-plugin</artifactId>
            <version>${version.war.plugin}</version>
            <configuration>
            <!-- Java EE doesn't require web.xml, Maven needs to catch up! -->
                <failOnMissingWebXml>false</failOnMissingWebXml>
                <archive>
                    <manifestEntries>
                        <Dependencies>com.fasterxml.jackson.datatype.jackson-datatype-jsr310,org.hibernate,org.apache.commons.lang3.commons-lang3</Dependencies>
                    </manifestEntries>
                </archive>
            </configuration>
        </plugin>
        <!-- The WildFly plug-in deploys the WAR to a local WildFly container -->
        <!-- To use, run: mvn package wildfly:deploy -->
        <plugin>
            <groupId>org.wildfly.plugins</groupId>
            <artifactId>wildfly-maven-plugin</artifactId>
            <version>${version.wildfly.maven.plugin}</version>
        </plugin>
    </plugins>
</build>

maven战争插件
${version.war.plugin}
假的
com.fasterxml.jackson.datatype.jackson-datatype-jsr310,org.hibernate,org.apache.commons.lang3.commons-lang3
org.wildfly.plugins
wildfly maven插件
${version.wildfly.maven.plugin}

如果您不明白,请尝试发布pom.xml和jboss-deployment-structure.xml(如果您有)。

问题是因为我在调试模式下启动服务器,断点被激活了。

日志输出中是否列出了“底层类加载错误”日志消息?顺便说一句,我不认为打开额外的日志记录会有帮助。顺便说一句,我在这里做了很多猜测。发布pom.xml会有很大帮助。