tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OPENEJB-2124) Tomee does not find CDI Beans within Tomee/lib/testxxx.jar
Date Tue, 15 Dec 2015 07:50:46 GMT

     [ https://issues.apache.org/jira/browse/OPENEJB-2124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Romain Manni-Bucau resolved OPENEJB-2124.
-----------------------------------------
    Resolution: Fixed
      Assignee: Romain Manni-Bucau

TomEE 7.0.0.M1 supports it setting openejb.scan.webapp.container=true in conf/system.properties

this is not the default cause it breaks too much applications putting EJB at this levels and
using the old JNDI naming which leads to conflicts.



> Tomee does not find CDI Beans within Tomee/lib/testxxx.jar
> ----------------------------------------------------------
>
>                 Key: OPENEJB-2124
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-2124
>             Project: OpenEJB
>          Issue Type: Bug
>            Reporter: BIN ZHOU
>            Assignee: Romain Manni-Bucau
>
> defined a bean in a jar project w/ beans.xml, 
> Here are observations:
> - put the jar as a testing war dependency - CDI find bean ok and works 
> - put the jar as part of tomee/lib - CDI failed to find bean and report 
> Caused by: org.apache.openejb.OpenEJBRuntimeException: couldn't start owb context
> 	at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:162)
> 	at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:41)
> 	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:797)
> 	... 110 more
> Caused by: org.apache.openejb.OpenEJBRuntimeException: org.apache.webbeans.exception.inject.DeploymentException:
javax.enterprise.inject.UnsatisfiedResolutionException: Api type [com.cdi.lib.Service] is
not found with the qualifiers 
> Qualifiers: [@javax.enterprise.inject.Default()]
> for injection into Field Injection Point, field name :  service, Bean Owner : [ServiceTest,
Name:null, WebBeans Type:ENTERPRISE, API Types:[java.lang.Object,com.cdi.test.ServiceTest,java.io.Serializable,com.cdi.test.AbstractArquillianTest],
Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]]
> 	at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:197)
> 	at org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:160)
> 	... 112 more
> Caused by: org.apache.webbeans.exception.inject.DeploymentException: javax.enterprise.inject.UnsatisfiedResolutionException:
Api type [com.cdi.lib.Service] is not found with the qualifiers 
> Qualifiers: [@javax.enterprise.inject.Default()]
> for injection into Field Injection Point, field name :  service, Bean Owner : [ServiceTest,
Name:null, WebBeans Type:ENTERPRISE, API Types:[java.lang.Object,com.cdi.test.ServiceTest,java.io.Serializable,com.cdi.test.AbstractArquillianTest],
Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]]
> 	at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:215)
> 	at org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:194)
> 	... 113 more
> Caused by: javax.enterprise.inject.UnsatisfiedResolutionException: Api type [com.cdi.lib.Service]
is not found with the qualifiers 
> Qualifiers: [@javax.enterprise.inject.Default()]
> for injection into Field Injection Point, field name :  service, Bean Owner : [ServiceTest,
Name:null, WebBeans Type:ENTERPRISE, API Types:[java.lang.Object,com.cdi.test.ServiceTest,java.io.Serializable,com.cdi.test.AbstractArquillianTest],
Qualifiers:[javax.enterprise.inject.Default,javax.enterprise.inject.Any]]
> 	at org.apache.webbeans.util.InjectionExceptionUtil.throwUnsatisfiedResolutionException(InjectionExceptionUtil.java:60)
> 	at org.apache.webbeans.container.InjectionResolver.checkInjectionPoint(InjectionResolver.java:195)
> 	at org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:955)
> 	at org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:491)
> 	at org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:422)
> 	at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:202)
> 	... 114 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message