Hi,

in etc/jre.properties, jre-10/11 are the same as jre-9.

The javax.xml.ws* packages are coming for the JRE/JDK (it's what system
bundle means).

What's the exact Java version you are using ?

Regards
JB

On 14/09/2018 15:17, Lukasz Lech wrote:
> Hello,
> 
>  
> 
> After starting my app in Karaf 4.2.1  with Java 10 I’m getting errors:
> 
>  
> 
> java.lang.ClassNotFoundException: javax.xml.ws.Service
> 
>          at java.net.URLClassLoader.findClass(URLClassLoader.java:466)
> ~[?:?]
> 
>          at java.lang.ClassLoader.loadClass(ClassLoader.java:566) ~[?:?]
> 
>          at java.lang.ClassLoader.loadClass(ClassLoader.java:499) ~[?:?]
> 
>          at
> org.apache.felix.framework.ExtensionManager$ExtensionManagerWiring.getClassByDelegation(ExtensionManager.java:940)
> ~[?:?]
> 
>          at
> org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1660)
> ~[?:?]
> 
>          at
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1590)
> ~[?:?]
> 
>          at
> org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
> ~[?:?]
> 
>          at
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
> ~[?:?]
> 
>          at java.lang.ClassLoader.loadClass(ClassLoader.java:499) ~[?:?]
> 
> I’ve checked what imports the bundle that have triggered this error, and
> it imports javax.xml.ws from System bundle (0):
> 
>  
> 
> javax.xml,version=0.0.0 from org.apache.felix.framework (0)
> <http://lx-entw3:8192/system/console/bundles/0> -- Overwritten by Boot
> Delegation
> javax.xml.bind,version=2.2.1 from org.apache.felix.framework (0)
> <http://lx-entw3:8192/system/console/bundles/0>
> javax.xml.namespace,version=0.0.0 from org.apache.felix.framework (0)
> <http://lx-entw3:8192/system/console/bundles/0>
> javax.xml.parsers,version=0.0.0 from org.apache.felix.framework (0)
> <http://lx-entw3:8192/system/console/bundles/0>
> javax.xml.stream,version=1.2.0 from org.apache.felix.framework (0)
> <http://lx-entw3:8192/system/console/bundles/0>
> javax.xml.stream.events,version=1.2.0 from org.apache.felix.framework
> (0) <http://lx-entw3:8192/system/console/bundles/0>
> javax.xml.transform,version=0.0.0 from org.apache.felix.framework (0)
> <http://lx-entw3:8192/system/console/bundles/0>
> javax.xml.transform.stream,version=0.0.0 from org.apache.felix.framework
> (0) <http://lx-entw3:8192/system/console/bundles/0>
> javax.xml.validation,version=0.0.0 from org.apache.felix.framework (0)
> <http://lx-entw3:8192/system/console/bundles/0>
> javax.xml.ws,version=2.2.0 from org.apache.felix.framework (0)
> <http://lx-entw3:8192/system/console/bundles/0>
> 
>  
> 
> What do I need to do to use JAX-WS in Karaf 4.2.1 with JDK 10? Is the
> import of javax.xml.ws. packages from system bundle OK?
> 
> I suppose it might be tricky to get the same set of features working
> with JDK 8 and 10, but in case of JAX-WS I haven’t even found the
> boundles with JAX-WS that I can install. Jaxws-rt bundles from Maven
> Repository that I’ve found are not OSGi bundles…
> 
>  
> 
> Best regards,
> 
> Lukasz Lech
> 
>  
> 
>  
> 
>  
> 

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to