Yes. But surprisingly, when I run my example top of Servicemix (Felix implementation), it works even if I don't mention it. The bundle containing the jars jaxb & jaxb-impl are deployed in this case too.
Regards, Charles Richard S. Hall wrote: > > Have you verified that your bundle is importing that package and that > the other contains and exports the package? > > -> richard > > cmoulliard wrote: >> Hi, >> >> I have a class not found exception generated during the launch of a Camel >> + >> Spring DM bundle in Felix. The bundle tell that the following class is >> missing : com.sun.xml.bind.v2.ContextFactory >> >> -> 2008-06-13 15:40:19,500; INFO [SpringOsgiExtenderThread-4] >> OsgiBundleXmlApplicationContext: Refreshing org.springfra >> [EMAIL PROTECTED]: >> display >> name [OsgiBundleXmlApplicationContext(bundl >> e=com.xpectis.ServiceOSGI, config=osgibundle:/META-INF/spring/*.xml)]; >> startup date [Fri Jun 13 15:40:19 CEST 2008]; roo >> t of context hierarchy >> 2008-06-13 15:40:19,531; INFO [SpringOsgiExtenderThread-4] >> XmlBeanDefinitionReader: Loading XML bean definitions from U >> RL [bundle://28.0:0/META-INF/spring/bundle-context-osgi.xml] >> 2008-06-13 15:40:19,640; INFO [SpringOsgiExtenderThread-4] >> XmlBeanDefinitionReader: Loading XML bean definitions from U >> RL [bundle://28.0:0/META-INF/spring/bundle-context.xml] >> 2008-06-13 15:40:19,671; INFO [SpringOsgiExtenderThread-4] >> XmlBeanDefinitionReader: Loading XML bean definitions from U >> RL [bundle://28.0:0/META-INF/spring/camelContext.xml] >> 2008-06-13 15:40:19,750; ERROR [SpringOsgiExtenderThread-4] >> OsgiBundleXmlApplicationContext: Pre refresh error >> org.springframework.beans.factory.BeanDefinitionStoreException: Failed to >> parse JAXB element: javax.xml.bind.JAXBExcepti >> on: Provider com.sun.xml.bind.v2.ContextFactory not found >> - with linked exception: >> [java.lang.ClassNotFoundException: com.sun.xml.bind.v2.ContextFactory not >> found from bundle [com.xpectis.ServiceOSGI]]; >> nested exception is 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 not >> found from bundle [com.xpectis.ServiceOSGI]] >> >> >> I have imported all the required bundles/jar files in Eclipse and the >> missing class is defined in the bundle >> >> org.apache.servicemix.bundles.jaxb-impl-2.0.3 (= 41) >> >> START LEVEL 1 >> ID State Level Name >> [ 0] [Active ] [ 0] System Bundle (1.0.4) >> [ 1] [Active ] [ 1] Apache Felix Shell Service (1.0.1) >> [ 2] [Active ] [ 1] Apache Felix Shell TUI (1.0.1) >> [ 3] [Active ] [ 1] Apache Felix Bundle Repository (1.0.3) >> [ 4] [Active ] [ 1] aopalliance.osgi (1.0.0.SNAPSHOT) >> [ 5] [Active ] [ 1] asm.osgi (2.2.3.SNAPSHOT) >> [ 6] [Active ] [ 1] backport-util-concurrent.osgi >> (3.1.0.SNAPSHOT) >> [ 7] [Active ] [ 1] frameworkbundle (4.0.6) >> [ 8] [Active ] [ 1] jcl104-over-slf4j (1.4.3) >> [ 9] [Active ] [ 1] junit.osgi (3.8.2.SNAPSHOT) >> [ 10] [Active ] [ 1] log4j.osgi (1.2.15.SNAPSHOT) >> [ 11] [Active ] [ 1] Apache Felix (1.0.4) >> [ 12] [Active ] [ 1] slf4j-api (1.4.3) >> [ 13] [Active ] [ 1] slf4j-log4j12 (1.4.3) >> [ 14] [Active ] [ 1] spring-aop (2.5.4) >> [ 15] [Active ] [ 1] spring-beans (2.5.4) >> [ 16] [Active ] [ 1] spring-context (2.5.4) >> [ 17] [Active ] [ 1] spring-core (2.5.4) >> [ 18] [Active ] [ 1] spring-test (2.5.4) >> [ 19] [Active ] [ 1] spring-osgi-core (1.1.0.m2) >> [ 20] [Active ] [ 1] spring-osgi-extender (1.1.0.m2) >> [ 21] [Active ] [ 1] spring-osgi-io (1.1.0.m2) >> [ 22] [Active ] [ 1] spring-osgi-mock (1.1.0.m2) >> [ 28] [Active ] [ 1] Camel Service 1.0.0 (1.0.0) >> [ 35] [Active ] [ 1] geronimo-activation_1.1_spec (1.0.2) >> [ 36] [Active ] [ 1] geronimo-stax-api_1.0_spec (1.0.1) >> [ 37] [Active ] [ 1] camel-core (1.3.0) >> [ 38] [Active ] [ 1] camel-spring (1.3.0) >> [ 39] [Active ] [ 1] camel-osgi (1.3.0) >> [ 40] [Active ] [ 1] Apache ServiceMix OSGI Common Bundles: >> jaxb-api >> (4.0.0.m1) >> [ 41] [Active ] [ 1] Apache ServiceMix OSGI Common Bundles: >> jaxb-impl (4.0.0.m1) >> [ 42] [Active ] [ 1] spring-tx (2.5.4) >> >> Strangely, my code works in ServiceMix 4 osgi server (which is based on >> Felix) but not in Felix ? >> >> Charles >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Class-not-found-exception-%3A-com.sun.xml.bind.v2.ContextFactory-%21%21%21-tp17823816p17859439.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

