You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by Apache Wiki <wi...@apache.org> on 2007/03/16 00:31:48 UTC

[Cocoon Wiki] Update of "WorkaroundForCOCOON-1579" by AntonioGallardo

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 AntonioGallardo:
http://wiki.apache.org/cocoon/WorkaroundForCOCOON-1579

------------------------------------------------------------------------------
- This is a workaround for [http://issues.apache.org/jira/browse/COCOON-1579 cocoon-1579] which describes a problem with rhino 1.6 and cocoon 2.1.10+
+ [http://issues.apache.org/jira/browse/COCOON-1579 COCOON-1579] describes a continuation issue when using rhino 1.6 in cocoon 2.1.10+.
+ The workaround is to replace rhino 1.6 with the previous version. Before compiling cocoon, please follow this steps:
  
- You can start by doing a checkout of cocoon2.1
- {{{
- svn co http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X cocoon-2.1 
- }}}
- 
- The goal is to use the previous version "rhino1.5r4-continuations-R26.jar" follow the next steps
-  1. Download rhino1.5r4-continuations-R26.jar from [http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/lib/core/rhino1.5r4-continuations-R26.jar?revision=226968&pathrev=479984 here] and locate it on "lib/core" folder.
+  1. Download [http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/lib/core/rhino1.5r4-continuations-R26.jar?revision=226968&pathrev=479984 rhino1.5r4-continuations-R26.jar] and locate it on "$COCOON/lib/core" folder.
-  2. Delete js-1.6R5.jar from "lib/core".
+  2. Delete js-1.6R5.jar from "$COCOON/lib/core".
-  3. Also you have to change the jar declaration for rhino on lib/jars.xml from
+  3. Change the jar location (<lib/>) for rhino on $COCOON/lib/jars.xml from
  {{{
    <file>
      <title>Continuations-based JavaScript engine</title>
@@ -31, +26 @@

    </file>
  }}}
  
- 4. then we have to revert the changes introduced in cocoon for rhino1.6 which are few and listed below.
+ 4. Revert the code changes for rhino1.6 which are 2 and are commented in the code base:
   4.a. src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_Cocoon.java, line:331
  {{{
  public Object jsFunction_getComponent(String id)