I try to open file in jar in WEB-INF/lib with
Thread.currentThread().getContextClassLoader();
URL url=classLoader.getResource(myconfig);
In debugger I can see:
jar:file:/C:/apache-tomcat/webapps/mywebapp/WEB-INF/lib/myjarresource.jar!
/conf/configuration.xml
Why in file path is "!" ? I think for this reason application cannot open this file. How to receive correct path? Thanks.