[ 
https://issues.jboss.org/browse/SOLDER-316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hendy Irawan updated SOLDER-316:
--------------------------------

    Description: 
Simply including seam-config-xml causes

{code}
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous 
dependencies for type [ELContext] with qualifiers [@Default] at injection point 
[[parameter 1] of [constructor] @Inject public 
org.jboss.seam.solder.el.Expressions(ELContext, ExpressionFactory)]. Possible 
dependencies [[Producer Method [ELContext] with qualifiers [@Any @Default] 
declared as [[method] @Produces 
org.jboss.seam.solder.el.ELContextProducer.createELContext()], Producer Method 
[ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces 
org.jboss.solder.el.ELContextProducer.createELContext()]]]
        at 
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:277)
{code}

The webapp works fine without the seam-config-xml dependency.

With a configuration file, the problem above persists, and there's another 
problem with ambiguous dependency on our own beans.

Sample configuration: (in src/main/resources/META-INF/beans.xml )
{code}
        <persistence:ProfilePhotoRepository>
                <s:modifies />
                <s:Named />
                <s:ApplicationScoped />
                
<persistence:uploadPath>/home/ceefour/public_html/satukancinta-media
                </persistence:uploadPath>
                <persistence:publicUrl>http://ceefour.annafi/satukancinta-media/
                </persistence:publicUrl>
        </persistence:ProfilePhotoRepository>
{code}

throws:

{code}
org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous 
dependencies for type [ProfilePhotoRepository] with qualifiers [@Default] at 
injection point [[field] @Inject 
com.satukancinta.ui.admin.UserShowAdmin.photoRepo]. Possible dependencies 
[[Managed Bean [class com.satukancinta.persistence.ProfilePhotoRepository] with 
qualifiers [@Any @Default], Managed Bean [class 
com.satukancinta.persistence.ProfilePhotoRepository] with qualifiers [@Any 
@Default]]]
        at 
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:277)
{code}

I'm unable to use seam-config-xml at all.

Originally reported as #SEAM-132

  was:
Simply including seam-config-xml causes

{code}
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous 
dependencies for type [ELContext] with qualifiers [@Default] at injection point 
[[parameter 1] of [constructor] @Inject public 
org.jboss.seam.solder.el.Expressions(ELContext, ExpressionFactory)]. Possible 
dependencies [[Producer Method [ELContext] with qualifiers [@Any @Default] 
declared as [[method] @Produces 
org.jboss.seam.solder.el.ELContextProducer.createELContext()], Producer Method 
[ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces 
org.jboss.solder.el.ELContextProducer.createELContext()]]]
        at 
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:277)
{code}

The webapp works fine without the seam-config-xml dependency.

With a configuration file, the problem above persists, and there's another 
problem with ambiguous dependency on our own beans.

Sample configuration: (in src/main/resources/META-INF/beans.xml )
{code}
        <persistence:ProfilePhotoRepository>
                <s:modifies />
                <s:Named />
                <s:ApplicationScoped />
                
<persistence:uploadPath>/home/ceefour/public_html/satukancinta-media
                </persistence:uploadPath>
                <persistence:publicUrl>http://ceefour.annafi/satukancinta-media/
                </persistence:publicUrl>
        </persistence:ProfilePhotoRepository>
{code}

throws:

{code}
org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous 
dependencies for type [ProfilePhotoRepository] with qualifiers [@Default] at 
injection point [[field] @Inject 
com.satukancinta.ui.admin.UserShowAdmin.photoRepo]. Possible dependencies 
[[Managed Bean [class com.satukancinta.persistence.ProfilePhotoRepository] with 
qualifiers [@Any @Default], Managed Bean [class 
com.satukancinta.persistence.ProfilePhotoRepository] with qualifiers [@Any 
@Default]]]
        at 
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:277)
{code}

I'm unable to use seam-config-xml at all.


    
> Seam Config throws DeploymentException: WELD-001409 Ambiguous dependencies
> --------------------------------------------------------------------------
>
>                 Key: SOLDER-316
>                 URL: https://issues.jboss.org/browse/SOLDER-316
>             Project: Solder
>          Issue Type: Bug
>          Components: XML Configuration
>    Affects Versions: 3.1.0.Beta2
>         Environment: Seam Config 3.1.0.Beta2, JBoss AS 7.1.0.CR1b
>            Reporter: Hendy Irawan
>
> Simply including seam-config-xml causes
> {code}
> Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001409 
> Ambiguous dependencies for type [ELContext] with qualifiers [@Default] at 
> injection point [[parameter 1] of [constructor] @Inject public 
> org.jboss.seam.solder.el.Expressions(ELContext, ExpressionFactory)]. Possible 
> dependencies [[Producer Method [ELContext] with qualifiers [@Any @Default] 
> declared as [[method] @Produces 
> org.jboss.seam.solder.el.ELContextProducer.createELContext()], Producer 
> Method [ELContext] with qualifiers [@Any @Default] declared as [[method] 
> @Produces org.jboss.solder.el.ELContextProducer.createELContext()]]]
>       at 
> org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:277)
> {code}
> The webapp works fine without the seam-config-xml dependency.
> With a configuration file, the problem above persists, and there's another 
> problem with ambiguous dependency on our own beans.
> Sample configuration: (in src/main/resources/META-INF/beans.xml )
> {code}
>       <persistence:ProfilePhotoRepository>
>               <s:modifies />
>               <s:Named />
>               <s:ApplicationScoped />
>               
> <persistence:uploadPath>/home/ceefour/public_html/satukancinta-media
>               </persistence:uploadPath>
>               <persistence:publicUrl>http://ceefour.annafi/satukancinta-media/
>               </persistence:publicUrl>
>       </persistence:ProfilePhotoRepository>
> {code}
> throws:
> {code}
> org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous 
> dependencies for type [ProfilePhotoRepository] with qualifiers [@Default] at 
> injection point [[field] @Inject 
> com.satukancinta.ui.admin.UserShowAdmin.photoRepo]. Possible dependencies 
> [[Managed Bean [class com.satukancinta.persistence.ProfilePhotoRepository] 
> with qualifiers [@Any @Default], Managed Bean [class 
> com.satukancinta.persistence.ProfilePhotoRepository] with qualifiers [@Any 
> @Default]]]
>       at 
> org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:277)
> {code}
> I'm unable to use seam-config-xml at all.
> Originally reported as #SEAM-132

--
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

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

Reply via email to