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  .



你可能感兴趣的:(Java)