Hi Lars, I will take a look into it over the weekend.
Regards, Mark
-------- Ursprüngliche Nachricht --------Von: Lars Vogel 
<[email protected]> Datum: 31.07.20  13:49  (GMT+01:00) An: Equinox 
development mailing list <[email protected]> Betreff: Re: [equinox-dev] 
JAXB with Java 11 in OSGi Hi Neil, Dmytro and Mark,I tried this but I'm still 
getting the ClassNotFound Exception.I uploaded a tiny example 
here:https://github.com/vogellacompany/eclipsercp-jaxb-java11In case you want 
to test, clone the repo, import the example intoEclipse and activate the 
jaxbtarget.target definition and start theapplication via the 
com.vogella.jaxb.product.Press the button called "Trigger JAXB"Results in 
ClassNotFoundExceptionCaused by: 
java.lang.ClassNotFoundException:org.eclipse.persistence.jaxb.JAXBContextFactory
 
atjava.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)at
 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)at
 java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) 
atorg.eclipse.osgi.internal.framework.ContextFinder.loadClass(ContextFinder.java:147)at
 java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) 
atjavax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:480) 
atjavax.xml.bind.ContextFinder.newInstance(ContextFinder.java:184) … 29moreBest 
regards, LarsOn Tue, Jul 28, 2020 at 3:07 PM Neil Bartlett 
<[email protected]> wrote:>> Hi Lars,>> Dmytro is correct, the jaxb-api and 
javax.activation bundles are required to provide the JAXB API on Java 11. You 
will also need an implementation of the API... the org.eclipse.persistence.core 
and org.eclipse.persistence.moxy bundles from EclipseLink provide this.>> I 
have had JAXB working with RCP for some time on J11 but unfortunately cannot 
share the code because it is commercial.>> Neil>> On Tue, 28 Jul 2020 at 14:03, 
Dmytro Pishchukhin <[email protected]> wrote:>>>> Hi Lars,>>>> Try 
to use 2 bundles to resolve JAXB packages:>> - jaxb-api 
(javax.xml.bind:jaxb-api:2.3.1)>> - javax.activation 
(com.sun.activation:javax.activation:1.2.0)>>>> On Tue, Jul 28, 2020 at 1:56 PM 
Lars Vogel <[email protected]> wrote:>>>>>> Friends of OSGi,>>>>>> Is 
anyone aware of an example / description of how to use JAXB with>>> Java 11 in 
OSGI (Eclipse RCP)? If yes, please share it with me.>>>>>> The examples I found 
for Java 11 are not inside OSGi and fail for me.>>>>>> Best regards, 
Lars>>>>>>>>>>>> -->>> Eclipse Platform project co-lead>>> CEO vogella 
GmbH>>>>>> Haindaalwisch 17a, 22395 Hamburg>>> Amtsgericht Hamburg: HRB 
127058>>> Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel>>> USt-IdNr.: 
DE284122352>>> Fax (040) 5247 6322, Email: [email protected], Web: 
http://www.vogella.com>>> _______________________________________________>>> 
equinox-dev mailing list>>> [email protected]>>> To unsubscribe from this 
list, visit https://www.eclipse.org/mailman/listinfo/equinox-dev>>>>>>>> -->> 
Best regards,>> Dmytro Pishchukhin>> 
_______________________________________________>> equinox-dev mailing list>> 
[email protected]>> To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/equinox-dev>> 
_______________________________________________> equinox-dev mailing list> 
[email protected]> To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/equinox-dev-- Eclipse Platform project 
co-leadCEO vogella GmbHHaindaalwisch 17a, 22395 HamburgAmtsgericht Hamburg: HRB 
127058Geschäftsführer: Lars Vogel, Jennifer Nerlich de VogelUSt-IdNr.: 
DE284122352Fax (040) 5247 6322, Email: [email protected], Web: 
http://www.vogella.comOn Tue, Jul 28, 2020 at 9:11 PM Mark Hoffmann 
<[email protected]> wrote:>> Hi Lars,>> For EclipseLink you should also 
place a jaxb.properties file in the package where the entites are located or 
otherwise/better use the>> 
-Djavax.xml.bind.JAXBContextFactory=org.eclipse.persistence.jaxb.JAXBContextFactory>>
 System Property>> Am 28.07.20 um 15:07 schrieb Neil Bartlett:>> Hi Lars,>> 
Dmytro is correct, the jaxb-api and javax.activation bundles are required to 
provide the JAXB API on Java 11. You will also need an implementation of the 
API... the org.eclipse.persistence.core and org.eclipse.persistence.moxy 
bundles from EclipseLink provide this.>> I have had JAXB working with RCP for 
some time on J11 but unfortunately cannot share the code because it is 
commercial.>> Neil>> On Tue, 28 Jul 2020 at 14:03, Dmytro Pishchukhin 
<[email protected]> wrote:>>>> Hi Lars,>>>> Try to use 2 bundles to 
resolve JAXB packages:>> - jaxb-api (javax.xml.bind:jaxb-api:2.3.1)>> - 
javax.activation (com.sun.activation:javax.activation:1.2.0)>>>> On Tue, Jul 
28, 2020 at 1:56 PM Lars Vogel <[email protected]> wrote:>>>>>> Friends of 
OSGi,>>>>>> Is anyone aware of an example / description of how to use JAXB 
with>>> Java 11 in OSGI (Eclipse RCP)? If yes, please share it with me.>>>>>> 
The examples I found for Java 11 are not inside OSGi and fail for me.>>>>>> 
Best regards, Lars>>>>>>>>>>>> -->>> Eclipse Platform project co-lead>>> CEO 
vogella GmbH>>>>>> Haindaalwisch 17a, 22395 Hamburg>>> Amtsgericht Hamburg: HRB 
127058>>> Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel>>> USt-IdNr.: 
DE284122352>>> Fax (040) 5247 6322, Email: [email protected], Web: 
http://www.vogella.com>>> _______________________________________________>>> 
equinox-dev mailing list>>> [email protected]>>> To unsubscribe from this 
list, visit https://www.eclipse.org/mailman/listinfo/equinox-dev>>>>>>>> -->> 
Best regards,>> Dmytro Pishchukhin>> 
_______________________________________________>> equinox-dev mailing list>> 
[email protected]>> To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/equinox-dev>>> 
_______________________________________________> equinox-dev mailing list> 
[email protected]> To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/equinox-dev>> --> Mark Hoffmann>> 
E-Mail: [email protected]>> _______________________________________________> 
equinox-dev mailing list> [email protected]> To unsubscribe from this 
list, visit https://www.eclipse.org/mailman/listinfo/equinox-dev-- Eclipse 
Platform project co-leadCEO vogella GmbHHaindaalwisch 17a, 22395 
HamburgAmtsgericht Hamburg: HRB 127058Geschäftsführer: Lars Vogel, Jennifer 
Nerlich de VogelUSt-IdNr.: DE284122352Fax (040) 5247 6322, Email: 
[email protected], Web: http://www.vogella.com
_______________________________________________
equinox-dev mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to