[ 
https://issues.apache.org/jira/browse/DELTASPIKE-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13406369#comment-13406369
 ] 

Charles Moulliard commented on DELTASPIKE-198:
----------------------------------------------

Additional error has been discovered with Weld-extension. Even if web-extension 
(bundle) uses DynamicImport to dynamically import other classes, the 
classloader of weld don't do it. 

{code}
10:20:51.673 [FelixStartLev] ERROR o.j.w.e.o.i.e.OSGiServiceBean - Unable to 
instantiate OSGiServiceBean [CdiCamelContext] with qualifiers [@Any 
@OSGiService @Filter(value=)] due to java.lang.IllegalArgumentException: class 
org.apache.camel.component.cdi.CdiCamelContext is not visible from class loader 
ERROR: Bundle org.jboss.weld.osgi.weld-osgi-core-extension [51] 
EventDispatcher: Error during dispatch. 
(javax.enterprise.inject.CreationException: java.lang.IllegalArgumentException: 
class org.apache.camel.component.cdi.CdiCamelContext is not visible from class 
loader)
javax.enterprise.inject.CreationException: java.lang.IllegalArgumentException: 
class org.apache.camel.component.cdi.CdiCamelContext is not visible from class 
loader
        at 
org.jboss.weld.environment.osgi.impl.extension.OSGiServiceBean.create(OSGiServiceBean.java:177)
        at 
org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:64)
        at 
org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:623)
        at 
org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:688)
        at 
org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:119)
        at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:703)
        at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:712)
        at 
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:162)
        at 
org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
        at 
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:158)
        at 
org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:132)
        at 
org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:154)
        at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:291)
        at 
org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:64)
        at 
org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:623)
        at 
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:228)
        at 
org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:207)
        at 
org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:576)
        at 
org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:566)
        at 
org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:561)
        at 
org.jboss.weld.environment.osgi.impl.integration.IntegrationActivator.startManagement(IntegrationActivator.java:235)
        at 
org.jboss.weld.environment.osgi.impl.integration.IntegrationActivator.bundleChanged(IntegrationActivator.java:150)
        at 
org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:868)
        at 
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:789)
        at 
org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:514)
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4244)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1923)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
        at 
org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
        at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.IllegalArgumentException: class 
org.apache.camel.component.cdi.CdiCamelContext is not visible from class loader
        at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
        at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
        at 
org.jboss.weld.environment.osgi.impl.extension.OSGiServiceBean.create(OSGiServiceBean.java:160)
        ... 29 more
ld

[  70] [Active     ] [            ] [   80] camel-cdi (2.10.0.SNAPSHOT)

karaf@root> package:export 70
    ID Packages                                
    70 org.apache.camel.component.cdi; version=2.10.0.SNAPSHOT

[  51] [Active     ] [            ] [   80] Weld OSGi (Extension bundle) 
(1.2.0.SNAPSHOT)

karaf@root> package:import 51
System Bundle (0): org.osgi.framework; version=1.6.0
System Bundle (0): javax.annotation; version=1.1.0
System Bundle (0): javax.management; version=0.0.0
System Bundle (0): javax.naming; version=0.0.0
Apache Felix Configuration Admin Service (5): org.osgi.service.cm; version=1.3.0
Apache Felix File Install (6): org.apache.felix.fileinstall; version=3.2.2
Apache Aries Blueprint Bundle (10): org.osgi.service.blueprint.container; 
version=1.0.1
Apache Karaf :: Features :: Core (17): org.apache.karaf.features; 
version=2.3.0.SNAPSHOT
Apache Karaf :: JAAS :: Config (41): org.apache.karaf.jaas.config; 
version=2.3.0.SNAPSHOT
Weld OSGi (Mandatory bundle) (52): javax.el; version=2.2.0
Weld OSGi (Mandatory bundle) (52): javax.inject; version=1.0.0
Weld OSGi (Mandatory bundle) (52): javax.decorator; version=1.0.0
Weld OSGi (Mandatory bundle) (52): javax.enterprise.context; version=1.0.0
Weld OSGi (Mandatory bundle) (52): javax.enterprise.context.spi; version=1.0.0
Weld OSGi (Mandatory bundle) (52): javax.enterprise.event; version=1.0.0
Weld OSGi (Mandatory bundle) (52): javax.enterprise.inject; version=1.0.0
Weld OSGi (Mandatory bundle) (52): javax.enterprise.inject.spi; version=1.0.0
Weld OSGi (Mandatory bundle) (52): javax.enterprise.util; version=1.0.0
Weld OSGi (Mandatory bundle) (52): javax.interceptor; version=1.1.0
Weld OSGi (Mandatory bundle) (52): javassist; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.bytecode; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.bytecode.analysis; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.bytecode.annotation; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.bytecode.stackmap; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.compiler; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.compiler.ast; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.convert; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.expr; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.runtime; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.scopedpool; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.util; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.util.proxy; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.tools; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.tools.reflect; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.tools.rmi; version=3.14.0
Weld OSGi (Mandatory bundle) (52): javassist.tools.web; version=3.14.0
Weld OSGi (Mandatory bundle) (52): org.slf4j; version=1.6.1
Weld OSGi (Mandatory bundle) (52): org.slf4j.spi; version=1.6.1
Weld OSGi (Mandatory bundle) (52): org.slf4j.helpers; version=1.6.1
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.filter; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.html; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.sift; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.spi; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.util; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.boolex; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.jul; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.helpers; 
version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.net; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.jmx; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.joran; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.joran.action; 
version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.log4j; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.db; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.db.names; 
version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.selector; 
version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.selector.servlet; 
version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.encoder; 
version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.turbo; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.pattern; 
version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.classic.gaffer; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.filter; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.read; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.html; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.sift; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.spi; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.util; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.boolex; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.helpers; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.net; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.joran; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.joran.event; 
version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.joran.spi; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.joran.util; 
version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.joran.conditional; 
version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.joran.action; 
version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.rolling; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.rolling.helper; 
version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.db; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.db.dialect; 
version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.encoder; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.status; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.layout; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.pattern; version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.pattern.parser; 
version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.pattern.util; 
version=0.9.29
Weld OSGi (Mandatory bundle) (52): ch.qos.logback.core.recovery; version=0.9.29
Weld OSGi (Mandatory bundle) (52): org.slf4j.impl; version=0.9.29
Weld OSGi (Mandatory bundle) (52): org.jboss.interceptor.util.proxy; 
version=2.0.0
Weld OSGi (Mandatory bundle) (52): org.jboss.interceptor.proxy; version=2.0.0
Weld OSGi (Mandatory bundle) (52): org.jboss.weld.context.cache; version=1.1.5
Weld OSGi (Mandatory bundle) (52): org.jboss.weld.bean.proxy; version=1.1.5
Weld OSGi (SPI bundle) (53): org.jboss.weld.environment.osgi.spi; 
version=1.2.0.SNAPSHOT
Weld OSGi (API bundle) (54): org.jboss.weld.environment.osgi.api; 
version=1.2.0.SNAPSHOT
Weld OSGi (API bundle) (54): org.jboss.weld.environment.osgi.api.annotation; 
version=1.2.0.SNAPSHOT
Weld OSGi (API bundle) (54): org.jboss.weld.environment.osgi.api.events; 
version=1.2.0.SNAPSHOT

Bundle-Vendor = Seam Framework
Bundle-UpdateLocation = 
file:/Users/chmoulli/MyApplications/apache-karaf-2.3.0-SNAPSHOT/deploy/bundle2.jar
Bundle-Activator = org.jboss.weld.environment.osgi.impl.Activator
Bundle-Name = Weld OSGi (Extension bundle)
Bundle-DocURL = http://seamframework.org
Bundle-Description = Weld OSGi extension bundle
Bundle-SymbolicName = org.jboss.weld.osgi.weld-osgi-core-extension
Bundle-Version = 1.2.0.SNAPSHOT
Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.html
Bundle-ManifestVersion = 2

DynamicImport-Package = 
        *
{code}
                
> Capitalize the work done by weld-osgi to provide a DeltaSpike OSGI module to 
> deploy weld, owb on osgi platform
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: DELTASPIKE-198
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-198
>             Project: DeltaSpike
>          Issue Type: Improvement
>            Reporter: Charles Moulliard
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to