Deployment error when having more than one @Named @Unwraps producer in the 
project
----------------------------------------------------------------------------------

                 Key: SOLDER-120
                 URL: https://issues.jboss.org/browse/SOLDER-120
             Project: Seam Solder
          Issue Type: Bug
    Affects Versions: 3.0.0.Final
            Reporter: Cody Lerum


Having two @Producer methods in an application which are @Named throws a 
deployment error. If you remove the @Named it deploys fine. The two producers 
are in different classes with different method names.

WELD-001414 Bean name is ambiguous. Name  resolves to beans 
[org.jboss.seam.solder.unwraps.UnwrapsProducerBean@eb3516, 
org.jboss.seam.solder.unwraps.UnwrapsProducerBean@923822]

Looking at this error and the source it does appear that the UnwrapsProducer 
doesn't read the producer method name if the value is not defined in the 
annotation as it should. However even If I explicitly set the name in the 
@Named Weld still fails to deploy

org.jboss.weld.exceptions.DeploymentException: WELD-001414 Bean name is 
ambiguous. Name newServiceReturn resolves to beans 
[org.jboss.seam.solder.unwraps.UnwrapsProducerBean@8807d7, Producer Method 
[ServiceReturn] with qualifiers [@Any @CreateBean @Named] declared as [[method] 
@Produces @Unwraps @CreateBean @Named public 
co.domain.service.returns.ServiceReturnUtil.newServiceReturn()]]
 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
seam-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/seam-issues

Reply via email to