我正在使用ProcessBuilder在JBOSS AS7上运行一个外部的JAR,然后调用Endpoint.publish()来创建一个JAX-WS Web Service。我使用一个Stateful bean来访问Web服务。
该服务本身可以正常运行,我通过wsimport导入了WS-client代理类,并可以通过浏览器或soapUI访问WSDL。但是当我尝试在服务器上访问Web服务时,JBOSS输出"connection refused"。我甚至尝试过Debug模式,但没有收集到有用的信息。
我已经关闭了防火墙,但仍无法连接。
该服务本身可以正常运行,我通过wsimport导入了WS-client代理类,并可以通过浏览器或soapUI访问WSDL。但是当我尝试在服务器上访问Web服务时,JBOSS输出"connection refused"。我甚至尝试过Debug模式,但没有收集到有用的信息。
我已经关闭了防火墙,但仍无法连接。
javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'http://localhost:4045/WebService/WebMethod?WSDL'.: java.net.ConnectException: Connection refused: connect
系统:JBOSS AS7.1.0.Alpha2,Windows操作系统,本地主机
Jboss日志:
08:26:01,572 ERROR [stderr] (http--127.0.0.1-8080-1) javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
08:26:01,573 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:149)
08:26:01,574 ERROR [stderr] (http--127.0.0.1-8080-1) at org.jboss.wsf.stack.cxf.client.ProviderImpl.createServiceDelegate(ProviderImpl.java:141)
08:26:01,574 ERROR [stderr] (http--127.0.0.1-8080-1) at javax.xml.ws.Service.<init>(Service.java:57)
...
08:26:01,603 ERROR [stderr] (http--127.0.0.1-8080-1) Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
08:26:01,603 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:94)
08:26:01,603 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:203)
08:26:01,603 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:147)
08:26:01,603 ERROR [stderr] (http--127.0.0.1-8080-1) ... 158 more
08:26:01,604 ERROR [stderr] (http--127.0.0.1-8080-1) Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing 'http://localhost:4045/WebService/WebMethod?WSDL'.: java.net.ConnectException: Connection refused: connect
08:26:01,604 ERROR [stderr] (http--127.0.0.1-8080-1) at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source)
08:26:01,605 ERROR [stderr] (http--127.0.0.1-8080-1) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
08:26:01,605 ERROR [stderr] (http--127.0.0.1-8080-1) at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
08:26:01,605 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:239)
08:26:01,605 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:186)
08:26:01,605 ERROR [stderr] (http--127.0.0.1-8080-1) at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:92)
08:26:01,605 ERROR [stderr] (http--127.0.0.1-8080-1) ... 160 more
08:26:01,606 ERROR [stderr] (http--127.0.0.1-8080-1) Caused by: java.net.ConnectException: Connection refused: connect
...