So I have a library that is using Apache Common VFS to load resources out of the WEB-INF directory. That resource has to be loaded with java.net.URL because that is what VFS uses underneath. Here is the URL:
jndi:/localhost/WEB-INF/config/some.xml
This worked great in Tomcat 7, but it's not working in Tomcat 9 which is mentioned in the documentation. But I can't find any details on how to change the URL so it's happy again. I can't find any examples of jdni: urls other than EJB and DataSource.
Here is the underlying exception:
MalformedURLException: unknown protocol: jndi
I can't even find what class was providing the jndi protocol.
Any ideas?