From d30c3cfa5a6573c0cb0ab8a04ffd4aaf20f59273 Mon Sep 17 00:00:00 2001 From: Robert Mitchell Date: Fri, 17 Jan 2020 16:10:01 -0500 Subject: [PATCH 1/2] fixes #4415 --- .../java/org/glassfish/loader/util/ASClassLoaderUtil.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nucleus/deployment/common/src/main/java/org/glassfish/loader/util/ASClassLoaderUtil.java b/nucleus/deployment/common/src/main/java/org/glassfish/loader/util/ASClassLoaderUtil.java index 6e962c2245e..2c73808e6a7 100644 --- a/nucleus/deployment/common/src/main/java/org/glassfish/loader/util/ASClassLoaderUtil.java +++ b/nucleus/deployment/common/src/main/java/org/glassfish/loader/util/ASClassLoaderUtil.java @@ -263,6 +263,12 @@ private static synchronized String getModulesClasspath(ServiceLocator habitat) { "Error truncating URI with prefix of \"reference:\"", use); } + } else if (uri.toString().startsWith("jardir:")) { + // OSGi fileinstall created modules can have a "jardir:" schema for directory + // structures, but their is no FileSystemProvider for this type. + // Since the path is the file system path, just substitute the "file:" schema + tmpString.append("file:").append(uri.toString().substring("jardir:".length())); + tmpString.append(File.pathSeparator); } else { tmpString.append(Paths.get(uri).toString()); tmpString.append(File.pathSeparator); From 9b5dd121722ee899c7b79e558bd79ce9aa7d4487 Mon Sep 17 00:00:00 2001 From: Mero Rai Date: Tue, 17 Nov 2020 13:07:37 +0000 Subject: [PATCH 2/2] Fixed a Typo Co-authored-by: Andrew Pielage --- .../main/java/org/glassfish/loader/util/ASClassLoaderUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nucleus/deployment/common/src/main/java/org/glassfish/loader/util/ASClassLoaderUtil.java b/nucleus/deployment/common/src/main/java/org/glassfish/loader/util/ASClassLoaderUtil.java index 2c73808e6a7..9b5850b5025 100644 --- a/nucleus/deployment/common/src/main/java/org/glassfish/loader/util/ASClassLoaderUtil.java +++ b/nucleus/deployment/common/src/main/java/org/glassfish/loader/util/ASClassLoaderUtil.java @@ -265,7 +265,7 @@ private static synchronized String getModulesClasspath(ServiceLocator habitat) { } } else if (uri.toString().startsWith("jardir:")) { // OSGi fileinstall created modules can have a "jardir:" schema for directory - // structures, but their is no FileSystemProvider for this type. + // structures, but there is no FileSystemProvider for this type. // Since the path is the file system path, just substitute the "file:" schema tmpString.append("file:").append(uri.toString().substring("jardir:".length())); tmpString.append(File.pathSeparator);