【问题标题】:Fail to deploy an aplication to JBoss7 while migrating an application from JBoss 6 to JBoss 7将应用程序从 JBoss 6 迁移到 JBoss 7 时无法将应用程序部署到 JBoss 7
【发布时间】:2015-08-04 13:59:55
【问题描述】:

我已将现有应用程序从 JBoss 6 迁移到 JBoss 7。 部署 .ear 文件后,我收到以下错误:

Caused by:org.jboss.as.server.deployment.DeploymentUnitProcessingException:   

JBAS017052: Failed to parse POJO xml [ "/content/SMS-ear.ear/lib/jboss-ejb3-core-
1.1.5.jar /META-INF/ejb3-deployers-jboss-beans.xml" ]

尝试提及建议后,我收到以下错误:

//New StackTrace after trying out the advice
Caused by: java.lang.RuntimeException: Error getting reflective information
for class org.domain.sms.session.AuthenticatorAction with ClassLoader 
ModuleClassLoader for Module "deployment.SMS-ear.ear.SMS-ejb.jar:main" from Service 
at class org.domain.sms.session.AuthenticatorAction with ClassLoader 
org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex        (DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

【问题讨论】:

  • 有什么特别的理由不去 WildFly 8 吗?您将获得许多修正错误的 AS7 + EE7 支持。
  • 您发布的新堆栈跟踪不够完整,无法查看发生了什么。

标签: jboss jboss7.x


【解决方案1】:

您不应将 jboss jar 捆绑为部署的一部分。

在您的情况下,您的 ear/lib 中有 jboss-ejb3-core-1.1.5.jar, 该 jar 是 JBoss AS6 上 ejb3 的实现,并不意味着与您的部署捆绑在一起。

JBoss AS7 在后台有不同的实现。 失败是因为 AS7 具有不同的内核并且不再通过 jboss-beans.xml 文件使用/定义部署程序。

简而言之,如果您从部署中删除该 jar(或任何其他类似的 as6 jar),它应该可以工作。

【讨论】:

  • :我尝试了该建议,但仍然出现错误> 我发布了它。任何建议。感谢您的帮助。
猜你喜欢
  • 1970-01-01
  • 2011-10-03
  • 1970-01-01
  • 2011-09-28
  • 1970-01-01
  • 1970-01-01
  • 2014-07-16
  • 2021-01-14
  • 1970-01-01
相关资源
最近更新 更多