CXF jaxws endpoint relative publish address

前端 未结 1 1089
春和景丽
春和景丽 2021-02-15 10:52

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

1条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-15 11:29

    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)
提交回复
热议问题