karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Error with javax.xml.dataype
Date Fri, 01 Jul 2011 17:15:40 GMT
Do you use JAXB bundle or the one from the JDK ?

Regards
JB

On 07/01/2011 07:13 PM, Charles Moulliard wrote:
> That does not work what you suggest.
>
> On Fri, Jul 1, 2011 at 7:05 PM, Charles Moulliard<cmoulliard@gmail.com>  wrote:
>> cm.sun is added so I will try to remove xml.bind
>>
>> org.osgi.framework.bootdelegation=org.apache.karaf.jaas.boot,sun.*,com.sun.*,javax.transaction,javax.transaction.*
>>
>>
>>
>> On Fri, Jul 1, 2011 at 6:30 PM, Andreas Pieber<anpieber@gmail.com>  wrote:
>>> One of two options:
>>>
>>> 1) Either you need to remove the xml.bind from your jre.properties
>>>
>>> or
>>>
>>> 2) You have to add com.sun... to your bootdelegation
>>>
>>> Kind regards,
>>> Andreas
>>>
>>> On Fri, Jul 1, 2011 at 6:09 PM, Charles Moulliard<cmoulliard@gmail.com>
 wrote:
>>>> Hi
>>>>
>>>> Does anybody knows how to avoid this error :
>>>>
>>>> Caused by: java.lang.LinkageError: loader constraint violation: when
>>>> resolving field "DATETIME" the class loader (instance of
>>>> org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5) of the
>>>> referring class, javax/xml/datatype/DatatypeConstants, and the class
>>>> loader (instance of<bootloader>) for the field's resolved type,
>>>> javax/xml/namespace/QName, have different Class objects for that type
>>>>         at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>(RuntimeBuiltinLeafInfoImpl.java:259)
>>>>         at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.<init>(RuntimeTypeInfoSetImpl.java:61)
>>>>         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:129)
>>>>         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:81)
>>>>         at com.sun.xml.bind.v2.model.impl.ModelBuilder.<init>(ModelBuilder.java:152)
>>>>         at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.<init>(RuntimeModelBuilder.java:89)
>>>>         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:456)
>>>>         at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:302)
>>>>         at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)
>>>>         at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
>>>>         at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:121)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>>>         at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:213)
>>>>         at javax.xml.bind.ContextFinder.find(ContextFinder.java:387)
>>>>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:618)
>>>>         at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:565)
>>>>         at org.apache.openejb.jee.JAXBContextFactory.newInstance(JAXBContextFactory.java:68)
>>>>
>>>>
>>>> on karaf 2.2.1
>>>>
>>>> Regards,
>>>> Charles Moulliard
>>>>
>>>> Apache Committer
>>>>
>>>> Blog : http://cmoulliard.blogspot.com
>>>> Twitter : http://twitter.com/cmoulliard
>>>> Linkedin : http://www.linkedin.com/in/charlesmoulliard
>>>> Skype: cmoulliard
>>>>
>>>
>>

Mime
View raw message