geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r354808 - in /geronimo/trunk/sandbox/freeorb/geronimo-orb: pom.xml src/test/java/org/apache/geronimo/corba/testframework/RMIClassLoaderImpl.java src/test/java/org/apache/geronimo/corba/testframework/TestAgent.java
Date Wed, 07 Dec 2005 17:25:19 GMT
Author: adc
Date: Wed Dec  7 09:25:15 2005
New Revision: 354808

URL: http://svn.apache.org/viewcvs?rev=354808&view=rev
Log:
GERONIMO-1233
Submitted by: Kresten Krab Thorup

Added:
    geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/testframework/RMIClassLoaderImpl.java
Modified:
    geronimo/trunk/sandbox/freeorb/geronimo-orb/pom.xml
    geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/testframework/TestAgent.java

Modified: geronimo/trunk/sandbox/freeorb/geronimo-orb/pom.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/freeorb/geronimo-orb/pom.xml?rev=354808&r1=354807&r2=354808&view=diff
==============================================================================
--- geronimo/trunk/sandbox/freeorb/geronimo-orb/pom.xml (original)
+++ geronimo/trunk/sandbox/freeorb/geronimo-orb/pom.xml Wed Dec  7 09:25:15 2005
@@ -64,6 +64,15 @@
             </goals>
           </execution>
         </executions>
+        <dependencies>
+          <dependency>
+            <groupId>sun.jdk</groupId>
+            <artifactId>tools</artifactId>
+            <version>1.4.2</version>
+            <scope>system</scope>
+            <systemPath>${java.home}/../lib/tools.jar</systemPath>
+          </dependency>
+        </dependencies>
       </plugin>
       
       <plugin>

Added: geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/testframework/RMIClassLoaderImpl.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/testframework/RMIClassLoaderImpl.java?rev=354808&view=auto
==============================================================================
--- geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/testframework/RMIClassLoaderImpl.java
(added)
+++ geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/testframework/RMIClassLoaderImpl.java
Wed Dec  7 09:25:15 2005
@@ -0,0 +1,28 @@
+package org.apache.geronimo.corba.testframework;
+
+import java.net.MalformedURLException;
+import java.rmi.server.RMIClassLoaderSpi;
+
+public class RMIClassLoaderImpl extends RMIClassLoaderSpi {
+
+	public Class loadClass(String arg0, String arg1, ClassLoader arg2)
+			throws MalformedURLException, ClassNotFoundException {
+		return Class.forName(arg1);
+	}
+
+	public Class loadProxyClass(String arg0, String[] arg1, ClassLoader arg2)
+			throws MalformedURLException, ClassNotFoundException {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+	public ClassLoader getClassLoader(String arg0) throws MalformedURLException {
+		return this.getClass().getClassLoader();
+	}
+
+	public String getClassAnnotation(Class arg0) {
+		// TODO Auto-generated method stub
+		return null;
+	}
+
+}

Modified: geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/testframework/TestAgent.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/testframework/TestAgent.java?rev=354808&r1=354807&r2=354808&view=diff
==============================================================================
--- geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/testframework/TestAgent.java
(original)
+++ geronimo/trunk/sandbox/freeorb/geronimo-orb/src/test/java/org/apache/geronimo/corba/testframework/TestAgent.java
Wed Dec  7 09:25:15 2005
@@ -140,6 +140,8 @@
         String driverName = args[4];
         String fork = args[5];
 
+        System.setProperty("java.rmi.server.RMIClassLoaderSpi", RMIClassLoaderImpl.class.getName());
+        
         Registry reg = LocateRegistry.getRegistry(registryHost, registryPort);
 
         Class c = Class.forName(testClassName);



Mime
View raw message