If you can, you should use Java6 as its scripting support is more robust. In
fact rhino is built into Java6 by Sun. From the stack trace it would appear
you are using Java5 and therefore the scripting classes are read from this
file META-INF/services/javax.script.ScriptEngineFactory in the
jsr-223-1.0-pr.jar. There is a similar file in the
java/server/trunk/src/META-INF/services directory but all the classes are
currently commented out.

Paul

On 4/11/07, Tom Williams <[EMAIL PROTECTED]> wrote:

 hi guys,
I am trying to load a dynamic scriptiing language with red5 on my
classpath. It seems to have registered a set of ScriptEngineFactory objects
that are broken. see output below (this is a simple test app that just
attempts to retrieve and print the bindings of each script factory):

java.lang.AbstractMethodError:
com.sun.script.groovy.GroovyScriptEngineFactory.getMimeTypes
()Ljava/util/List;
    at uk.co.dubit.nexus.game.scripting.HelloWorld.main(HelloWorld.java
:27)
java.lang.AbstractMethodError:
com.sun.script.jruby.JRubyScriptEngineFactory.getMimeTypes
()Ljava/util/List;
    at uk.co.dubit.nexus.game.scripting.HelloWorld.main(HelloWorld.java
:27)
java.lang.AbstractMethodError:
com.sun.script.php.PHPScriptEngineFactory.getMimeTypes()Ljava/util/List;
    at uk.co.dubit.nexus.game.scripting.HelloWorld.main(HelloWorld.java
:27)
java.lang.AbstractMethodError:
com.sun.script.jython.JythonScriptEngineFactory.getMimeTypes
()Ljava/util/List;
    at uk.co.dubit.nexus.game.scripting.HelloWorld.main(HelloWorld.java
:27)
java.lang.AbstractMethodError:
com.sun.script.judo.JudoScriptEngineFactory.getMimeTypes()Ljava/util/List;
    at uk.co.dubit.nexus.game.scripting.HelloWorld.main(HelloWorld.java
:27)
Exception in thread "main" java.lang.AbstractMethodError:
com.sun.script.groovy.GroovyScriptEngineFactory.getNames()Ljava/util/List;
    at javax.script.ScriptEngineManager.getEngineByName(
ScriptEngineManager.java:216)
    at uk.co.dubit.nexus.game.scripting.HelloWorld.main(HelloWorld.java
:38)
class com.sun.script.javascript.RhinoScriptEngineFactory mime types:
[application/javascript, application/ecmascript, text/javascript,
text/ecmascript]
class com.sun.script.javascript.RhinoScriptEngineFactory extensions: [js]
class com.sun.script.javascript.RhinoScriptEngineFactory names: [js,
rhino, JavaScript, javascript, ECMAScript, ecmascript]

I'm aiming to use rhino (which looks to be loaded correctly). However the
other entries throw exceptions, and prevent me retrieving the rhino factory.
Any idea how I can stop these being registered?

Tom
--

Thomas Williams
Developer
Dubit

Tel: 0113 2501101
Web: www.dubitlimited.com

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org




--
The early bird may get the worm, but the second mouse gets the cheese.

GIF image

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to