My java application references a 3rd-party jar file which uses log4j logging. The problem is that this jar contains its own log4j.properties file which causes access denied
If none of these works
Add this following statement in your app configuration
BasicConfigurator.configure();
it worked for me