Add location: context to created codesource URL's to avoid Exceptions.

git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@500977 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/Felix.java b/framework/src/main/java/org/apache/felix/framework/Felix.java
index 942b472..063a815 100644
--- a/framework/src/main/java/org/apache/felix/framework/Felix.java
+++ b/framework/src/main/java/org/apache/felix/framework/Felix.java
@@ -2832,9 +2832,11 @@
         IModule module = m_factory.createModule(
             Long.toString(targetId) + "." + Integer.toString(revision), md);
 
-        CodeSource codesource = new CodeSource(m_secureAction.createURL(null, 
+        FakeURLStreamHandler handler = new FakeURLStreamHandler();
+        URL context = new URL(null, "location:", handler);
+        CodeSource codesource = new CodeSource(m_secureAction.createURL(context, 
             m_cache.getArchive(targetId).getLocation(), 
-            new FakeURLStreamHandler()), 
+            handler), 
             m_cache.getArchive(targetId).getCertificates());
 
         Permissions allPerms = new Permissions();