Sure, we definitely need better documentation.

Thanks JB!
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat



> On Sep 14, 2018, at 10:08 PM, Jean-Baptiste Onofré <[email protected]> wrote:
> 
> You are right, I was in the jre-8 section of etc/jre.properties (misread).
> 
> If you don't mind, I will add a note in the documentation, as some users
> might be "lost".
> 
> Regards
> JB
> 
> On 14/09/2018 16:06, Freeman Fang wrote:
>> Hi JB,
>> 
>> Those packages are already removed from Karaf 4.2.1(etc/jre.properties)
>> when using JDK9,10,11.
>> 
>> Not sure if we should install those spec bundles in Karaf by default,
>> IMO, Karaf should be a small core, the smaller, the better. Customer can
>> build customised kit with our powerful karaf-maven-plugin anyway.
>> 
>> Cheers
>> -------------
>> Freeman(Yue) Fang
>> 
>> Red Hat, Inc. 
>> FuseSource is now part of Red Hat
>> 
>> 
>> 
>>> On Sep 14, 2018, at 9:58 PM, Jean-Baptiste Onofré <[email protected]
>>> <mailto:[email protected]>> wrote:
>>> 
>>> Good point Freeman.
>>> 
>>> In that case, what do you think about removing these package from
>>> jre.properties and let the user install the spec bundle ?
>>> Maybe, we can also do it by default in the Karaf standard distribution.
>>> 
>>> Thoughts ?
>>> 
>>> Regards
>>> JB
>>> 
>>> On 14/09/2018 15:51, Freeman Fang wrote:
>>>> Hi,
>>>> 
>>>> For Java 9,10,11, we handle those versions in same way. Since several EE
>>>> related jigsaw modules including javax.xml.ws will be removed from
>>>> Java11 eventually, override it and let system bundle 0 expose those
>>>> packages makes less sense IMO,  you need install jax-ws api bundle by
>>>> yourself.
>>>> 
>>>> You can use servicemix wrapped one, just like we do for a long time
>>>> in CXF
>>>> 
>>>> install
>>>> -s 
>>>> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/2.9.0
>>>> 
>>>> 
>>>> 
>>>> -------------
>>>> Freeman(Yue) Fang
>>>> 
>>>> Red Hat, Inc. 
>>>> FuseSource is now part of Red Hat
>>>> 
>>>> 
>>>> 
>>>>> On Sep 14, 2018, at 9:17 PM, Lukasz Lech <[email protected]
>>>>> <mailto:[email protected]>
>>>>> <mailto:[email protected]>> 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] <mailto:[email protected]>
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>> 
> 
> -- 
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com

Reply via email to