[weld-issues] [JBoss JIRA] Resolved: (WELD-246) Cannot add a custom bean from a portable extension.

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Nov 3 08:17:20 EST 2009


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

Pete Muir resolved WELD-246.
----------------------------

    Resolution: Done
      Assignee: Roger Kitain  (was: Pete Muir)


Fixed this problem, Roger, please test, and reassign to me.

> Cannot add a custom bean from a portable extension.
> ---------------------------------------------------
>
>                 Key: WELD-246
>                 URL: https://jira.jboss.org/jira/browse/WELD-246
>             Project: Weld
>          Issue Type: Bug
>    Affects Versions: 1.0.0.CR1
>         Environment: GlassFish v3 and Weld 1.0.0-CR1-SP1
>            Reporter: Binod PG
>            Assignee: Roger Kitain
>            Priority: Critical
>             Fix For: 1.0.0.CR2
>
>
> Adding a CustomBean using the AfterBeanDiscovery doesnt seem to work. The portable extension defines an interface (and a bean class that implements it) and tries to inject an instance of the interface to the servlet implementation. But it fails with the following extension.
> Caused by: javax.enterprise.inject.UnsatisfiedResolutionException: interface 
> org.glassfish.test299.ABeanInterface; binding types = [@Default]Unable to resolve any Managed Beans
> 	at org.jboss.weld.BeanManagerImpl.getBean(BeanManagerImpl.java:996)
> 	at org.jboss.weld.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:966)
> 	at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:78)
> 	at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:683)
> 	at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:695)
> 	at org.jboss.weld.SimpleInjectionTarget$1.proceed(SimpleInjectionTarget.java:108)
> 	at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:123)
> 	at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:47)
> 	at org.jboss.weld.SimpleInjectionTarget.inject(SimpleInjectionTarget.java:102)
> 	at org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:174)
> 	at 
> com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBe
> an(ManagedBeanManagerImpl.java:456)
> 	at 
> com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBe
> an(ManagedBeanManagerImpl.java:423)
> 	at 
> com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionM
> anagerImpl.java:295)
> I have attached a test case with glassfish issue here.
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=10658

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list