You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by nutmeg <de...@comcast.net> on 2007/11/06 23:16:02 UTC

Error building Cocoon 2.1.10 from source

I'm new to Cocoon and I'm trying to build the latest "stable" version
(2.1.10) from the sources I downloaded.  I am following the steps in the
INSTALL.txt file and when I run the "build" batch file (on Windows XP SP2
using Sun JDK 1.5.0_04), I get the following error:
---
Compiling 594 source files to C:\cocoon\cocoon-2.1.10\build\cocoon\classes
C:\cocoon\cocoon-2.1.10\src\java\org\apache\cocoon\components\flow\javascript\fo
m\FOM_JavaScriptInterpreter.java:663: unreported exception
org.apache.regexp.RES
yntaxException; must be caught or declared to be thrown
    REProgram encodingRE = new
RECompiler().compile("^.*encoding\\s*=\\s*([^\\s]
*)");
                                                   ^
1 error

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

Any hints on what I should do about this?  The problem line in the source
code is not even contained in a method, so I'm not sure how to deal with the
unreported exception.

Thanks for any help you can offer.
Chris

-- 
View this message in context: http://www.nabble.com/Error-building-Cocoon-2.1.10-from-source-tf4761401.html#a13617217
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Error building Cocoon 2.1.10 from source

Posted by Grzegorz Kossakowski <gk...@apache.org>.
nutmeg pisze:
> I discovered my compilation problem was due to the presence of an older copy
> of the org.apache.regexp package in my JDK's jre\lib\endorsed directory,
> thus overriding the same package within the Cocoon distribution.  After I
> switched to a different JDK install that did not have anything in its
> endorsed directory, the Coccon build succeeded.

Good to hear it works for you and thanks for sharing your experiences.

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Error building Cocoon 2.1.10 from source

Posted by nutmeg <de...@comcast.net>.
I discovered my compilation problem was due to the presence of an older copy
of the org.apache.regexp package in my JDK's jre\lib\endorsed directory,
thus overriding the same package within the Cocoon distribution.  After I
switched to a different JDK install that did not have anything in its
endorsed directory, the Coccon build succeeded.


nutmeg wrote:
> 
> I'm new to Cocoon and I'm trying to build the latest "stable" version
> (2.1.10) from the sources I downloaded.  I am following the steps in the
> INSTALL.txt file and when I run the "build" batch file (on Windows XP SP2
> using Sun JDK 1.5.0_04), I get the following error:
> 
> 

-- 
View this message in context: http://www.nabble.com/Error-building-Cocoon-2.1.10-from-source-tf4761401.html#a13631365
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org