0
I have the following structure of an Ear application
- myApplication.Air
- /META-INF/file.properties
- War/WEB-INF/lib/myLib.jar/myClasse.java file
I would like to retrieve the file from my Classe.java.
I’ve tried to:
getClass(). getResource("/META-INF/file.properties") getClass(). getClassLoader(). getResource("/META-INF/file.properties") Classloader.getSystemClassLoader(). getResource("/META-INF/file.properties")
All return null
Does anyone have any suggestions?
So, I have no class directly in the EAR. The class is within a lib within the War that is within the EAR. This solution of yours corresponds to my second example that didn’t work. The returned url is null. But thanks anyway.
– Marcus Siqueira