cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cocoon Wiki] Update of "WorkaroundForCOCOON-1579" by lruiz
Date Thu, 15 Mar 2007 22:49:03 GMT
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

------------------------------------------------------------------------------
- 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+
+ 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+
  
- 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.
+ 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.
+  2. Delete js-1.6R5.jar from "lib/core".
+  3. Also you have to change the jar declaration for rhino on lib/jars.xml from
+ {{{
+   <file>
+     <title>Continuations-based JavaScript engine</title>
+     <description>Rhino is an implementation of JavaScript in Java.</description>
+     <used-by>Control flow</used-by>
+     <lib>core/js-1.6R5.jar</lib>
+     <homepage>http://svn.cocoondev.org/repos/rhino+cont/</homepage>    
+   </file>
+ }}}
+ to
+ {{{
+   <file>
+     <title>Continuations-based JavaScript engine</title>
+     <description>Rhino is an implementation of JavaScript in Java.</description>
+     <used-by>Control flow</used-by>
+     <lib>core/rhino1.5r4-continuations-R26.jar</lib>
+     <homepage>http://svn.cocoondev.org/repos/rhino+cont/</homepage>    
+   </file>
+ }}}
  
+ 4. then we have to revert the changes introduced in cocoon for rhino1.6 which are few and
listed below.
- 1) src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_Cocoon.java, line:331
+  4.a. src/java/org/apache/cocoon/components/flow/javascript/fom/FOM_Cocoon.java, line:331
  {{{
  public Object jsFunction_getComponent(String id)
      throws Exception {
@@ -15, +42 @@

  }
  }}}
  
- 2) src/blocks/forms/java/org/apache/cocoon/forms/util/JavaScriptHelper.java, line:64
+  4.b. 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.
@@ -26, +53 @@

      null // securityDomain
  );
  }}}
- also don't forget to change lib/jars.xml.
  
+ 5. Then you can build cocoon by running the script (build.bat or build.sh)
+ 

Mime
View raw message