Migrating a WS frm Jboss 4.2.2 to Jboss 7.1
vatsanm Mar 12, 2012 12:12 PMTryign to nigrate an existing WS from Jboss 4.4.2 to Jbss 7.1 Final and gettign a lot of issues.
My code is below.
@WebService (name="OasService", serviceName="OasServiceService", targetNamespace=http://oas.ws.etm.vzw.com/)
@SOAPBinding (style=SOAPBinding.Style.DOCUMENT,
use = SOAPBinding.Use.LITERAL,
parameterStyle = SOAPBinding.ParameterStyle. )
BARE
@WebMethod(operationName = "accountInquiry")
public AccountInquiryResp accountInquiry(@WebParam(name = "accountNumber")String PaccountNumber,
@WebParam (name = "zipCode")String Pzip)
{
.......
}
When I deploy teh war file, I see the wsdl that it auto-created. But I get "SeVERE error - unknown tags...." when the war file finally finishes deployment. The log file snippet is below.
11:37:54,106 SEVERE [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-16) Schema element {http://oas.ws.etm.vzw.com/}calculateTax references undefined type calculateTaxType for service {http://oas.ws.etm.vzw.com/}OasServiceService.
11:37:54,108 SEVERE [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-16) Schema element {http://oas.ws.etm.vzw.com/}changeCostCenterIndicator references undefined type eCareChangeCostCenterIndicatorType for service {http://oas.ws.etm.vzw.com/}OasServiceService.
11:37:54,111 SEVERE [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-16) Schema element {http://oas.ws.etm.vzw.com/}restoreSubscriber references undefined type eCareRestoreType for service {http://oas.ws.etm.vzw.com/}OasServiceService.
......
11:37:55,929 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "*service.war".
When I run a test clietn using my own code or soapUI, it failes and I see :
etrieving from host the oas service: http://10.170.49.176:9999/etmservice/service/oas?wsdl
Retrieving the port from the following service: javax.xml.ws.Service@14db0e3
Invoking the accountInquiry operation on the port.
com.sun.xml.ws.client.ClientTransportException: HTTP transport error: java.net.ConnectException: Connection refused (errno:239)
at com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:119)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:128)
at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:74)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400)
at com.sun.xml.ws.client.Stub.process(Stub.java:235)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:120)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:230)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy27.accountInquiry(Unknown Source)
at client.ActInqWSClient.doAccountInquiry2(Unknown Source)
at client.ActInqWSClient.main(Unknown Source)
Caused by: java.net.ConnectException: Connection refused (errno:239)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:539)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:564)
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:141)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:395)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:272)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:329)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:949)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230)
at com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:107)
... 14 more
Any suggestions or drirection is appreciated.