CXF jaxws endpoint relative publish address

前端 未结 2 1972
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-15 10:38

I am having a lot of difficulty trying to use a relative publish address in my CXF web service endpoint configuration.

I have a simple Java-first JAX-WS project with th

相关标签:
2条回答
  • 2021-02-15 11:22

    The answer was, of course, simple (banging-head-on-desk simple, that is). In my cxf bean definitions, i was not importing the "cxf-servlet.xml" file as seen here http://cxf.apache.org/docs/servlet-transport.html. If this file is not imported, cxf assumes it should use the embedded jetty instance instead of my CXF servlet. My guess is the jetty instance only works with endpoints specifying an absolute publish address.

    0 讨论(0)
  • 2021-02-15 11:29

    Shouldn't it be

    address="/HelloWorldService"
    

    ?

    0 讨论(0)
提交回复
热议问题