The JavaEE documentation for ServletContext.getRealPath()
says:
Resources inside the /META-INF/resources directories of JAR files bundled in the application's /WEB-INF/lib directory must be considered only if the container has unpacked them from their containing JAR file, in which case the path to the unpacked location must be returned.
This method returns null if the servlet container is unable to translate the given virtual path to a real path.
When will a container unpack these resources? From what I can see, my Tomcat doesn't do that. Can I force a container to unpack these resources? Or is this implementation dependent?