6 Replies Latest reply on Aug 27, 2017 4:22 AM by vincent.sourin

    [WF11 Beta1] Deployment error with HA Singleton & Remote EJB

    vincent.sourin

      Hello,

       

      I can't manage to deploy an application when HA singleton feature and remote EJB are involved.

      I create a project that reproduced the problem here : GitHub - Vinche59/wildfly11-error

       

      In Wildfly 10.1.0.Final, this project deploys correctly.

      In Wildly 11.0.0.Beta1, deployment fails on the server that does not own the HA Singleton.

       

      Thanks for your help

        • 1. Re: [WF11 Beta1] Deployment error with HA Singleton & Remote EJB
          ctomc

          what is the error? any stacktrace?

          • 2. Re: [WF11 Beta1] Deployment error with HA Singleton & Remote EJB
            vincent.sourin

            Logs of server-one (elected as the singleton provider) :

             

            2017-08-16 09:02:37,709 INFO  [org.wildfly.clustering.server] (DistributedSingletonService - 1) WFLYCLSV0003: master:server-one elected as the singleton provider of the jboss.deployment.unit."singleton-ear.ear".installer service
            2017-08-16 09:02:37,912 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
            2017-08-16 09:02:37,928 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 11.0.0.Beta1 (WildFly Core 3.0.0.Beta30) started in 28202ms - Started 550 of 769 services (430 services are lazy, passive or on-demand)
            2017-08-16 09:03:19,496 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0027: Starting deployment of "test-ear.ear" (runtime-name: "test-ear.ear")
            2017-08-16 09:03:19,666 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0207: Starting subdeployment (runtime-name: "test-ejb.jar")
            2017-08-16 09:03:19,935 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) WFLYWELD0003: Processing weld deployment test-ear.ear
            2017-08-16 09:03:20,352 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) WFLYWELD0003: Processing weld deployment test-ejb.jar
            2017-08-16 09:03:20,355 INFO  [org.jboss.as.ejb3.deployment] (MSC service thread 1-7) WFLYEJB0473: JNDI bindings for session bean named 'Test' in deployment unit 'subdeployment "test-ejb.jar" of deployment "test-ear.ear"' are as follows:
            
                java:global/test-ear/test-ejb/Test!org.example.test.Test
                java:app/test-ejb/Test!org.example.test.Test
                java:module/Test!org.example.test.Test
                java:global/test-ear/test-ejb/Test
                java:app/test-ejb/Test
                java:module/Test
            
            2017-08-16 09:03:20,950 ERROR [org.jboss.as.server] (ServerService Thread Pool -- 33) WFLYSRV0022: Deploy of deployment "test-ear.ear" was rolled back with no failure message
            2017-08-16 09:03:21,270 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0208: Stopped subdeployment (runtime-name: test-ejb.jar) in 319ms
            2017-08-16 09:03:21,356 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0028: Stopped deployment test-ear.ear (runtime-name: test-ear.ear) in 406ms
            

             

            Logs of server-two :

             

            2017-08-16 09:02:35,238 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0010: Deployed "singleton-ear.ear" (runtime-name : "singleton-ear.ear")
            2017-08-16 09:02:35,496 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
            2017-08-16 09:02:35,523 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 11.0.0.Beta1 (WildFly Core 3.0.0.Beta30) started in 19135ms - Started 404 of 658 services (424 services are lazy, passive or on-demand)
            2017-08-16 09:03:19,491 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0027: Starting deployment of "test-ear.ear" (runtime-name: "test-ear.ear")
            2017-08-16 09:03:19,664 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0207: Starting subdeployment (runtime-name: "test-ejb.jar")
            2017-08-16 09:03:19,906 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 20) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "test-ear.ear")]) - failure description: {
                "WFLYCTL0412: Required services that are not installed:" => [
                    "jboss.module.spec.service.\"deployment.singleton-ear.ear.singleton-ejb.jar\".main",
                    "module.resolved.service.\"deployment.test-ear.ear.test-ejb.jar\".main",
                    "module.resolved.service.\"deployment.test-ear.ear\".main"
                ],
                "WFLYCTL0180: Services with missing/unavailable dependencies" => [
                    "jboss.module.service.\"deployment.test-ear.ear\".main is missing [module.resolved.service.\"deployment.test-ear.ear\".main]",
                    "jboss.module.resolve.phase.\"deployment.test-ear.ear.test-ejb.jar\".main.1 is missing [jboss.module.spec.service.\"deployment.singleton-ear.ear.singleton-ejb.jar\".main]",
                    "jboss.module.resolve.phase.\"deployment.test-ear.ear\".main.2 is missing [jboss.module.spec.service.\"deployment.singleton-ear.ear.singleton-ejb.jar\".main]",
                    "jboss.module.service.\"deployment.test-ear.ear.test-ejb.jar\".main is missing [module.resolved.service.\"deployment.test-ear.ear.test-ejb.jar\".main, jboss.module.spec.service.\"deployment.singleton-ear.ear.singleton-ejb.jar\".main]"
                ]
            }
            2017-08-16 09:03:19,917 ERROR [org.jboss.as.server] (ServerService Thread Pool -- 20) WFLYSRV0021: Deploy of deployment "test-ear.ear" was rolled back with the following failure message: 
            {
                "WFLYCTL0412: Required services that are not installed:" => [
                    "jboss.module.spec.service.\"deployment.singleton-ear.ear.singleton-ejb.jar\".main",
                    "module.resolved.service.\"deployment.test-ear.ear.test-ejb.jar\".main",
                    "module.resolved.service.\"deployment.test-ear.ear\".main"
                ],
                "WFLYCTL0180: Services with missing/unavailable dependencies" => [
                    "jboss.module.service.\"deployment.test-ear.ear\".main is missing [module.resolved.service.\"deployment.test-ear.ear\".main]",
                    "jboss.module.resolve.phase.\"deployment.test-ear.ear.test-ejb.jar\".main.1 is missing [jboss.module.spec.service.\"deployment.singleton-ear.ear.singleton-ejb.jar\".main]",
                    "jboss.module.resolve.phase.\"deployment.test-ear.ear\".main.2 is missing [jboss.module.spec.service.\"deployment.singleton-ear.ear.singleton-ejb.jar\".main]",
                    "jboss.module.service.\"deployment.test-ear.ear.test-ejb.jar\".main is missing [module.resolved.service.\"deployment.test-ear.ear.test-ejb.jar\".main, jboss.module.spec.service.\"deployment.singleton-ear.ear.singleton-ejb.jar\".main]"
                ]
            }
            2017-08-16 09:03:19,968 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0208: Stopped subdeployment (runtime-name: test-ejb.jar) in 51ms
            2017-08-16 09:03:20,179 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0028: Stopped deployment test-ear.ear (runtime-name: test-ear.ear) in 261ms
            
            • 3. Re: [WF11 Beta1] Deployment error with HA Singleton & Remote EJB
              pferraro

              When I run your deploy script against a running domain, per your README, I get the same deployment errors.  However, if I manually configure the servers, everything seems to deploy correctly, and the test ear deploys fine.  I'll see if I can spot the discrepancy.

              • 4. Re: [WF11 Beta1] Deployment error with HA Singleton & Remote EJB
                vincent.sourin

                Hello Paul,

                 

                What do you mean by manually configure the servers ? Manual edition of the *.xml files instead of using cli ?

                • 5. Re: [WF11 Beta1] Deployment error with HA Singleton & Remote EJB
                  vincent.sourin

                  Paul,

                   

                  I don't know if this can help you to spot the problem but with my configuration :

                   

                  If I deploy singleton-ear.ear in WF 10, I can see that jndi bindings message (WFLYEJB0473: JNDI bindings for session bean named 'MySingletonImpl' in deployment unit ....) appears on both nodes

                  Idem, If I create an annotated method with @PostConstruct, I can see that the Singleton is initialized on both nodes.

                   

                  In WF 11, only the node elected as the singleton provider seems to initialize MySingleton (JNDI bindings message & call of @PostConstruct method are not displayed on the other node).

                  • 6. Re: [WF11 Beta1] Deployment error with HA Singleton & Remote EJB
                    vincent.sourin

                    Hello Paul,

                     

                    Just try with WF11.0.0.CR1 and still got the same deployment error.

                    You said you successfully deployed with manual configuration of the servers.

                    Could you please give me this domain.xml file that works ? I still don't understand what I'm doing wrong.