Hello all,

I'm trying to launch Apache CXF Bundle example and for that I'm
launched smx-kernel + nmr + jbi + cxf under Equinox (Eclipse). However
I'm getting following exception:

SEVERE: Post refresh error
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in
OSGi resource[classpath:META-INF/cxf/cxf.xml|bnd.id=22|bnd.sym=cxfbundletest]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]:
Constructor threw exception; nested exception is
java.lang.RuntimeException: javax.xml.bind.JAXBException: Provider
com.sun.xml.bind.v2.ContextFactory not found
 - with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
        at 
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:68)
        at 
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:343)
        at 
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
        at 
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:308)
        at 
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:138)
        at java.lang.Thread.run(Thread.java:613)
Caused by: org.springframework.beans.BeanInstantiationException: Could
not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]:
Constructor threw exception; nested exception is
java.lang.RuntimeException: javax.xml.bind.JAXBException: Provider
com.sun.xml.bind.v2.ContextFactory not found
 - with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)
        ... 18 more
Caused by: java.lang.RuntimeException: javax.xml.bind.JAXBException:
Provider com.sun.xml.bind.v2.ContextFactory not found
 - with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory]

Despite the fact that I have this bundle:
com.springsource.javax.xml.bind_2.1.7 active and my bundle with CXF
JAX-WS Service depends on it.

Renat

P.S. Here is the list of active bundles:

Framework is launched.

id      State       Bundle
0       ACTIVE      org.eclipse.osgi_3.4.2.R34x_v20080826-1230
1       ACTIVE      org.apache.geronimo.specs.geronimo-javamail_1.4_spec_1.3.0
2       ACTIVE      org.apache.geronimo.specs.geronimo-annotation_1.0_spec_1.1.1
3       ACTIVE      org.apache.servicemix.jbi.runtime_1.0.0.SNAPSHOT
4       ACTIVE      org.apache.servicemix.cxf.transport.nmr_4.0.0.m2-SNAPSHOT
5       ACTIVE      org.apache.servicemix.kernel.jaas.modules_1.1.0.SNAPSHOT
6       ACTIVE      org.apache.geronimo.specs.geronimo-jta_1.1_spec_1.1.1
7       ACTIVE      com.springsource.org.apache.commons.logging_1.1.1
8       ACTIVE      org.apache.cxf.cxf-bundle_2.1.4
9       ACTIVE      org.apache.servicemix.cxf.transport.osgi_4.0.0.m2-SNAPSHOT
10      ACTIVE      org.apache.servicemix.bundles.jaxp-ri_1.4.2.1
11      ACTIVE      geronimo-transaction_2.2.0.r634076
12      ACTIVE      org.springframework.aop_2.5.6
13      ACTIVE      org.apache.servicemix.cxf.binding.nmr_4.0.0.m2-SNAPSHOT
14      ACTIVE      org.apache.servicemix.nmr.spring_1.0.0.SNAPSHOT
15      ACTIVE      org.springframework.context_2.5.6
16      ACTIVE      org.apache.servicemix.jbi.osgi_1.0.0.SNAPSHOT
17      ACTIVE      org.apache.xbean.xbean-classloader_3.5.0
18      ACTIVE      com.springsource.org.apache.commons.httpclient_3.1.0
19      ACTIVE      com.springsource.javax.jws_2.0.0
20      ACTIVE      org.apache.servicemix.bundles.howl_1.0.1.1_1
21      ACTIVE      org.eclipse.osgi.util_3.1.100.v20060601
22      ACTIVE      cxfbundletest_1.0.0
23      ACTIVE      com.springsource.javax.xml.soap_1.3.0
24      ACTIVE      com.springsource.org.apache.ws.commons.schema_1.3.2
25      ACTIVE      org.eclipse.osgi.services_3.1.200.v20071203
26      ACTIVE      org.springframework.osgi.io_1.2.0.m2
27      ACTIVE      servicemix-common_2009.1.0.SNAPSHOT
28      ACTIVE      servicemix-utils_1.0.0
29      ACTIVE      com.springsource.org.apache.commons.codec_1.3.0
30      ACTIVE      org.apache.geronimo.specs.geronimo-jaxws_2.1_spec_1.0.0
31      ACTIVE      org.apache.servicemix.bundles.xmlresolver_1.2.0.1
32      ACTIVE      com.springsource.javax.activation_1.1.1
33      ACTIVE      com.springsource.javax.xml.bind_2.1.7
34      ACTIVE      com.springsource.com.sun.xml.bind_2.1.7
35      ACTIVE      servicemix-soap_2009.1.0.SNAPSHOT
36      ACTIVE      org.springframework.transaction_2.5.6
37      ACTIVE      org.springframework.beans_2.5.6
38      ACTIVE      org.apache.servicemix.specs.jbi-api-1.0_1.2.0
39      ACTIVE      org.apache.servicemix.document_1.0.0.SNAPSHOT
40      ACTIVE      org.apache.servicemix.kernel.jaas.boot_1.1.0.SNAPSHOT
41      ACTIVE      org.springframework.core_2.5.6
42      ACTIVE      org.apache.xbean.xbean-spring_3.5.0
43      ACTIVE      org.apache.cxf.cxf-rt-transports-jbi_2.1.4
44      ACTIVE      org.eclipse.swordfish.compatibility.stax-api_1.0.0.SNAPSHOT
45      ACTIVE      org.apache.servicemix.nmr.api_1.0.0.SNAPSHOT
46      ACTIVE      com.springsource.org.objectweb.asm_3.1.0
47      ACTIVE      org.springframework.osgi.core_1.2.0.m2
48      ACTIVE      org.apache.servicemix.bundles.neethi_2.0.4.1
49      ACTIVE      com.springsource.org.jvnet.staxex_1.0.0
50      ACTIVE      servicemix-http_2009.1.0.SNAPSHOT
51      ACTIVE      org.springframework.osgi.extender_1.2.0.m2
52      RESOLVED    slf4j.jcl_1.5.5
                    Master=58
53      ACTIVE      com.springsource.javax.wsdl_1.6.1
54      ACTIVE      org.apache.servicemix.bundles.aopalliance_1.0.0.1
55      ACTIVE      servicemix-soap2_2009.1.0.SNAPSHOT
56      ACTIVE      org.apache.geronimo.specs.geronimo-servlet_2.5_spec_1.2.0
57      ACTIVE      org.apache.servicemix.nmr.osgi_1.0.0.SNAPSHOT
58      ACTIVE      slf4j.api_1.5.5
                    Fragments=52
59      ACTIVE      com.springsource.javax.resource_1.5.0
60      ACTIVE      org.apache.servicemix.bundles.jetty-bundle_6.1.14.1
61      ACTIVE      org.apache.cxf.cxf-rt-bindings-jbi_2.1.4
62      ACTIVE      org.apache.servicemix.bundles.xmlschema_1.4.2.1
63      ACTIVE      org.apache.servicemix.kernel.jaas.config_1.1.0.SNAPSHOT
64      ACTIVE      com.springsource.com.sun.xml.fastinfoset_1.2.2
65      ACTIVE      org.apache.servicemix.nmr.core_1.0.0.SNAPSHOT
66      ACTIVE      org.apache.servicemix.transaction_1.0.0.SNAPSHOT


-- 
Best regards,
Renat Zubairov

Reply via email to