You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Rick Tessner <ri...@apache.org> on 2005/01/09 20:22:56 UTC

Forrest 0.6.x, Cocoon and Java

Hi all,

I've been looking at the best way to upgrade cocoon in the
forrest_06_branch in order to address
http://issues.cocoondev.org//browse/FOR-356 (Multi-User Capability).  

The problem was a cocoon issue which has been fixed in both Cocoon
2.2-dev and Cocoon 2.1.6 (and thus Cocoon 2.1.7-dev)

Issues that I've run across

      * Current Cocoon 2.2-dev (and that used in Forrest 0.7-dev) works
        only with Java 1.4.x or higher. 
      * Cocoon 2.1.6 works with Java 1.3.x and higher 
      * Cocoon 2.1.7-dev I can't get to compile with either Java 1.3.x
        or 1.4.x (bombs in different places tho) so I don't know whether
        it works with Forrest. :(
      * The pass-through attribute for the map:mount element in the
        sitemap does not work under Cocoon 2.1.6 (may work in 2.1.7-dev,
        but again I haven't been able to test this)
      * Forrest 0.6 currently uses an earlier revision of Cocoon 2.2-dev
        (which was at the time compatible with Java 1.3.x) with Cocoon
        2.1.5 libs.

My Preference:

      * Upgrade Cocoon in forrest_06_branch to the same Cocoon being
        used in the Forrest trunk and make it clear that Java 1.4.x is
        the minimum requirement for Forrest (both 0.6.x and svn trunk).
        ie. Upgraded to Cocoon 2.2-dev, revision 111170.
      * Upgrade the java classes in Forrest 0.6.x that were part of
        o.a.cocoon to o.a.forrest to mirror what has been done in
        Forrest 0.7-dev.
      * Upgrade both 0.6.1-dev and 0.7-dev to Cocoon 2.2 when it's
        released.  Discussion on the cocoon dev mailing list sounds like
        that could happen in the next 3-4 months.

If we go with Cocoon 2.2, it would mean that we lose Java 1.3.x
compatibility.  Then again, Java 1.3 is in the process of being EOL'd.
See http://java.sun.com/j2se/1.3/download.html .

Thoughts?  

-- 
Rick Tessner
rick at apache dot org

Re: Forrest 0.6.x, Cocoon and Java

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Upayavira wrote:
...
> Or, look into what the issues in 2.2 and Java 1.3 are. While 2.2 is 
> going to be 1.4 only, there's no reason why any current issues can't be 
> fixed if there are volunteers wanting to do it - i.e. make 2.2 
> compatible with 1.3 again.

IMHO this time is better spent on other things, as it has been already 
decided in Cocoon to require 1.4 for Cocoon 2.2, and as this also makes 
it easier for us to support Cocoon (headless support for Batik).

MHO of course.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Re: Forrest 0.6.x, Cocoon and Java

Posted by Upayavira <uv...@upaya.co.uk>.
Rick Tessner wrote:

>Hi all,
>
>I've been looking at the best way to upgrade cocoon in the
>forrest_06_branch in order to address
>http://issues.cocoondev.org//browse/FOR-356 (Multi-User Capability).  
>
>The problem was a cocoon issue which has been fixed in both Cocoon
>2.2-dev and Cocoon 2.1.6 (and thus Cocoon 2.1.7-dev)
>
>Issues that I've run across
>
>      * Current Cocoon 2.2-dev (and that used in Forrest 0.7-dev) works
>        only with Java 1.4.x or higher. 
>      * Cocoon 2.1.6 works with Java 1.3.x and higher 
>      * Cocoon 2.1.7-dev I can't get to compile with either Java 1.3.x
>        or 1.4.x (bombs in different places tho) so I don't know whether
>        it works with Forrest. :(
>      * The pass-through attribute for the map:mount element in the
>        sitemap does not work under Cocoon 2.1.6 (may work in 2.1.7-dev,
>        but again I haven't been able to test this)
>      * Forrest 0.6 currently uses an earlier revision of Cocoon 2.2-dev
>        (which was at the time compatible with Java 1.3.x) with Cocoon
>        2.1.5 libs.
>
>My Preference:
>
>      * Upgrade Cocoon in forrest_06_branch to the same Cocoon being
>        used in the Forrest trunk and make it clear that Java 1.4.x is
>        the minimum requirement for Forrest (both 0.6.x and svn trunk).
>        ie. Upgraded to Cocoon 2.2-dev, revision 111170.
>      * Upgrade the java classes in Forrest 0.6.x that were part of
>        o.a.cocoon to o.a.forrest to mirror what has been done in
>        Forrest 0.7-dev.
>      * Upgrade both 0.6.1-dev and 0.7-dev to Cocoon 2.2 when it's
>        released.  Discussion on the cocoon dev mailing list sounds like
>        that could happen in the next 3-4 months.
>
>If we go with Cocoon 2.2, it would mean that we lose Java 1.3.x
>compatibility.  Then again, Java 1.3 is in the process of being EOL'd.
>See http://java.sun.com/j2se/1.3/download.html .
>  
>
Or, look into what the issues in 2.2 and Java 1.3 are. While 2.2 is 
going to be 1.4 only, there's no reason why any current issues can't be 
fixed if there are volunteers wanting to do it - i.e. make 2.2 
compatible with 1.3 again.

Regards, Upayavira

Re: Forrest 0.6.x, Cocoon and Java

Posted by Antonio Gallardo <ag...@agssa.net>.
On Dom, 9 de Enero de 2005, 16:25, Rick Tessner dijo:
> Java 1.4
> --------
> BUILD FAILED
> /home/rick/projects/cocoon/2.1/tools/targets/docs-build.xml:56:
> com.thoughtworks.qdox.parser.ParseException: syntax error @[181,1] in
> file:/home/rick/projects/cocoon/2.1/src/blocks/php/java/org/apache/cocoon/generation/PhpGenerator.java
>
>                               --oOo--
>
> Hmmmm ... looks like the Java 1.4 error is only in the docs ... probably
> not critical, but again if we're gonna go for Java 1.4, may as well go
> with Cocoon 2.2.

Interesting! I got the same reasult. Anyway php block is a deprecated. I
wonder why it is included as part of build! Let me see. Thanks for
spotting the error. :-D

Best Regards,

Antonio Gallardo


Re: Forrest 0.6.x, Cocoon and Java

Posted by Antonio Gallardo <ag...@agssa.net>.
On Dom, 9 de Enero de 2005, 16:25, Rick Tessner dijo:
> I tried this under both Java 1.3 (build 1.3.1_14-b03) and Java 1.4
> (build 1.4.2_03-b02).
>
> Java 1.3
> --------
> cocoon-block-portal-compile:
> Compiling 297 source files
> to
> /home/rick/projects/cocoon/2.1/build/cocoon-2.1.7-dev/blocks/portal/dest
> /home/rick/projects/cocoon/2.1/src/blocks/portal/java/org/apache/cocoon/portal/coplet/adapter/impl/ApplicationCopletAdapter.java:97:
> cannot resolve symbol
> symbol  : method indexOf  (java.lang.String)
> location: class java.lang.StringBuffer
>                     boolean hasParams = (uri.indexOf("?") != -1);
>                                             ^
> 1 error
>

Fixed. Please do an "svn up" and cross check. Thanks again. ;-)

Best Regards,

Antonio Gallardo

Re: Forrest 0.6.x, Cocoon and Java

Posted by Rick Tessner <ri...@apache.org>.
On Sun, 2005-01-09 at 15:56 -0600, Antonio Gallardo wrote:
> On Dom, 9 de Enero de 2005, 13:22, Rick Tessner dijo:
> >       * Cocoon 2.1.7-dev I can't get to compile with either Java 1.3.x
> >         or 1.4.x (bombs in different places tho) so I don't know whether
> >         it works with Forrest. :(
> 
> Can you explain more this point? Did you an "svn update"?

Yup, did an "svn update" along the 2.1 branch
( http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X ),
revision 124730.  I tried compiling without any changes to the build &
block properties files.  I also did not have any local.b*.properties
files defined.  I wanted to make sure cocoon built completely from a
clean checkout.

Even though Forrest only uses a small part of cocoon, one never knows
what blocks from Cocoon someone using Forrest may try to incorporate
into Forrest. :)

I tried this under both Java 1.3 (build 1.3.1_14-b03) and Java 1.4
(build 1.4.2_03-b02).

Java 1.3
--------
cocoon-block-portal-compile:
Compiling 297 source files
to /home/rick/projects/cocoon/2.1/build/cocoon-2.1.7-dev/blocks/portal/dest
/home/rick/projects/cocoon/2.1/src/blocks/portal/java/org/apache/cocoon/portal/coplet/adapter/impl/ApplicationCopletAdapter.java:97: cannot resolve symbol
symbol  : method indexOf  (java.lang.String)
location: class java.lang.StringBuffer
                    boolean hasParams = (uri.indexOf("?") != -1);
                                            ^
1 error

Java 1.4
--------
BUILD FAILED
/home/rick/projects/cocoon/2.1/tools/targets/docs-build.xml:56:
com.thoughtworks.qdox.parser.ParseException: syntax error @[181,1] in
file:/home/rick/projects/cocoon/2.1/src/blocks/php/java/org/apache/cocoon/generation/PhpGenerator.java

                              --oOo--

Hmmmm ... looks like the Java 1.4 error is only in the docs ... probably
not critical, but again if we're gonna go for Java 1.4, may as well go
with Cocoon 2.2.

-- 
Rick Tessner
rick at apache dot org

Re: Forrest 0.6.x, Cocoon and Java

Posted by Antonio Gallardo <ag...@agssa.net>.
On Dom, 9 de Enero de 2005, 13:22, Rick Tessner dijo:
>       * Cocoon 2.1.7-dev I can't get to compile with either Java 1.3.x
>         or 1.4.x (bombs in different places tho) so I don't know whether
>         it works with Forrest. :(

Can you explain more this point? Did you an "svn update"?

Best Regards,

Antonio Gallardo


Re: Forrest 0.6.x, Cocoon and Java

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Rick Tessner wrote:
...
> My Preference:
> 
>       * Upgrade Cocoon in forrest_06_branch to the same Cocoon being
>         used in the Forrest trunk and make it clear that Java 1.4.x is
>         the minimum requirement for Forrest (both 0.6.x and svn trunk).
>         ie. Upgraded to Cocoon 2.2-dev, revision 111170.
>       * Upgrade the java classes in Forrest 0.6.x that were part of
>         o.a.cocoon to o.a.forrest to mirror what has been done in
>         Forrest 0.7-dev.

+1 :-)

>       * Upgrade both 0.6.1-dev and 0.7-dev to Cocoon 2.2 when it's
>         released.  Discussion on the cocoon dev mailing list sounds like
>         that could happen in the next 3-4 months.

Basically we will be using 2.2 till it's released, and than stick with 
the released version for all our subsequent releases.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------