Hi Lars, this is simular related to Jaxb. I believe you will need a Frgament
for the jakarta.xml.ws-api that declares an Import to ProviderImplRegards,Mark
Hoffmann M.A. Dipl.-Betriebswirt (FH) CEO/CTO Phone: +49 3641 384 910 0
Mobile: +49 175 701 2201 E-Mail: [email protected] Web:
www.datainmotion.de Data In Motion Consulting GmbH Kahlaische Strasse 4 07745
Jena Germany Geschäftsführer/CEO Mark Hoffmann Jürgen Albert Jena HRB 513025
Steuernummer 162/107/05779 USt-Id DE310002614
-------- Ursprüngliche Nachricht --------Von: Lars Vogel
<[email protected]> Datum: 06.05.21 15:15 (GMT+01:00) An: Equinox
development mailing list <[email protected]> Betreff: [equinox-dev] OSGi
and javax.jws.WebService with Java 11 Hi,I'm trying to migrate an RCP client to
Java 11. All good so far onlythe webservice which was part of Java 8 refused to
start with ansun.xml.internal.ws.spi.ProviderImpl exception.Exception:Caused
by: javax.xml.ws.WebServiceException:
Providercom.sun.xml.internal.ws.spi.ProviderImpl not foundat
javax.xml.ws.spi.FactoryFinder$1.createException(FactoryFinder.java:61)at
javax.xml.ws.spi.FactoryFinder$1.createException(FactoryFinder.java:58)at
javax.xml.ws.spi.ServiceLoaderUtil.newInstance(ServiceLoaderUtil.java:103)at
javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:112)at
javax.xml.ws.spi.Provider.provider(Provider.java:96)at
javax.xml.ws.Endpoint.publish(Endpoint.java:254)at
eupen.rcp.core.handers.StartWebserviceHandler.execute(StartWebserviceHandler.java:15)at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at
java.base/java.lang.reflect.Method.invoke(Method.java:564)at
org.eclipse.e4.cExample:import javax.jws.WebMethod;import
javax.jws.WebService;@WebServicepublic class WebServiceExample { private
String message = new String("Hello, "); public void Hello() {} @WebMethod
public String sayHello(String name) { return message + name + ".";
}}And I start it via:----import
org.eclipse.e4.core.di.annotations.Execute;import javax.xml.ws.Endpoint;public
class StartWebserviceHandler {@Executepublic void execute() { String url =
"http://localhost:4434/miniwebservice"; Endpoint.publish( url, new
WebServiceExample() );}}---------I started to add libraries from Maven central
via the new PDE / M2eintegration but it seems that this pull and endless list
ofdependencies into the classpath.Is anyone aware of a working example using
such a Webservice insideOSGi with Java 11 or higher?Best regards, Lars--
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 [email protected] 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