Index: src/gate/jape/RightHandSide.java =================================================================== --- src/gate/jape/RightHandSide.java (revision 372) +++ src/gate/jape/RightHandSide.java (revision 373) @@ -22,6 +22,7 @@ import gate.*; import gate.creole.ontology.Ontology; import gate.util.Strings; +import gate.util.GateClassLoader; /** @@ -95,7 +96,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 ) { @@ -190,8 +195,7 @@ public void instantiateActionClass() throws JapeException { try { - theActionObject = Gate.getClassLoader(). - loadClass(actionClassQualifiedName). + theActionObject = _cl.loadClass(actionClassQualifiedName). newInstance(); } catch(Exception e) { throw new JapeException(