Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-590

Seam Persistence does not work with OWB - AfterBeanDiscovery.addBean will be ignored

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: 1.1.1
    • Labels:
      None
    • Environment:
      Owb 1.1.1-SNAPSHOT, Seam Faces, Seam Persistence, Seam Security, Seam Validation, MyFaces 2.1.1,

      Description

      AFAICS In org.jboss.seam.persistence.ManagedPersistenceContextExtension a bean for the EntityManager will be generated and added in the AfterBeanDiscovery event but OWB says that there is no bean/producer available:

      javax.enterprise.inject.UnsatisfiedResolutionException: Api type [javax.persistence.EntityManager] is not found with the qualifiers
      Qualifiers: [@javax.enterprise.inject.Default()]
      for injection into Field Injection Point, field name : entityManager, Bean Owner : [UserDaoImpl, Name:null, WebBeans Type:MANAGED, API Types:[java.io.Serializable,java.lang.Object,de.test.jpa.UserDaoImpl,de.test.jpa.UserDao], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]]
      at org.apache.webbeans.util.InjectionExceptionUtils.throwUnsatisfiedResolutionException(InjectionExceptionUtils.java:92)
      at org.apache.webbeans.container.ResolutionUtil.checkResolvedBeans(ResolutionUtil.java:98)
      at org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:193)
      at org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1148)
      at org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:390)
      at org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:334)
      at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:177)
      at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:129)
      at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:87)
      at org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:81)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
      at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
      at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:636)

      A sample project is available here: http://www.megaupload.com/?d=0CF4EVCP

        Attachments

          Activity

            People

            • Assignee:
              struberg Mark Struberg
              Reporter:
              zoigl Thomas Andraschko
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: