java - Provider oracle.j2ee.ws.client.ServiceFactoryImpl not found -


I am writing an application that invites the Oracle web service. The web service client code was provided to me.

This application uses the custom subclass of URLClassLoader to load jars in run-time. Running unit tests from my local machine works fine, however, when I apply the application to the server and run it, I get the following error I am loading properly through other classes / jar custom class loaders. .

Obviously why is this happening? Perhaps the factoryfinder is using a different class loader example? Any help is appreciated! Thanks

  javax.xml.rpc.ServiceException: The provider did not find javax.xml.rpc.FactoryFinder.newInstance (FactoryFinder.java:44) on oracle.j2ee.ws.client.ServiceFactoryImpl javax .xml.rpc.FactoryFinder.find (FactoryFinder.java:137) javax.xml.rpc.ServiceFactory.newInstance (ServiceFactory.java:69) is com.mycomp.myapp.oracle.client.tsClient at & lt ;. Init & gt; Com.mycomp.myapp.oracle.OracleConnection.updateMetrics (OracleConnection.java:73) at com.mycomp.myapp.oracle.LaborHours.update (LaborHours.java:92) (TSClient.java:34) at com.mycomp Myapp.Project.crawl com.mycomp.myapp.Main.main on (Project.java:150) (Main.java:302)  

This conclusion came with me.

The ServiceFactory uses this same class loading mechanism (which is apparently a different example compared to its custom class loader).

I had to use this hack to add jar to the system hack, the square path of er.


Comments