O jaxws-api eu já tinha adicionado, mas realmente estava faltando o jaxws-rt.
Depois de adicionar e rodar obtive um novo erro:
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/stream/buffer/XMLStreamBuffer
at com.sun.xml.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:108)
at javax.xml.ws.Endpoint.publish(Endpoint.java:254)
at br.com.caelum.estoque.ws.PublicaWebService.main(PublicaWebService.java:12)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.stream.buffer.XMLStreamBuffer
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 3 more
Após isso adicionei streambuffer-2.0.0-M2.jar e na seguencia obtive o seguinte erro:
Exception in thread "main" java.lang.Error: javax.xml.soap.SOAPException: Unable to create SAAJ meta-factory: Provider com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl not found
at com.sun.xml.ws.api.SOAPVersion.<init>(SOAPVersion.java:163)
at com.sun.xml.ws.api.SOAPVersion.<clinit>(SOAPVersion.java:69)
at com.sun.xml.ws.api.BindingID.<clinit>(BindingID.java:312)
at com.sun.xml.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:109)
at javax.xml.ws.Endpoint.publish(Endpoint.java:254)
at br.com.caelum.estoque.ws.PublicaWebService.main(PublicaWebService.java:12)
Caused by: javax.xml.soap.SOAPException: Unable to create SAAJ meta-factory: Provider com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl not found
at javax.xml.soap.SAAJMetaFactory.getInstance(SAAJMetaFactory.java:112)
at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:150)
at com.sun.xml.ws.api.SOAPVersion.<init>(SOAPVersion.java:160)
... 5 more
Após isso tentei saaj-api-1.3.5.jar (javax.xml.soap), mas o mesmo erro permaneceu, então removi essa e adicionei saaj-impl-2.0.0-M1.jar (com.sun.xml.messaging.saaj), o mesmo erro permaneceu e só mudou quando eu adicionei esse mesmo jar na versão saaj-impl-1.5.1.jar e com isso tive esse último erro:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.sun.xml.ws.model.Injector (file:/C:/Users/Atila-Pc/Documents/eclipse-workspace-2/estoquews/lib/jaxws-rt-2.3.2.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.sun.xml.ws.model.Injector
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/ws/policy/PolicyException
at com.sun.xml.ws.wsdl.writer.WSDLGenerator.<init>(WSDLGenerator.java:218)
at com.sun.xml.ws.db.DatabindingImpl.generateWSDL(DatabindingImpl.java:228)
at com.sun.xml.ws.server.EndpointFactory.generateWSDL(EndpointFactory.java:660)
at com.sun.xml.ws.server.EndpointFactory.create(EndpointFactory.java:278)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:134)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:548)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:530)
at com.sun.xml.ws.transport.http.server.EndpointImpl.createEndpoint(EndpointImpl.java:304)
at com.sun.xml.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:217)
at com.sun.xml.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:111)
at javax.xml.ws.Endpoint.publish(Endpoint.java:254)
at br.com.caelum.estoque.ws.PublicaWebService.main(PublicaWebService.java:12)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.ws.policy.PolicyException
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 12 more
Após isso eu parei de tentar procurar dependências, porque provavelmente devo estar fazendo alguma coisa errada.
Caso facilite, no link abaixo tem o projeto inteiro exatamente como ele ficou quando fiz essas alterações citadas acima. Aqui estou usando o java 11 e eclipse.
https://drive.google.com/drive/folders/1SjdVfds_k1HWJDo_Ecbgu-YcltjI_wmn?usp=sharing