This occurs when building with JDK 6, because the ScriptException class is 
slightly different in JDK 6 vs BSF.

I edited BetterScriptException to pass the message as the super argument, and 
initialize the cause exception using initCause.  That then works on either JDK.

Rory

Rory Douglas
Senior Principal Consultant
Oracle Consulting
(sent from my Blackberry)

----------Original Message----------

From: Maruan Sahyoun <[EMAIL PROTECTED]>
Sent: Tue, August 19, 2008 4:26 AM
To: [email protected]
Subject: Build Failure with Revision 687019


Dear team,

I've tried to build sling from scratch following the description  
"Getting and Building Sling". Unfortunately that fails with the  
following error


...
[INFO]  
------------------------------------------------------------------------
[INFO] Building Sling - Scripting - JSP Support
[INFO]    task-segment: [clean, install]
[INFO]  
------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] [enforcer:enforce {execution: enforce-java}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
      [echo] ********************** WARNING (SLING-443)  
**********************************
      [echo] On most platforms, building Sling currently requires  
setting
      [echo] MAVEN_OPTS="-Xmx256M", see https://issues.apache.org/ 
jira/browse/SLING-443
      [echo] You might get a "java.lang.OutOfMemoryError: Java heap  
space" if that
      [echo] setting is not correct.
      [echo]  
************************************************************************ 
*****
[INFO] Executed tasks
[INFO] [compiler:compile]
[INFO] Compiling 119 source files to /home/msahyoun/workspace/sling/ 
scripting/jsp/target/classes
[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]  
------------------------------------------------------------------------
[INFO] Compilation failure
/home/msahyoun/workspace/sling/scripting/jsp/src/main/java/org/apache/ 
sling/scripting/jsp/JspScriptEngineFactory.java:[326,16] cannot find  
symbol
symbol  : variable message
location: class  
org.apache.sling.scripting.jsp.JspScriptEngineFactory.BetterScriptExcept 
ion



/home/msahyoun/workspace/sling/scripting/jsp/src/main/java/org/apache/ 
sling/scripting/jsp/JspScriptEngineFactory.java:[326,16] cannot find  
symbol
symbol  : variable message
location: class  
org.apache.sling.scripting.jsp.JspScriptEngineFactory.BetterScriptExcept 
ion


[INFO]  
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]  
------------------------------------------------------------------------
[INFO] Total time: 54 seconds
[INFO] Finished at: Tue Aug 19 13:07:12 CEST 2008
[INFO] Final Memory: 66M/159M
[INFO]  
------------------------------------------------------------------------


Am I missing something?

With kind regards

Maruan Sahyoun

Reply via email to