Invoking a JAX-RPC web service causes javax.xml.rpc.ServiceException Cannot find ServiceFactory implementation
Issue
- Following is a client code to invoke a JAX-RPC based web service :
ServiceFactory factory = (ServiceFactory) ServiceFactory.newInstance();
Service service = factory.createService(url, qname);
Call call = service.createCall(port, operation);
call.invoke(new Object[] { xmlInput });
which causes the below exception :
ERROR [stderr] (Thread-52 (HornetQ-client-global-threads-1027800564)) javax.xml.rpc.ServiceException: Cannot find ServiceFactory implementation
ERROR [stderr] (Thread-52 (HornetQ-client-global-threads-1027800564)) at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:94)
- Migrating a JAX-RPC application from EAP 5 to EAP 6 is giving the following error:
ERROR [com.example.resource.impl.RequestServiceImpl][bulkRequest] Cannot find ServiceFactory implementation: javax.xml.rpc.ServiceException: Cannot find ServiceFactory implementation
at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:94) [jboss-jaxrpc-api_1.1_spec-1.0.1.Final-redhat-3.jar:1.0.1.Final-redhat-3]
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
