Hello folks,
I'm currently porting a legacy code on my company to JBoss EAP 6.1, originally built on top of Tomcat 5. I have a code calling a SOAP service using Axis 1.1, basically doing the following:
QName qNameSvc = new QName(getEndPoint(), getNameSpaceURI());
QName qNamePort = new QName(getEndPoint(), ClienteWS.getPortQN());
ServiceFactory sf = ServiceFactory.newInstance();
Service svc = sf.createService(qNameSvc);
Call mycall = (Call)svc.createCall(qNamePort);
Call mycall = (Call)svc.createCall(qNamePort);
mycall.setTargetEndpointAddress(getEndPoint());
mycall.setOperationName(new QName(getNameSpaceURI(), getService()));
mycall.invoke(new Object[] {xmlConsulta});
But, executing the code I got the following stack trace:
javax.xml.rpc.ServiceException: Cannot find ServiceFactory implementation at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:94) at br.gov.infoseg.soap.ClienteWS.getCallWebService(ClienteWS.java:58) at br.gov.infoseg.soap.ClienteWS.requisitaServicoEstado(ClienteWS.java:51) at br.gov.infoseg.servicos.individuos.service.IndividuosFacadeREST.buscaDetalhe(IndividuosFacadeREST.java:114) at br.gov.infoseg.servicos.individuos.service.IndividuosFacadeREST$Proxy$_$$_WeldSubclass.buscaDetalhe(IndividuosFacadeREST$Proxy$_$$_WeldSubclass.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497)
Any ideas?