It seems to be looking to read the properties file, but I'm not sure where MyProperty.properties .
As you see it now, this will look for the MyProperty.properties file at the top of your class path. Maybe in your src/main/resources directory or in another src folder - this will depend on how your application is created (jar / war).
If you are building a can, you must unpack it and look at your properties file at the top level of the can. If you are building a war, perhaps it should be in the WEB-INF/classes . Again, it depends on how it was built.
Typically, the log4j.properties file log4j.properties also at the top of the class path, so you might want to find this file and place the properties file next to it.
source share