java.io.IOException: Unable to locate resource handler.properties at org.apache.xmlrpc.server.PropertyHandlerMapping.load(PropertyHandlerMapping.java:53) at org.code2care.rpc.JavaServer.main(JavaServer.java:21)
You may get IOException in your XML-RPC based Application when you try to run the server if handler properties file is not placed in the correct location or you have missed to add the file. The file should be placed in your Project folders src folder, if you place it in your package or at the root of the Project folder you will get this error!
PropertyHandlerMapping propHandlerMapping = new PropertyHandlerMapping(); propHandlerMapping.load(Thread.currentThread().getContextClassLoader(),"handler.properties"); xmlRpcServer.setHandlerMapping(propHandlerMapping);
Code2care'smission is to share varied knowledge in technical and non-technical areas gathered during day-to-day learnings and development activities so that our visitors can leverage this portal to find solutions to their queries without re-inventing the wheel. Technical posts include Learnings, Tutorials, Video Tutorials, Code Snippets, Tips-n-tricks.