在将应用程序从JBoss 6迁移到JBoss 7时,无法将应用程序部署到JBoss 7

时间:2014-02-24 13:37:26

标签: jboss jboss7.x

我已将现有的应用程序从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]

1 个答案:

答案 0 :(得分:2)

您不应将jboss jar捆绑在部署中。

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

JBoss AS7在幕后有不同的实现。 如果您认为AS7具有不同的内核并且不再通过jboss-beans.xml文件使用/定义部署者这一事实,那么就会失败。

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

相关问题