[jboss-jira] [JBoss JIRA] (WFLY-11728) Microprofile rest client - redeployment WELD-001414: Bean name is ambiguous.

Brian Stansberry (Jira) issues at jboss.org
Tue Jan 14 18:00:51 EST 2020


     [ https://issues.redhat.com/browse/WFLY-11728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry resolved WFLY-11728.
-------------------------------------
    Fix Version/s: 18.0.1.Final
       Resolution: Done


> Microprofile rest client - redeployment WELD-001414: Bean name is ambiguous.
> ----------------------------------------------------------------------------
>
>                 Key: WFLY-11728
>                 URL: https://issues.redhat.com/browse/WFLY-11728
>             Project: WildFly
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 15.0.1.Final
>            Reporter: Andrej Petras
>            Assignee: Ronald Sigal
>            Priority: Critical
>              Labels: Microprofile, resteasy-client
>             Fix For: 19.0.0.Beta1, 18.0.1.Final
>
>
> {noformat}
> 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 at 1.4.5.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1730)  
>         at org.jboss.msc at 1.4.5.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1558)  
>         at org.jboss.threads at 2.3.2.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)  
>         at org.jboss.threads at 2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)  
>         at org.jboss.threads at 2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)  
>         at org.jboss.threads at 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 at 2a357dc2, org.jboss.resteasy.cdi.microprofile.RestClientDelegateBean at 59b2b6ec]  
>         at org.jboss.weld.core at 3.0.5.Final//org.jboss.weld.bootstrap.Validator.validateBeanName(Validator.java:653)  
>         at org.jboss.weld.core at 3.0.5.Final//org.jboss.weld.bootstrap.ConcurrentValidator$5.doWork(ConcurrentValidator.java:121)  
>         at org.jboss.weld.core at 3.0.5.Final//org.jboss.weld.bootstrap.ConcurrentValidator$5.doWork(ConcurrentValidator.java:119)  
>         at org.jboss.weld.core at 3.0.5.Final//org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:62)  
>         at org.jboss.weld.core at 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 at 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 at 2a357dc2, org.jboss.resteasy.cdi.microprofile.RestClientDelegateBean at 59b2b6ec]"}}  
> {noformat}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list