Re: [equinox-dev] JAXB with Java 11 in OSGi

2021-01-13 Thread Lars Vogel
Hi Raymond, As a late follow-up, great news is that recent developments in Eclipse and Tycho made the consumption of Maven artifacts possible via the target platform. See https://xn--lubisoft-0za.gmbh/en/articles/using-maven-artifacts-in-pde-rcp-and-tycho-builds/ or

Re: [equinox-dev] JAXB with Java 11 in OSGi

2020-08-03 Thread Lars Vogel
a. > > Regards, > > Mark > > > At some point you will reach > > Am 01.08.20 um 14:53 schrieb Lars Vogel: > > Thanks, Mark > > Mark Hoffmann schrieb am Fr., 31. Juli 2020, 20:49: >> >> Hi Lars, >> >> I will take a look into it over the

Re: [equinox-dev] JAXB with Java 11 in OSGi

2020-08-02 Thread Mark Hoffmann
Mark Ursprüngliche Nachricht Von: Lars Vogel mailto:lars.vo...@vogella.com>> Datum: 31.07.20 13:49 (GMT+01:00) An: Equinox development mailing list mailto:equinox-dev@eclipse.org>> Betreff: Re: [equinox-dev] JAXB with Java 11 in OSGi Hi Neil, Dmytro and

Re: [equinox-dev] JAXB with Java 11 in OSGi

2020-08-01 Thread Mark Hoffmann
Or you provide the class loader as parameter, when you create the JaxbContext. Mark Ursprüngliche Nachricht Von: Tom Schindl Datum: 31.07.20 21:28 (GMT+01:00) An: equinox-dev@eclipse.org Betreff: Re: [equinox-dev] JAXB with Java 11 in OSGi IIRC you need to set the thread

Re: [equinox-dev] JAXB with Java 11 in OSGi

2020-07-31 Thread Tom Schindl
IIRC you need to set the thread-context-classloader! Try that: ---8<--- ClassLoader cl = Thread.currentThread().getContextClassLoader(); try { ClassLoader tmp = Bookstore.class.getClassLoader() Thread.currentThread().setContextClassLoader(tmp); context =

Re: [equinox-dev] JAXB with Java 11 in OSGi

2020-07-31 Thread Raymond Auge
On Fri., Jul. 31, 2020, 5:56 a.m. Lars Vogel, wrote: > Hi Raymond, > > Thanks for the info. > > How should I consume aries-jax-rs-whiteboard in my RCP application? Is > there an p2 update site available? > Sigh... No, there is no p2 repo  It's sad that RCP (I'm guessing maven+Tycho) aps need

Re: [equinox-dev] JAXB with Java 11 in OSGi

2020-07-31 Thread Lars Vogel
Hi Raymond, Thanks for the info. How should I consume aries-jax-rs-whiteboard in my RCP application? Is there an p2 update site available? Best regards, Lars On Tue, Jul 28, 2020 at 3:46 PM Raymond Auge wrote: > > Aries JAX-RS whiteboard [1] has jaxb working on all java versions. > > [1]

Re: [equinox-dev] JAXB with Java 11 in OSGi

2020-07-28 Thread Mark Hoffmann
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

Re: [equinox-dev] JAXB with Java 11 in OSGi

2020-07-28 Thread Raymond Auge
Aries JAX-RS whiteboard [1] has jaxb working on all java versions. [1] https://github.com/apache/aries-jax-rs-whiteboard On Tue., Jul. 28, 2020, 9:07 a.m. Neil Bartlett, wrote: > Hi Lars, > > Dmytro is correct, the jaxb-api and javax.activation bundles are required > to provide the JAXB API on

Re: [equinox-dev] JAXB with Java 11 in OSGi

2020-07-28 Thread 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

Re: [equinox-dev] JAXB with Java 11 in OSGi

2020-07-28 Thread Dmytro Pishchukhin
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 wrote: > Friends of OSGi, > > Is anyone aware of an example / description of how to use

Re: [equinox-dev] JAXB with Java 11 in OSGi

2020-07-28 Thread Thomas Watson
I would try the osgi-dev mailing list: https://mail.osgi.org/mailman/listinfo/osgi-dev Tom      - Original message -From: Lars Vogel Sent by: equinox-dev-boun...@eclipse.orgTo: Equinox development mailing list Cc:Subject: [EXTERNAL] [equinox-dev] JAXB with Java 11 in OSGiDate: Tue, Jul 28,

[equinox-dev] JAXB with Java 11 in OSGi

2020-07-28 Thread Lars Vogel
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