Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-2386

Microprofile rest client - redeployment WELD-001414: Bean name is ambiguous.

XMLWordPrintable

    • Hide

      Forum: https://developer.jboss.org/thread/279565
      1. start the server
      2. mvn clean install
      3. copy the mp-client-1.0.0-SNAPSHOT.war in the deployments directory.
      4. (optionally) run rest client
      4.1 With CDI: curl http://localhost:8080/mp-client/test/1
      4.2 Without CDI: curl http://localhost:8080/mp-client/test/2
      5. rebuild and redeploy the application on running server (see step 2 and 3)

      1. deploy mp-client-1.0.0-SNAPSHOT.war
      2. undeploy mp-client-1.0.0-SNAPSHOT.war
      3. deploy mp-client-1.0.0-SNAPSHOT.war
      Show
      Forum: https://developer.jboss.org/thread/279565 1. start the server 2. mvn clean install 3. copy the mp-client-1.0.0-SNAPSHOT.war in the deployments directory. 4. (optionally) run rest client 4.1 With CDI: curl http://localhost:8080/mp-client/test/1 4.2 Without CDI: curl http://localhost:8080/mp-client/test/2 5. rebuild and redeploy the application on running server (see step 2 and 3) — deploy mp-client-1.0.0-SNAPSHOT.war undeploy mp-client-1.0.0-SNAPSHOT.war deploy mp-client-1.0.0-SNAPSHOT.war

      09:35:25,936 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."mp-client-1.0.0-SNAPSHOT.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."mp-client-1.0.0-SNAPSHOT.war".WeldStartService: Failed to start service  
              at org.jboss.msc@1.4.5.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1730)  
              at org.jboss.msc@1.4.5.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)  
              at org.jboss.threads@2.3.2.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)  
              at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)  
              at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)  
              at org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)  
              at java.base/java.lang.Thread.run(Thread.java:834)  
      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001414: Bean name is ambiguous. Name org.lorislab.mp.client.api.TestRestService resolves to beans: [org.jboss.resteasy.cdi.microprofile.RestClientDelegateBean@2a357dc2, org.jboss.resteasy.cdi.microprofile.RestClientDelegateBean@59b2b6ec]  
              at org.jboss.weld.core@3.0.5.Final//org.jboss.weld.bootstrap.Validator.validateBeanName(Validator.java:653)  
              at org.jboss.weld.core@3.0.5.Final//org.jboss.weld.bootstrap.ConcurrentValidator$5.doWork(ConcurrentValidator.java:121)  
              at org.jboss.weld.core@3.0.5.Final//org.jboss.weld.bootstrap.ConcurrentValidator$5.doWork(ConcurrentValidator.java:119)  
              at org.jboss.weld.core@3.0.5.Final//org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:62)  
              at org.jboss.weld.core@3.0.5.Final//org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:55)  
              at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)  
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)  
              at java.base/java.lang.Thread.run(Thread.java:834)  
              at org.jboss.threads@2.3.2.Final//org.jboss.threads.JBossThread.run(JBossThread.java:485)  
      09:35:25,941 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) WFLYCTL0013: Operation ("full-replace-deployment") failed - address: ([]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"mp-client-1.0.0-SNAPSHOT.war\".WeldStartService" => "Failed to start service  
          Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001414: Bean name is ambiguous. Name org.lorislab.mp.client.api.TestRestService resolves to beans: [org.jboss.resteasy.cdi.microprofile.RestClientDelegateBean@2a357dc2, org.jboss.resteasy.cdi.microprofile.RestClientDelegateBean@59b2b6ec]"}}  
      

            rsigal@redhat.com Ronald Sigal
            AndrejPetras Andrej Petras (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: