You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Tobia <to...@linux.it> on 2007/02/01 13:30:55 UTC

ScriptAction

Hello

Do script actions work in Cocoon 2.1.8?

I found some documentation at 
http://cocoon.apache.org/2.1/userdocs/optional/script-action.html
and samples in  blocks/bsf/samples/script-action

But I cannot get it to work.  

No matter what I put in the script (even an empty .js file!) I get a
rather bare Error 500 page and the following exception shows up in the
terminal where I started Cocoon (but not in the log files!)


13:12:18.472 WARN!! Error for /scriptaction-test
java.lang.NoSuchMethodError: org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine;
	at org.apache.bsf.engines.javascript.JavaScriptEngine.eval(Unknown Source)
	at org.apache.bsf.util.BSFEngineImpl.exec(Unknown Source)
	at org.apache.bsf.BSFManager$6.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.bsf.BSFManager.exec(Unknown Source)
	at org.apache.cocoon.acting.ScriptAction.act(ScriptAction.java:96)
...


Any idea?
Do I need to install some library somewhere?


Tobia

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


Re: ScriptAction

Posted by Tobia <to...@linux.it>.
Tobia wrote:
> Do script actions work in Cocoon 2.1.8?

Nevermind.

It appears to be an incompatibility between BSF 2.3.0 and Rhino 1.5r4,
but it's fixed in Cocoon 2.1.10


Tobia

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