diff --git a/hibernate-core/src/main/java/org/hibernate/boot/archive/internal/StandardArchiveDescriptorFactory.java b/hibernate-core/src/main/java/org/hibernate/boot/archive/internal/StandardArchiveDescriptorFactory.java index 4ec75ce8e1..54db8e6655 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/archive/internal/StandardArchiveDescriptorFactory.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/archive/internal/StandardArchiveDescriptorFactory.java @@ -101,7 +101,7 @@ public class StandardArchiveDescriptorFactory implements ArchiveDescriptorFactor } final String filePart = extractLocalFilePath( url ); - if ( filePart.startsWith( "/" ) ) { + if ( filePart.startsWith( "/" ) || new File(url.getFile()).isAbsolute() ) { // the URL is already an absolute form return url; }