I am running on WebSphere Liberty 17.0.0.4. Deployed a web application and custom authentication module which is located under {wlp_install_dir}/lib
directory. And that jar file is marked as library
in server.xml file. Here is how it looks in server.xml
<library id="CustomLoginModuleLib">
<fileset dir="${wlp.lib.dir}" includes="custom_auth.jar"/>
</library>
Now the thing is, I want to use .properties
file located inside custom_auth.jar
file to the web application.
Have tried following code snippet to access:
this.getClass().getResourceAsStream("location/of/package/file.properties");
ClassLoader.getSystemResourceAsStream("location/of/package/file.properties");
But, neither works.
Any idea how can we access properties file located in library jar file.