You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Neil Bacon <nb...@pinnaclesoftware.com.au> on 2004/03/16 01:09:48 UTC

BSF/beanshell working with rhino1.5r4-continuations-20040228.jar?

Has anyone got BSF/beanshell working with
rhino1.5r4-continuations-20040228.jar?

I'd like to use BSF with cocoon for some dynamic code in an otherwise static
generator
(not using the bsf block). I'd like to be able to use both beanshell and
javascript.

With
- bsf-2.3.0.jar (first Apache version - all com.ibm packages renamed to
org.apache)
- rhino1_5R3.jar
- bsh-2.0b1.jar
both beanshell and javascript work, but in cocoon I'm using flowscript -
rhino1.5r4-continuations-20040228.jar
If I change to this version of rhino I get:
  java.lang.NoSuchMethodError:
org.mozilla.javascript.Context.getDebuggableEngine
  (Lorg/mozilla/javascript/debug/DebuggableEngine;
  at org.apache.bsf.engines.javascript.JavaScriptEngine.eval(Unknown Source)

When I try:
- bsf-2.2.jar
- rhino1.5r4-continuations-20040228.jar
- bsh-2.0b1.jar or bsh-1.3.0.jar
scripting with javascript is fine, but for bsh I get:

unable to load language: java: java.lang.NoClassDefFoundError:
org/apache/bsf/util/BSFEngineImpl
	at java.lang.ClassLoader.defineClass0(Native Method)
	...
	at com.ibm.bsf.BSFManager.loadScriptingEngine(BSFManager.java:315)
	at com.ibm.bsf.BSFManager.eval(BSFManager.java:499)


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