cxf新手问题: Caused by: org.apache.cxf.transport.http.HTTPException: HTTP respon
有点崩溃,看到很多人遇到这个问题,可以都有下文;应该是Service 有什么问题;可是找不出来,也不知道去哪里找;关键的问题是,前一次次编译运行好好地,改了点东西,与service 关系不大,就出这问题了;再把后来的改动去掉,还是一样的错,高手可以帮忙看看吗?到底应该从哪里入手去查??
多谢!
Apr 07, 2012 6:28:43 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass
INFO: Creating Service {http://webservices.service.g3.bcsis.com/}G3HttpServiceIntfService from class com.bcsis.g3.service.webservices.G3HttpServiceIntf
Apr 07, 2012 6:28:46 PM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
WARNING: Interceptor for {http://webservices.service.g3.bcsis.com/}G3HttpServiceIntfService#{http://webservices.service.g3.bcsis.com/}executeService has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:533)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:88)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
at $Proxy34.executeService(Unknown Source)
at com.bcsis.g3.orchestration.comm.webservice.client.ReportClient.main(ReportClient.java:48)
Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '404: Not Found' when communicating with http://localhost:8080/G3_Services/services/G3Service
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1555)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1494)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1402)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:649)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
... 9 more
Exception in thread "main" javax.xml.ws.WebServiceException: Could not send Message.
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:145)
at $Proxy34.executeService(Unknown Source)
at com.bcsis.g3.orchestration.comm.webservice.client.ReportClient.main(ReportClient.java:48)
Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '404: Not Found' when communicating with http://localhost:8080/G3_Services/services/G3Service
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1555)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1494)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1402)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:649)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:533)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:88)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)
... 2 more --------------------编程问答-------------------- cxf : 2.5.2
server :VMware vFabric tc Server v2.5, v2.6
刚才试着重新checkout codes(在另外一个同事机器上运行正常), 还是一样的问题,deployment 配置相同
--------------------编程问答-------------------- 顶~~~ --------------------编程问答-------------------- 呼唤高手~~ --------------------编程问答-------------------- 请问你的问题解决了吗?我也遇到了一样的问题,能帮帮忙吗 --------------------编程问答-------------------- 很久了,具体忘记了,总之就是service 没有up,还是要看看service 本身的问题。
查看一下classpath 什么的。 --------------------编程问答-------------------- 配置文件
有没有注解,有的话扫描的包对不对
传的参数对不对
发布路径和调用路径对不对
补充:Java , Web 开发