You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by cmoulliard <cm...@gmail.com> on 2008/06/13 15:47:29 UTC
Class not found exception : com.sun.xml.bind.v2.ContextFactory !!!
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
mework.osgi.context.support.OsgiBundleXmlApplicationContext@111bfbc: 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
--
View this message in context: http://www.nabble.com/Class-not-found-exception-%3A-com.sun.xml.bind.v2.ContextFactory-%21%21%21-tp17823816p17823816.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Class not found exception : com.sun.xml.bind.v2.ContextFactory
!!!
Posted by cmoulliard <cm...@gmail.com>.
here are the packages available for com.sun.xml.bind.v2 :
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41): com.sun.xml.bind.v2;
version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41): com.sun.xml.txw2;
version=2.0.3
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.v2.model.annotation; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.unmarshaller; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.api.impl; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.txw2.output; version=2.0.3
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.v2.util; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.v2.runtime.unmarshaller; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.marshaller; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.v2.model.runtime; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.v2.runtime.reflect.opt; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.v2.schemagen.xmlschema; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41): com.sun.istack;
version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41): com.sun.xml.bind;
version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.v2.model.core; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.v2.runtime.output; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.v2.bytecode; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41): com.sun.xml.bind.api;
version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.v2.model.impl; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.v2.model.nav; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.txw2.annotation; version=2.0.3
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.v2.schemagen; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.util; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.v2.runtime.reflect; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.v2.runtime; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.annotation; version=0.0.0
Apache ServiceMix OSGI Common Bundles: jaxb-impl (41):
com.sun.xml.bind.v2.runtime.property; version=0.0.0
Karl Pauls wrote:
>
> Just type it in the shell e.g.,
>
>> packages
>
> that should give you a list of available packages. Furthermore, can
> you send the manifest of the failing bundle as well?
>
> regards,
>
> Karl
>
> On Mon, Jun 16, 2008 at 11:47 AM, cmoulliard <cm...@gmail.com> wrote:
>>
>> You are right. Bundle 11 is strange. I have removed it and test it. The
>> error
>> is still there.
>>
>> What do you mean by "the output of a call to packages in the shell?" ?
>>
>> Regards,
>>
>> Charles
>>
>>
>> Karl Pauls wrote:
>>>
>>> can you give us the output of a call to packages in the shell?
>>> Furthermore, bundle 11 looks strange to me...
>>>
>>> regards,
>>>
>>> Karl
>>>
>>> p.s.: can you make your set-up available somewhere so that we can have
>>> a look at it?
>>>
>>> On Mon, Jun 16, 2008 at 9:40 AM, cmoulliard <cm...@gmail.com>
>>> wrote:
>>>>
>>>> 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
>>>>>> mework.osgi.context.support.OsgiBundleXmlApplicationContext@111bfbc:
>>>>>> 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: users-unsubscribe@felix.apache.org
>>>>> For additional commands, e-mail: users-help@felix.apache.org
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> 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: users-unsubscribe@felix.apache.org
>>>> For additional commands, e-mail: users-help@felix.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Karl Pauls
>>> karlpauls@gmail.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Class-not-found-exception-%3A-com.sun.xml.bind.v2.ContextFactory-%21%21%21-tp17823816p17861168.html
>> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>
>
>
> --
> Karl Pauls
> karlpauls@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Class-not-found-exception-%3A-com.sun.xml.bind.v2.ContextFactory-%21%21%21-tp17823816p17861667.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Class not found exception : com.sun.xml.bind.v2.ContextFactory !!!
Posted by Karl Pauls <ka...@gmail.com>.
Just type it in the shell e.g.,
> packages
that should give you a list of available packages. Furthermore, can
you send the manifest of the failing bundle as well?
regards,
Karl
On Mon, Jun 16, 2008 at 11:47 AM, cmoulliard <cm...@gmail.com> wrote:
>
> You are right. Bundle 11 is strange. I have removed it and test it. The error
> is still there.
>
> What do you mean by "the output of a call to packages in the shell?" ?
>
> Regards,
>
> Charles
>
>
> Karl Pauls wrote:
>>
>> can you give us the output of a call to packages in the shell?
>> Furthermore, bundle 11 looks strange to me...
>>
>> regards,
>>
>> Karl
>>
>> p.s.: can you make your set-up available somewhere so that we can have
>> a look at it?
>>
>> On Mon, Jun 16, 2008 at 9:40 AM, cmoulliard <cm...@gmail.com> wrote:
>>>
>>> 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
>>>>> mework.osgi.context.support.OsgiBundleXmlApplicationContext@111bfbc:
>>>>> 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: users-unsubscribe@felix.apache.org
>>>> For additional commands, e-mail: users-help@felix.apache.org
>>>>
>>>>
>>>>
>>>
>>> --
>>> 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: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Karl Pauls
>> karlpauls@gmail.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Class-not-found-exception-%3A-com.sun.xml.bind.v2.ContextFactory-%21%21%21-tp17823816p17861168.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
--
Karl Pauls
karlpauls@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Class not found exception : com.sun.xml.bind.v2.ContextFactory
!!!
Posted by cmoulliard <cm...@gmail.com>.
You are right. Bundle 11 is strange. I have removed it and test it. The error
is still there.
What do you mean by "the output of a call to packages in the shell?" ?
Regards,
Charles
Karl Pauls wrote:
>
> can you give us the output of a call to packages in the shell?
> Furthermore, bundle 11 looks strange to me...
>
> regards,
>
> Karl
>
> p.s.: can you make your set-up available somewhere so that we can have
> a look at it?
>
> On Mon, Jun 16, 2008 at 9:40 AM, cmoulliard <cm...@gmail.com> wrote:
>>
>> 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
>>>> mework.osgi.context.support.OsgiBundleXmlApplicationContext@111bfbc:
>>>> 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: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>>
>>>
>>>
>>
>> --
>> 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: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>
>
>
> --
> Karl Pauls
> karlpauls@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Class-not-found-exception-%3A-com.sun.xml.bind.v2.ContextFactory-%21%21%21-tp17823816p17861168.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Class not found exception : com.sun.xml.bind.v2.ContextFactory !!!
Posted by Karl Pauls <ka...@gmail.com>.
can you give us the output of a call to packages in the shell?
Furthermore, bundle 11 looks strange to me...
regards,
Karl
p.s.: can you make your set-up available somewhere so that we can have
a look at it?
On Mon, Jun 16, 2008 at 9:40 AM, cmoulliard <cm...@gmail.com> wrote:
>
> 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
>>> mework.osgi.context.support.OsgiBundleXmlApplicationContext@111bfbc:
>>> 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: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>>
>
> --
> 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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
--
Karl Pauls
karlpauls@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Class not found exception : com.sun.xml.bind.v2.ContextFactory
!!!
Posted by cmoulliard <cm...@gmail.com>.
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
>> mework.osgi.context.support.OsgiBundleXmlApplicationContext@111bfbc:
>> 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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
>
--
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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Class not found exception : com.sun.xml.bind.v2.ContextFactory
!!!
Posted by "Richard S. Hall" <he...@ungoverned.org>.
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
> mework.osgi.context.support.OsgiBundleXmlApplicationContext@111bfbc: 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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org