不支持基于https协议的地址-javax.xml.ws.Endpoint

不支持基于https协议的地址-javax.xml.ws.Endpoint,java,web-services,https,Java,Web Services,Https,我正在尝试创建一个独立于web服务或任何其他应用程序服务器的Tomcat,可以很好地使用http,但是使用https我得到了下面的错误。似乎所有文档都与客户机示例或应用程序服务器示例相关。 链接到一个好的教程将是伟大的 谢谢 Exception in thread "main" java.lang.IllegalArgumentException: https protocol based address is not supported at com.sun.xml.inter

我正在尝试创建一个独立于web服务或任何其他应用程序服务器的Tomcat,可以很好地使用http,但是使用https我得到了下面的错误。似乎所有文档都与客户机示例或应用程序服务器示例相关。 链接到一个好的教程将是伟大的

谢谢

Exception in thread "main" java.lang.IllegalArgumentException: https protocol based address is not supported   
     at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:149)           
     at com.sun.xml.internal.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:107)            

     at javax.xml.ws.Endpoint.publish(Endpoint.java:181)    

如果你用了

Endpoint.publish("https://localhost:9999/abc", new YourEndpoint());
发布您的web服务端点,并获得指定的异常-看起来内部JDK web服务器不支持HTTPS。

有关更多信息,请参阅此处:。
此页面包含与Jetty相关的信息,但也很有用:。

如果您不想弄乱“笨重”的Tomcat服务器,可以使用轻量级的工具。
这些页面有很好的示例:和。

它并没有回答根本不使用任何应用服务器的问题,但希望它能有所帮助