Invoking a JAX-RPC web service causes javax.xml.rpc.ServiceException Cannot find ServiceFactory implementation

Solution In Progress - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content