|
|
|
@ -615,8 +615,8 @@ public class DefaultPersistenceUnitManager |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
Resource res = this.resourcePatternResolver.getResource(this.defaultPersistenceUnitRootLocation); |
|
|
|
URL url = this.resourcePatternResolver.getResource(this.defaultPersistenceUnitRootLocation).getURL(); |
|
|
|
return res.getURL(); |
|
|
|
return (ResourceUtils.isJarURL(url) ? ResourceUtils.extractJarFileURL(url) : url); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (IOException ex) { |
|
|
|
catch (IOException ex) { |
|
|
|
throw new PersistenceException("Unable to resolve persistence unit root URL", ex); |
|
|
|
throw new PersistenceException("Unable to resolve persistence unit root URL", ex); |
|
|
|
|