You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by conejo <lo...@gmail.com> on 2016/01/29 12:48:10 UTC
Karaf 4.0.3 + pax-cdi
Good afternoon.
I'm trying to use pax-cdi and get the exception below.
Can you help please?
You can see the code: https://github.com/LuisLozano/karafExamples.git
I think the problem is in pax-jsf-support: This feature uses
pax-cdi-openwebbeans including the openwebbeans bundles-*/1.2.6 when
including bundles should be 1.5.0 or higher.
The exception is:
javax.enterprise.inject.CreationException: java.lang.ClassNotFoundException:
org.apache.webbeans.proxy.OwbNormalScopeProxy not found by
org.ops4j.pax.cdi.extension [147]
at
org.apache.webbeans.component.AbstractOwbBean.create(AbstractOwbBean.java:140)[21:openwebbeans-impl:1.2.6]
at
org.apache.webbeans.component.ManagedBean.create(ManagedBean.java:55)[21:openwebbeans-impl:1.2.6]
at
org.apache.webbeans.context.creational.BeanInstanceBag.create(BeanInstanceBag.java:76)[21:openwebbeans-impl:1.2.6]
at
org.apache.webbeans.context.AbstractContext.getInstance(AbstractContext.java:160)[21:openwebbeans-impl:1.2.6]
at
org.apache.webbeans.context.AbstractContext.get(AbstractContext.java:125)[21:openwebbeans-impl:1.2.6]
at
org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:230)[21:openwebbeans-impl:1.2.6]
at
org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:482)[21:openwebbeans-impl:1.2.6]
...
--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-3-pax-cdi-tp4045056.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Karaf 4.0.3 + pax-cdi
Posted by conejo <lo...@gmail.com>.
Good afternoon.
For if this can interest someone.
The problem is in the assembly. If pom.xml is added to the appropriate
libraries, everything works fine.
The libraries to be added can be viewed at:
http://karaf.922171.n3.nabble.com/Karaf-assembly-td4045816.html
--
View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-3-pax-cdi-tp4045056p4045859.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Karaf 4.0.3 + pax-cdi
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
it sounds like a version alignment issue :/
We should use dependency there (I hope the API are compatible).
Let me check.
Regards
JB
On 01/29/2016 12:48 PM, conejo wrote:
> Good afternoon.
> I'm trying to use pax-cdi and get the exception below.
> Can you help please?
> You can see the code: https://github.com/LuisLozano/karafExamples.git
>
> I think the problem is in pax-jsf-support: This feature uses
> pax-cdi-openwebbeans including the openwebbeans bundles-*/1.2.6 when
> including bundles should be 1.5.0 or higher.
>
> The exception is:
> javax.enterprise.inject.CreationException: java.lang.ClassNotFoundException:
> org.apache.webbeans.proxy.OwbNormalScopeProxy not found by
> org.ops4j.pax.cdi.extension [147]
> at
> org.apache.webbeans.component.AbstractOwbBean.create(AbstractOwbBean.java:140)[21:openwebbeans-impl:1.2.6]
> at
> org.apache.webbeans.component.ManagedBean.create(ManagedBean.java:55)[21:openwebbeans-impl:1.2.6]
> at
> org.apache.webbeans.context.creational.BeanInstanceBag.create(BeanInstanceBag.java:76)[21:openwebbeans-impl:1.2.6]
> at
> org.apache.webbeans.context.AbstractContext.getInstance(AbstractContext.java:160)[21:openwebbeans-impl:1.2.6]
> at
> org.apache.webbeans.context.AbstractContext.get(AbstractContext.java:125)[21:openwebbeans-impl:1.2.6]
> at
> org.apache.webbeans.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:230)[21:openwebbeans-impl:1.2.6]
> at
> org.apache.webbeans.event.NotificationManager.fireEvent(NotificationManager.java:482)[21:openwebbeans-impl:1.2.6]
>
> ...
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-0-3-pax-cdi-tp4045056.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com