我有一个非常标准的耳朵项目试图从Weblogic迁移到JBoss EAP 7.我有以下工件:
耳朵文件 战争档案 ejb-jar文件 ebj-client文件(本地接口)
当我使用“mvn clean install”从命令行构建项目然后部署到eap时,它加载得很好。如果我打开相同的maven项目并导入jboss开发人员工作室,当我尝试从IDE部署/运行服务器时,我会收到一堆未找到类的错误:
"WFLYCTL0080: Failed services" => {
"jboss.deployment.subunit.\"HansenIntegtationFramework.ear\".\"HansenIntegrationFramework-ejb-1.0.jar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"HansenIntegtationFramework.ear\".\"HansenIntegrationFramework-ejb-1.0.jar\".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of subdeployment \"HansenIntegrationFramework-ejb-1.0.jar\" of deployment \"HansenIntegtationFramework.ear\"
Caused by: java.lang.NoClassDefFoundError: Failed to link com/hsntech/hif/logging/HIFLogData (Module \"deployment.HansenIntegtationFramework.ear:main\" from Service Module Loader): org/apache/logging/log4j/message/MapMessage",
"jboss.deployment.subunit.\"HansenIntegtationFramework.ear\".\"HansenIntegrationFramework-web-1.0.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"HansenIntegtationFramework.ear\".\"HansenIntegrationFramework-web-1.0.war\".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of subdeployment \"HansenIntegrationFramework-web-1.0.war\" of deployment \"HansenIntegtationFramework.ear\"
Caused by: java.lang.NoClassDefFoundError: org/apache/logging/log4j/Logger
有关如何处理此问题的任何建议?为什么IDE的表现不同?
更新:我发现了问题,但不确定如何修复它。 IDE不会将依赖的jar文件复制到jboss部署的lib文件夹中。 maven命令行安装。有线索吗?
答案 0 :(得分:0)
请参考https://github.com/jboss-developer/jboss-eap-quickstarts/tree/7.0.x/log4j作为如何在EAP 7.0上使用Log4J的入门者