I need to pass the property file's URI to the following method (3rd party jar)
defaultConfiguration = Factory.createDefaultConfiguration(propertiesUrl.toURI());
PayClient client = Factory.createClient(defaultConfiguration);
When I deploy my code on server, I get this path i.e. propertiesUrl.toURI() as abc://localhost/server/test/payment/ConfigLookup.properties
The 3rd party application refuses this value and doesn't create the configuration which is used to create a connection client.
A sample code where the property file is in my local bin folder works fine when passed on.
Path received as propertiesUrl.toURI()
file:/D:/Code/bin/ConfigLookup.properties
The above creates a successful connection.
Kindly guide me on what's missing between them. How to make the server code work in similar fashion as the local code works.