2 Replies Latest reply on Feb 18, 2015 12:49 AM by vikimohan

    deploy an EAR with two WARS  - Migrating from JBOSS 4.2.3 to Wildfly with JSF 1.2

    vikimohan

      Hi Guys ,

       

      I am porting our application from legacy JBOSS 4.2,3 to Wildfly 8.2.0 with JSF 1.2

       

      Our App has the following EAR structure

       

      App.ear

                MyApp.war

                MyAppWebHelp.war

       

      The same was working fine with Jboss 4.2.3 

       

      I have done the migration successfully,

       

      But now i face a road block, I deployed our Application EAR with a single war file in it . It got deployed successfully , but when i tried adding two WARs (MyApp.war and MyAppWebHelp.war) inside our EAR the second WAR is not getting deployed

      Please find below the stack trace

       

       

       

      2015-01-22 16:27:19,845 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-7) JSF1037: The specified SerializationProvider implementation 'org.jboss.web.jsf.integration.serialization.JBossSerializationProvider' cannot be loaded.
      2015-01-22 16:27:20,376 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) JBAS017534: Registered web context: /MyApp13
      2015-01-22 16:27:20,387 ERROR [org.jboss.as.controller.management-operation] (XNIO-1 task-1) JBAS014613: Operation ("add") failed - address: ([{"deployment" => "MyApp.ear"}]) - failure description: {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./MyAppWebHelp.UndertowDeploymentInfoService" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./MyAppWebHelp.UndertowDeploymentInfoService: java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener from [Module \"deployment.MyApp.ear.MyAppWebHelp.war:main\" from Service Module Loader]
          Caused by: java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener from [Module \"deployment.MyApp.ear.MyAppWebHelp.war:main\" from Service Module Loader]"}}
      2015-01-22 16:27:20,389 ERROR [org.jboss.as.server] (XNIO-1 task-1) JBAS015870: Deploy of deployment "MyApp.ear" was rolled back with the following failure message: 
      {"JBAS014671: Failed services" => {"jboss.undertow.deployment.default-server.default-host./MyAppWebHelp.UndertowDeploymentInfoService" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./MyAppWebHelp.UndertowDeploymentInfoService: java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener from [Module \"deployment.MyApp.ear.MyAppWebHelp.war:main\" from Service Module Loader]
          Caused by: java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener from [Module \"deployment.MyApp.ear.MyAppWebHelp.war:main\" from Service Module Loader]"}}
      2015-01-22 16:27:20,408 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) JBAS010418: Stopped Driver service with driver-name = MyAppWeb11.war_org.apache.derby.jdbc.ClientDriver_10_6
      2015-01-22 16:27:20,414 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-16) JBAS017535: Unregistered web context: /MyApp13
      2015-01-22 16:27:20,488 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-10) HV000001: Hibernate Validator 5.1.3.Final
      2015-01-22 16:27:21,226 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-11) JBAS015974: Stopped subdeployment (runtime-name: MyAppWebHelp.war) in 834ms
      2015-01-22 16:27:24,214 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015974: Stopped subdeployment (runtime-name: MyAppWeb11.war) in 3822ms
      2015-01-22 16:27:24,227 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment MyApp.ear (runtime-name: MyApp.ear) in 3835ms
      2015-01-22 16:27:24,228 INFO  [org.jboss.as.controller] (XNIO-1 task-1) JBAS014774: Service status report
      JBAS014775:    New missing/unsatisfied dependencies:
            service jboss.deployment.subunit."MyApp.ear"."MyAppWeb11.war".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."MyApp.ear".deploymentCompleteService] 
            service jboss.deployment.subunit."MyApp.ear"."MyAppWebHelp.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./MyAppWebHelp, service jboss.deployment.subunit."MyApp.ear"."MyAppWebHelp.war".deploymentCompleteService] 
      

       

      Individually MyAppWebHelp.war is getting deployed successfully

       

      But it is not getting deployed if it is packaged with MyApp.war


      Please do let me know if there is a way to deploy an EAR with two WARS


      Thanks in advance

       

      -

      Viki