ResourceUtils.getFile(java.net.URL, java.lang.String) throws FileNotFoundException if the URL has protocol of jar [SPR-994] #5705
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
Antony Sohal opened SPR-994 and commented
I think this is a bug because when this method is called, if the URL object does not have a protocol of file, it throws an FileNotFoundException. In my instance, my URL object was a location of a jar file within an EAR. After some debugging, i found that it would be better to check that the URL string start with file:// rather then check the protcol.
I came across this bug, when I was trying to add Mapping Jar Locations to a org.springframework.orm.hibernate.LocalSessionFactoryBean.
My hibernate config files are in the jar files.
Antony
Affects: 1.1.5
The text was updated successfully, but these errors were encountered: