ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Struck <M.Str...@PopNet.de>
Subject Script-Tag doesn't work
Date Tue, 05 Dec 2000 14:07:52 GMT
ok, i've download all required jar's form
http://www.mozilla.org/rhino/download.html
js.jar
bsf.jar

but the
script-sample(http://jakarta.apache.org/ant/jakarta-ant/docs/#script)
doesn't work ! :-(

dump:

....\webapp\context\WEB-INF\build.xml:7: java.lang.RuntimeException:
No Context associated with current Thread
java.lang.RuntimeException: No Context associated with current Thread
        at org.mozilla.javascript.Context.getContext(Context.java:1713)
        at
org.mozilla.javascript.ScriptRuntime.toObject(ScriptRuntime.java:492)
        at org.mozilla.javascript.Context.toObject(Context.java:1129)
        at
com.ibm.bsf.engines.javascript.JavaScriptEngine.declareBean(JavaScriptEngine
.java:134)
        at
com.ibm.bsf.engines.javascript.JavaScriptEngine.initialize(JavaScriptEngine.
java:67)
        at com.ibm.bsf.BSFManager.loadScriptingEngine(BSFManager.java:320)
        at com.ibm.bsf.BSFManager.exec(BSFManager.java:481)
        at
org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:110)
        at org.apache.tools.ant.Target.execute(Target.java:142)
        at org.apache.tools.ant.Project.runTarget(Project.java:818)
        at org.apache.tools.ant.Project.executeTarget(Project.java:532)
        at org.apache.tools.ant.Project.executeTargets(Project.java:506)
        at org.apache.tools.ant.Main.runBuild(Main.java:420)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 2 seconds

any suggestions ??

--
Marco Struck
Software Development

PopNet Kommunikation GmbH & Co KG
Medienpark Kampnagel
Barmbeker Str.10
D-22303 Hamburg

http://www.popnet.de 

Telefon: +49 (0)40 - 27 8 27 - 116
Fax: +49 (0)40 - 27 8 27 - 199
mailto:mstruck@popnet.de

Mime
View raw message