Index: src/gate/jape/RightHandSide.java =================================================================== --- src/gate/jape/RightHandSide.java (revision 7462) +++ src/gate/jape/RightHandSide.java (working copy) @@ -23,6 +23,7 @@ import gate.creole.ontology.Ontology; import gate.util.GateRuntimeException; import gate.util.Strings; +import gate.util.GateClassLoader; /** @@ -96,7 +97,11 @@ private String phaseName; private String ruleName; - /** Construction from the transducer name, rule name and the LHS. */ + + /** the classloader at the time of creation. **/ + private GateClassLoader _cl = Gate.getClassLoader(); + + /** Construction from the transducer name, rule name and the LHS. */ public RightHandSide( String transducerName, String ruleName, LeftHandSide lhs ) { @@ -195,8 +200,7 @@ public void instantiateActionClass() throws JapeException { try { - theActionObject = Gate.getClassLoader(). - loadClass(actionClassQualifiedName). + theActionObject = _cl.loadClass(actionClassQualifiedName). newInstance(); } catch(Exception e) { throw new JapeException(