tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: jcs jcache tomee changes?
Date Tue, 24 Feb 2015 07:44:04 GMT
hmm, redeployed a snapshot in case I missed something (and simplified
a bit the code) but shouldn't occur

do you care testing again please with a fresh snapshot?

PS: the beans.xml you need to add is in your app not jcs jar if it was not clear


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2015-02-23 23:36 GMT+01:00 hwaastad <helge@waastad.org>:
> This time I actually noticed by the svn log :-)
>
> And I really appreciate your efforts!
>
> It's coming one step further,
> Now there is ambigous resolution:
>
> SEVERE: CDI Beans module deployment failed
> org.apache.webbeans.exception.inject.DeploymentException:
> javax.enterprise.inject.AmbiguousResolutionException: Ambiguous resolution
> found beans:
> CDIJCacheHelper, Name:null, WebBeans Type:THIRDPARTY, API
> Types:[java.lang.Object,org.apache.commons.jcs.jcache.cdi.CDIJCacheHelper],
> Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
> from
> jar:file:/home/helge/admin-2-0/Admin/Admin-ear/target/apache-tomee/apps/Admin-ear-2.4-SNAPSHOT/lib/commons-jcs-jcache-2.0-SNAPSHOT.jar!/org/apache/commons/jcs/jcache/cdi/CDIJCacheHelper.class
> CDIJCacheHelper, Name:null, WebBeans Type:THIRDPARTY, API
> Types:[java.lang.Object,org.apache.commons.jcs.jcache.cdi.CDIJCacheHelper],
> Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
> from
> jar:file:/home/helge/admin-2-0/Admin/Admin-ear/target/apache-tomee/apps/Admin-ear-2.4-SNAPSHOT/lib/commons-jcs-jcache-2.0-SNAPSHOT.jar!/org/apache/commons/jcs/jcache/cdi/CDIJCacheHelper.class
>         at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:219)
>         at
> org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:194)
>         at
> org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:160)
>         at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:60)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1361)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1087)
>         at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>         at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5378)
>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
>         at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: javax.enterprise.inject.AmbiguousResolutionException: Ambiguous
> resolution
> found beans:
> CDIJCacheHelper, Name:null, WebBeans Type:THIRDPARTY, API
> Types:[java.lang.Object,org.apache.commons.jcs.jcache.cdi.CDIJCacheHelper],
> Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
> from
> jar:file:/home/helge/admin-2-0/Admin/Admin-ear/target/apache-tomee/apps/Admin-ear-2.4-SNAPSHOT/lib/commons-jcs-jcache-2.0-SNAPSHOT.jar!/org/apache/commons/jcs/jcache/cdi/CDIJCacheHelper.class
> CDIJCacheHelper, Name:null, WebBeans Type:THIRDPARTY, API
> Types:[java.lang.Object,org.apache.commons.jcs.jcache.cdi.CDIJCacheHelper],
> Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
> from
> jar:file:/home/helge/admin-2-0/Admin/Admin-ear/target/apache-tomee/apps/Admin-ear-2.4-SNAPSHOT/lib/commons-jcs-jcache-2.0-SNAPSHOT.jar!/org/apache/commons/jcs/jcache/cdi/CDIJCacheHelper.class
>         at
> org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionExceptionForBeans(InjectionExceptionUtil.java:104)
>         at
> org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionException(InjectionExceptionUtil.java:94)
>         at
> org.apache.webbeans.util.InjectionExceptionUtil.throwAmbiguousResolutionException(InjectionExceptionUtil.java:71)
>         at
> org.apache.webbeans.container.InjectionResolver.resolve(InjectionResolver.java:699)
>         at
> org.apache.webbeans.container.InjectionResolver.checkInjectionPoint(InjectionResolver.java:191)
>         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:415)
>         at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:202)
>         ... 16 more
>
> feb 23, 2015 11:38:36 PM org.apache.tomee.catalina.TomcatWebAppBuilder
> startInternal
> SEVERE: Error merging Java EE JNDI entries in to war /Admin: Exception:
> couldn't start owb context
> 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:60)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1361)
>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1087)
>         at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>         at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5378)
>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
>         at
> org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
>
>
> br hw
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/jcs-jcache-tomee-changes-tp4673847p4673871.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
View raw message