java.io.IOException: Unable to locate resource handler.properties


Stack-trace :
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 adding 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);
How to resolve IOException XML-RPC
How to resolve IOException XML-RPC






Author Info:

Rakesh (He/Him) has a Masters Degree in Computer Science with over 15+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap