[
https://issues.apache.org/jira/browse/SM-4310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17057639#comment-17057639
]
Simon Wimmesberger commented on SM-4310:
----------------------------------------
Hi [~ffang],
I have tried the SNAPSHOT - the NoSuchMethodError disappeared and OsgiLocator
lookup works as expected.
Unfortunately the jaxb-runtime-2.3.2_1.jar is still not picked up by the
OsgiLocator (which searches for META-INF/services/* files). It seems that the
"javax.xml.bind.JAXBContext" file is missing in the jaxb-runtime release. In
the "old" "org.apache.servicemix.bundles.jaxb-impl-2.2.11_1" bundle the service
file is present so it seems that it somehow got lost.
Also in the wrapped
[jaxb-runtime-2.3.2.jar|https://repo1.maven.org/maven2/org/glassfish/jaxb/jaxb-runtime/2.3.2/jaxb-runtime-2.3.2.jar]
the service file is still present.
Best Regards,
Simon
> Jaxb-API-2.3 has missing method
> -------------------------------
>
> Key: SM-4310
> URL: https://issues.apache.org/jira/browse/SM-4310
> Project: ServiceMix
> Issue Type: Bug
> Components: specs
> Environment: 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.
> Reporter: Veselin
> Assignee: Freeman Yue Fang
> Priority: Blocker
> Attachments:
> org.apache.servicemix.specs.jaxb-api-2.3-2.3_3-SNAPSHOT.jar
>
>
> 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]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)