[seam-issues] [JBoss JIRA] (SOLDER-120) Deployment error when having more than one @Named @Unwraps producer in the project

Jason Porter (Commented) (JIRA) jira-events at lists.jboss.org
Thu Dec 8 03:09:40 EST 2011


    [ https://issues.jboss.org/browse/SOLDER-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12649096#comment-12649096 ] 

Jason Porter commented on SOLDER-120:
-------------------------------------

Still a problem?
                
> 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: 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 at eb3516, org.jboss.seam.solder.unwraps.UnwrapsProducerBean at 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 at 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list