I have a Java project deployed on Tomcat 8. I'm not using any framework.
If, during run-time, I run something like:
this.getClass().getClassLoader().getResourceAsStream("xyz");
This works if "xyz" is a file located in the WEB-INF/classes directory; however, the above line returns 'null' if the file "xyz" is located in the WEB-INF/lib directory.
Is there any way for me to read files in the WEB-INF/lib directory during run-time using the 'getResourceAsStream()' method of the 'ClassLoader' class?