Publish JAX-WS endpoint with embedded Jetty 7

前端 未结 3 1827
日久生厌
日久生厌 2021-02-06 05:54

Can anybody help with this?

I want to use an embedded Jetty 7 as Endpoint. This is what I tried:

public class MiniTestJetty {

@WebService(targetNamespac         


        
3条回答
  •  甜味超标
    2021-02-06 06:29

    All what is necessary seems to be

    System.setProperty("com.sun.net.httpserver.HttpServerProvider", "org.mortbay.jetty.j2se6.JettyHttpServerProvider");
    

    The current contrib code from jetty-contrib/org/mortgay/jetty/j2se6 is not ready yet for Jetty 7. That's all.

提交回复
热议问题