You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Butler, Mark H (Labs Bristol)" <ma...@hp.com> on 2005/06/24 11:54:38 UTC

Maintaining DELI, building Cocoon

Hello team

Sorry not to be in touch in a while. Someone has been asking me to
update the DELI block in Cocoon. I hope to do this soon, but at the
moment I'm experiencing trouble building Cocoon. I wanted to flag this
because other people trying to do a clean build may be experiencing
similar problems. 

First I grabbed the 2.1.7 release and tried to build it - this failed, I
got

compile-core:
Copying 18 files to C:\svn\cocoon-2.1.7\build\cocoon-2.1.7\classes
Copied 60 empty directories to 32 empty directories under
C:\svn\cocoon-2.1.7\build\cocoon-2.1.7\classes
Compiling 547 source files to
C:\svn\cocoon-2.1.7\build\cocoon-2.1.7\classes
C:\svn\cocoon-2.1.7\src\java\org\apache\cocoon\components\flow\javascrip
t\fom\FOM_JavaScriptInterpreter.java:668: unreported exception
org.apache.regexp.RESyntaxException; must be caught or declared to be
thrown
    REProgram encodingRE = new
RECompiler().compile("^.*encoding\\s*=\\s*([^\\s]*)");
                                                   ^
1 error

BUILD FAILED
C:\svn\cocoon-2.1.7\tools\targets\compile-build.xml:61: Compile failed;
see the compiler error output for details.

then I tried to get the latest version out of trunk in SVN, same problem

compile-core:
Created dir: C:\svn\cocoon\build\cocoon\classes
Copying 20 files to C:\svn\cocoon\build\cocoon\classes
Copied 71 empty directories to 40 empty directories under
C:\svn\cocoon\build\cocoon\classes
Compiling 621 source files to C:\svn\cocoon\build\cocoon\classes
C:\svn\cocoon\src\java\org\apache\cocoon\components\flow\javascript\fom\
FOM_JavaScriptInterpreter.java:523: unreported e
xception org.apache.regexp.RESyntaxException; must be caught or declared
to be thrown
    REProgram encodingRE = new
RECompiler().compile("^.*encoding\\s*=\\s*([^\\s]*)");
                                                   ^
1 error

BUILD FAILED
C:\svn\cocoon\tools\targets\compile-build.xml:67: The following error
occurred while executing this line:
C:\svn\cocoon\tools\targets\compile-build.xml:50: Compile failed; see
the compiler error output for details.

Total time: 16 seconds

C:\svn\cocoon>java -version
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)

as you can see I'm using Java 1.4.2_06, it should build against this,
right?

Any suggestions?

Mark H. Butler, PhD
mark-h.butler@hp.com
HP Labs Bristol http://www.hpl.hp.com/people/marbut

Re: Maintaining DELI, building Cocoon

Posted by Bertrand Delacretaz <bd...@apache.org>.
Le 24 juin 05, à 11:54, Butler, Mark H ((Labs Bristol)) a écrit :

> ...Sorry not to be in touch in a while. Someone has been asking me to
> update the DELI block in Cocoon. I hope to do this soon...

Forgot two things:
1) Welcome back ;-)

2) Note that when changing the BRANCH_2_1_X code, we keep the trunk in 
sync when possible. It's a bit of a pain but as AFAIK there is no other 
activity currently in the deli block it shouldn't be too hard.

So if your changes are meant for 2.1.x, you'll have to reflect them in 
the trunk so that they're not lost for 2.2.

-Bertrand

Re: Maintaining DELI, building Cocoon

Posted by Antonio Gallardo <ag...@agssa.net>.
On Vie, 24 de Junio de 2005, 5:29, Antonio Gallardo dijo:
>> C:\svn\cocoon\src\java\org\apache\cocoon\components\flow\javascript\fom\
>> FOM_JavaScriptInterpreter.java:523: unreported e
>> xception org.apache.regexp.RESyntaxException; must be caught or declared
>> to be thrown
>>     REProgram encodingRE = new
>> RECompiler().compile("^.*encoding\\s*=\\s*([^\\s]*)");
>
> Seems like you have a trouble somewhere. Dunno why, AFAIK nobody similar
> problems with this release, even in windows.
>
> Anyway, I am wondering why we are using regexp at all! We need to stick to
> java 1.3 in 2.1.x branch!

For the records, I compiled 2.1.8-dev from the SVN and it compiles and run
in java 1.3. I used Sun 1.3.1_16 in Fedora Core 4.

Best Regards,

Antonio Gallardo

Re: Maintaining DELI, building Cocoon

Posted by Antonio Gallardo <ag...@agssa.net>.
On Vie, 24 de Junio de 2005, 4:54, Butler, Mark H (Labs Bristol) dijo:
> Hello team
>
> Sorry not to be in touch in a while. Someone has been asking me to
> update the DELI block in Cocoon. I hope to do this soon, but at the
> moment I'm experiencing trouble building Cocoon. I wanted to flag this
> because other people trying to do a clean build may be experiencing
> similar problems.

Thanks for you effort, as usual, I will commit it. :-)

> C:\svn\cocoon\src\java\org\apache\cocoon\components\flow\javascript\fom\
> FOM_JavaScriptInterpreter.java:523: unreported e
> xception org.apache.regexp.RESyntaxException; must be caught or declared
> to be thrown
>     REProgram encodingRE = new
> RECompiler().compile("^.*encoding\\s*=\\s*([^\\s]*)");

Seems like you have a trouble somewhere. Dunno why, AFAIK nobody similar
problems with this release, even in windows.

Anyway, I am wondering why we are using regexp at all! We need to stick to
java 1.3 in 2.1.x branch!

Best Regards,

Antonio Gallardo