1. 程式人生 > >WebService放釋出服務之後訪問報錯org.apache.cxf.interceptor.Fault: No such operation:

WebService放釋出服務之後訪問報錯org.apache.cxf.interceptor.Fault: No such operation:

寫了一個Webservice之後釋出正常

訪問http://localhost:8080/HelloWolrd(我這邊是叫HelloWorld)出錯資訊:

org.apache.cxf.interceptor.Fault: No such operation:  (HTTP GET PATH_INFO: /HelloWrold)
 at org.apache.cxf.interceptor.URIMappingInterceptor.handleMessage(URIMappingInterceptor.java:88)
 at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
 at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:122)
 at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:344)
 at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:310)
 at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:943)
 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:879)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
 at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
 at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
 at org.eclipse.jetty.server.Server.handle(Server.java:349)
 at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
 at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919)
 at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582)
 at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
 at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
 at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
 at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
 at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
 at java.lang.Thread.run(Thread.java:745)

解決方法:訪問地址錯誤,訪問地址改為http://localhost:8080/HelloWolrd?wsdl  .