Not able to load resources folder file
Hi Team,
We are trying to load "geodb.mmdb" which is present in resources folder in our AEM bundle code.
Maxmind uses this mmdb file.
Code for loading the file:
File database = new File(classLoader.getResource("geodb.mmdb").getFile());
dbReader = new DatabaseReader.Builder(database).build();
We are pretty sure that the file exists in the resources folder in our maven project. When we build our package and upload it in AEM we get "java.io.FileNotFoundException: \geodb.mmdb (The system cannot find the file specified)" exception when we hit the servlet.
Thanks,
Mohit