Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
None
-
None
-
I am running the osgi container felix with:
org.apache.servicemix.specs.activation-api-1.2.1-1.2.1_1.jar
org.apache.servicemix.specs.jaxb-api-2.3-2.3_2.jar
org.apache.servicemix.specs.stax-api-1.0-2.9.0.jarI inspected servicemix.specs.jaxb-api ant there is indeed no method ServiceLoaderUtil.lookupUsingOSGiServiceLoader() in there.
I am running the osgi container felix with: org.apache.servicemix.specs.activation-api-1.2.1-1.2.1_1.jar org.apache.servicemix.specs.jaxb-api-2.3-2.3_2.jar org.apache.servicemix.specs.stax-api-1.0-2.9.0.jar I inspected servicemix.specs.jaxb-api ant there is indeed no method ServiceLoaderUtil.lookupUsingOSGiServiceLoader() in there.
Description
When I use org.apache.servicemix.specs.jaxb-api-2.3-2.3_2.jar and call
JAXBContext.newInstance(Class) I get following exception:
java.lang.NoSuchMethodError: javax.xml.bind.ServiceLoaderUtil.lookupUsingOSGiServiceLoader(Ljava/lang/String;Ljava/util/logging/Logger;)Ljava/lang/Object;java.lang.NoSuchMethodError: javax.xml.bind.ServiceLoaderUtil.lookupUsingOSGiServiceLoader(Ljava/lang/String;Ljava/util/logging/Logger;)Ljava/lang/Object; at javax.xml.bind.ContextFinder.find(ContextFinder.java:413) ~[?:1.8.0_161] at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:721) ~[?:1.8.0_161] at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:662) ~[?:1.8.0_161]