Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.7.0
-
None
-
Windows
Description
Lookup of EntityManagerFactories failing in Windows. this is because during lookup based on Jar path we use windows style path but during storing we use a URI. Converting the path to a URI seems to add a / at the end. So the patch uses a method of the form
private String normalizePath(String path){
char[] carray = path.toCharArray();
for(int i=0;i<carray.length;i++){
if(carray[i] == '
')
}
return "/" + new String(carray);
}
to convert the path to the same form. new File(path).toURI().getPath() adding a / at the end and so lookup fails with this issue. I amnot sure why initially / is not coming in the end on getting jarURI