Gérald Quintana (Migrated from SEC-1239) said:
Given a JaasAuthenticationProvider declared like this:
I get the folowing exception:
java.lang.SecurityException: D:\Tomcat%205.5.23\webapps\myapp\WEB-INF\classes\jaas.config (The system cannot find the path specified)
The problem stems from
Luke Taylor said:
I've converted the Resource to a File before calling getURL() on it. File.get().URL.toString() is encoded differently from the one obtained from Resource.getURL().toString(). More importantly it is compatible with the current behaviour of com.sun.security.auth.login.ConfigFile which just substitutes "/" characters in the URL for the file separator character, before attempting to use it to load the file. I think the problem essentially lies with the behaviour of ConfigFile, but this seems to fix it.