summaryrefslogtreecommitdiffstats
path: root/java/sca
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-10-07 20:56:20 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-10-07 20:56:20 +0000
commit7c9fd36d980e08d012f68cc538f960af0af4b654 (patch)
treeb2292f1a245dbb68a7f033081a155c167ffd9e83 /java/sca
parent62bbce9ec5b9fe2a746ccc5abb092f2ef214a344 (diff)
Change the base class to be URLClassLoader so it works with Google App Engine
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@822909 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--java/sca/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/GeneratedClassLoader.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/java/sca/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/GeneratedClassLoader.java b/java/sca/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/GeneratedClassLoader.java
index f36dd3a443..3f035ce585 100644
--- a/java/sca/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/GeneratedClassLoader.java
+++ b/java/sca/modules/interface-java-jaxws/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxws/GeneratedClassLoader.java
@@ -19,11 +19,12 @@
package org.apache.tuscany.sca.interfacedef.java.jaxws;
-import java.security.SecureClassLoader;
+import java.net.URL;
+import java.net.URLClassLoader;
import java.util.HashMap;
import java.util.Map;
-public class GeneratedClassLoader extends SecureClassLoader {
+public class GeneratedClassLoader extends URLClassLoader {
private class GeneratedClass {
private String className;
private byte[] byteCode;
@@ -46,7 +47,7 @@ public class GeneratedClassLoader extends SecureClassLoader {
private Map<String, GeneratedClass> generatedClasses = new HashMap<String, GeneratedClass>();
public GeneratedClassLoader(ClassLoader parentLoader) {
- super(parentLoader);
+ super(new URL[0], parentLoader);
}
@Override