Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
594 views
in Technique[技术] by (71.8m points)

migration - EAR deployment failing when migrated from JBOSS7 to WildFly8

Background- Installing gazelle Security suite version 6.2.7 Installation manual- https://gazelle.ihe.net/gazelle-documentation/Gazelle-Security-Suite/installation.html Setup is successful with JBOSS7+jdk7 Reason for migration to Wildfly8- Need to use jdk8 for added security features. Error Stack trace-

ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "gazelle-gss.ear")]) - failure description: {"JBAS014671: Failed services" => {
    "jboss.undertow.deployment.default-server.default-host./gss" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./gss: Failed to start service
    Caused by: java.lang.RuntimeException: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.resteasy.bootstrap
    Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.resteasy.bootstrap
    Caused by: java.lang.RuntimeException: exception invoking: init
    Caused by: java.lang.reflect.InvocationTargetException
    Caused by: java.lang.NoSuchMethodError: org.jboss.resteasy.core.Dispatcher.setLanguageMappings(Ljava/util/Map;)V",

Analysis- When EAR file is extracted, its lib folder contains below jars resteasy-jaxrs-2.3.5.Final.jar resteasy-jaxb-provider-2.3.5.Final.jar Wildfly 8 is bundled with resteasy-jaxrs 3.0.6. This incompatibility might be causing error. (Ref- https://developer.jboss.org/thread/242162 )

Update- when attempted to patch Wildfly8 with resteasy 2.3.5 (by unzipping resteasy-jboss-modules-2.3.5.Final.zip in JBOSS_HOMEmodules folder) getting below deployment error-

ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "gazelle-gss.ear")]) - failure description: {
    "JBAS014671: Failed services" => {
        "jboss.deployment.subunit."gazelle-gss.ear"."version.jar".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit."gazelle-gss.ear"."version.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "version.jar" of deployment "gazelle-gss.ear"
    Caused by: java.lang.NoSuchMethodError: org.jboss.resteasy.util.GetRestful.getSubResourceClasses(Ljava/lang/Class;)[Ljava/lang/Class;",
        "jboss.deployment.subunit."gazelle-gss.ear"."mbval-documentation-ejb.jar".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit."gazelle-gss.ear"."mbval-documentation-ejb.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "mbval-documentation-ejb.jar" of deployment "gazelle-gss.ear"
    Caused by: java.lang.NoSuchMethodError: org.jboss.resteasy.util.GetRestful.getSubResourceClasses(Ljava/lang/Class;)[Ljava/lang/Class;",
        "jboss.deployment.subunit."gazelle-gss.ear"."AuditMessage-ejb.jar".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit."gazelle-gss.ear"."AuditMessage-ejb.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "AuditMessage-ejb.jar" of deployment "gazelle-gss.ear"
    Caused by: java.lang.NoSuchMethodError: org.jboss.resteasy.util.GetRestful.getSubResourceClasses(Ljava/lang/Class;)[Ljava/lang/Class;",
        "jboss.deployment.subunit."gazelle-gss.ear"."gazelle-atna-ejb.jar".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit."gazelle-gss.ear"."gazelle-atna-ejb.jar".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of subdeployment "gazelle-atna-ejb.jar" of deployment "gazelle-gss.ear"
    Caused by: java.lang.NoSuchMethodError: org.jboss.resteasy.util.GetRestful.getSubResourceClasses(Ljava/lang/Class;)[Ljava/lang/Class;"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.6k users

...