package br.com.caelum.estoque.ws;
import javax.xml.ws.Endpoint;
public class PublicaWebService {
public static void main(String[] args) {
EstoqueWS service = new EstoqueWS();
String url = "http//localhost:9090/estoquews";
Endpoint.publish(url, service);
}
}
segue o erro:
out. 08, 2021 3:20:19 PM com.sun.xml.ws.model.Injector SEVERE: null java.security.PrivilegedActionException: java.lang.NoSuchMethodException: sun.misc.Unsafe.defineClass(java.lang.String,[B,int,int,java.lang.ClassLoader,java.security.ProtectionDomain) at java.base/java.security.AccessController.doPrivileged(AccessController.java:558)