日期:2014-05-20  浏览次数:20891 次

在线高分求助!webservice打包到tomcat服务器中,报连接错误。
webservice打包到tomcat服务器中,报连接错误。我的电脑hosts文件中已经配了webservice的地址的。
webserve的测试环境连可以连上,但把webservie和web系统集合一起打包跑时,报连接错误。如下。。。

Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.<init>(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleHeadersTrustCaching(HTTPConduit.java:1908)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.onFirstWrite(HTTPConduit.java:1863)
at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:42)
at org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1926)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:627)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
... 124 more
05:40:39,171 ERROR ExceptionHandleActionListener:103 - javax.el.ELException: /pages/datasyn/datasyn_manual.jsf @58,102 action="#{manualDataSynAction.process}": javax.xml.ws.WebServiceException: org.apache.cxf.interceptor.Fault: Could not send Message.
05:40:39,187 WARN AjaxContext:400 - Target component for id out not found
05:40:39,187 WARN AjaxContext:400 - Target component for id dataGroupId not found
05:40:39,250 DEBUG JSONParseHelper:147 - JSON Conversion Result: [{"level":0,"msg":"系统出现错误请与管理员联系"}]
05:40:39,250 DEBUG UIFunctionUtil:239 - msg this time:[{"level":0,"msg":"系统出现错误请与管理员联系"}]


------解决方案--------------------
是不是有一端的服务器没有打开呀。
------解决方案--------------------
连接被拒,应该是网络和配置的问题,在以下几点中查找问题:
1.服务端ip是否设置正确
2.ip是否能通
3.若1,2成立,看下服务端服务是否开启

------解决方案--------------------
是谁连接谁错误?
客户端连接webservice还是服务端连接数据库,还是服务器程序不能启动?
------解决方案--------------------
我直接部署到web中是可以的