Dear Wiki user, You have subscribed to a wiki page or wiki category on "Cocoon Wiki" for change notification.
The following page has been changed by lruiz: http://wiki.apache.org/cocoon/WorkaroundForCOCOON-1579 New page: This is a workaround for [http://issues.apache.org/jira/browse/COCOON-1579 cocoon-1579] which describes the problem with rhino 1.6 and cocoon 2.1.10+ The goal is to use the previous version "rhino1.5r4-continuations-R26.jar", for that we have to revert the changes introduced for working with rhino1.6. which are few and listed below. 1) src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_Cocoon.java, line:331 {{{ public Object jsFunction_getComponent(String id) throws Exception { // To use rhino1.5r4-continuations-R26.jar as a workaround for COCOON-1579: Uncomment the next line and comment the original return. // return getServiceManager().lookup(id); return org.mozilla.javascript.Context.javaToJS(getServiceManager().lookup(id), getParentScope()); } }}} 2) src/blocks/forms/java/org/apache/cocoon/forms/util/JavaScriptHelper.java, line:64 {{{ script = ctx.compileReader( // To use rhino1.5r4-continuations-R26.jar as a workaround for COCOON-1579: Uncomment the next line. // getRootScope(null), //scope new StringReader(jsText), // in sourceName == null ? "<unknown>" : sourceName, // sourceName DomHelper.getLineLocation(element), // lineNo null // securityDomain ); }}} also don't forget to change lib/jars.xml.