<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>bsf-user@jakarta.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/"/>
<id>http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/</id>
<updated>2009-12-09T14:28:45Z</updated>
<entry>
<title>Re: regarding BSFEngine.terminate</title>
<author><name>&quot;Rony G. Flatscher&quot; &lt;Rony.Flatscher@wu-wien.ac.at&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200910.mbox/%3c4AE8AC31.8030709@wu-wien.ac.at%3e"/>
<id>urn:uuid:%3c4AE8AC31-8030709@wu-wien-ac-at%3e</id>
<updated>2009-10-28T20:40:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Suresh,
&gt; If I run infinite loop in a jython script (in separate thread) and call BSFEninge.terminate
from a separate thread it does not seem to terminate the jython script.
&gt;  
&gt; I see that the JythonEngine which is a BSFEngine implementation for the jython script
does not override the terminate method 
&gt; to actually terminate the jython script. We are using the 2.4 version of bsf and 2.1
version of jython.
&gt;  
&gt; Is this feature provided in the newer releases of BSF? 
&gt;   
No, it would need to be implemented into the Jython engine.

&gt; If not is there any other mechanism to kill the jython script running within the bean
shell.
&gt;   
No, as this should be done with the means jython allows for, if any.

Hence, what you could do is the following: try to research jython itself
for the means it offers for terminating running jython threads
(forcefully) and then implement that in the Jython engine. If you think
that you were able to find a generic solution that adheres to the Jython
philosophy then please make your patch available via Issuezilla.

Having said all of this (which also means, that I admit of not having a
working knowledge about the inner workings of Jython), maybe there are
others on this list who may have already done that or have an advice
that could help you. (One idea could be to somehow get at the Thread
object on which the jython script executes and invoke interrupt() on it.)

HTH,

---rony



---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>regarding BSFEngine.terminate</title>
<author><name>Suresh Pendap &lt;SURESH.PENDAP@oracle.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200910.mbox/%3c1a1a8b13-9e54-49af-9836-b2823f4589cd@default%3e"/>
<id>urn:uuid:%3c1a1a8b13-9e54-49af-9836-b2823f4589cd@default%3e</id>
<updated>2009-10-28T20:20:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi guys,
 
If I run infinite loop in a jython script (in separate thread) and call BSFEninge.terminate
from a separate thread it does not seem to terminate the jython script.
 
I see that the JythonEngine which is a BSFEngine implementation for the jython script does
not override the terminate method 
to actually terminate the jython script. We are using the 2.4 version of bsf and 2.1 version
of jython.
 
Is this feature provided in the newer releases of BSF? 
 
If not is there any other mechanism to kill the jython script running within the bean shell.
 
 
Thanks
Suresh

 


</pre>
</div>
</content>
</entry>
<entry>
<title>In the move of some taglibs to Tomcat, the BSF taglib got retired</title>
<author><name>&quot;Rony G. Flatscher&quot; &lt;Rony.Flatscher@wu-wien.ac.at&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200910.mbox/%3c4ACF0DF7.1010807@wu-wien.ac.at%3e"/>
<id>urn:uuid:%3c4ACF0DF7-1010807@wu-wien-ac-at%3e</id>
<updated>2009-10-09T10:18:31Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi there,

just learned from the announcement that in the process of moving taglibs
from Jakarta to Tomcat a lot of taglibs got retired, among them the BSF
taglib.

Not sure at the moment how Tomcat will allow for creating JSPs that
embed code in scripting languages, which was one of the original
applications of BSF, when it was originally developed at IBM (as a
matter of fact, IBM's WebSphere distributed BSF in order to enable Java
Server Page authors to embed scripts in any of its supported scripting
languages, very much like MS allows for in their ASPs).

So for those who have a need for the BSF taglib, here the relevant links:

Information about BSF taglib and examples on how to use it:

    &lt;http://jakarta.apache.org/taglibs/doc/bsf-doc/&gt;

Download BSF taglib from:

    &lt;http://svn.apache.org/repos/asf/jakarta/taglibs/deprecated/bsf/trunk/&gt;

Retired taglibs as of 2009-10:

    &lt;http://jakarta.apache.org/site/retired-taglibs.html&gt;

---rony



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Can JRuby 1.1.2 be used with BSF?</title>
<author><name>Keithgchapman &lt;keithgchapman@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200904.mbox/%3c23129041.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c23129041-post@talk-nabble-com%3e</id>
<updated>2009-04-20T01:08:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Thanks Ant, I downloaded the release and tried it out and it seems like the
issue is now resolved. Thanks for the help.

Thanks,
Keith.


Anthony Elder wrote:
&gt; 
&gt; Just an FYI on the BSF 2.0 beta3 release, its taking a while to work out 
&gt; how to get the website updated but the artifacts are now released and 
&gt; available in the maven repository and distribution area if anyone needs to 
&gt; start using them before the release announcement is made when the website 
&gt; is updated.
&gt; 
&gt;    ...ant
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Keithgchapman &lt;keithgchapman@gmail.com&gt; 
&gt; 19/03/2009 15:59
&gt; Please respond to
&gt; "Bean Scripting Framework users" &lt;bsf-user@jakarta.apache.org&gt;
&gt; 
&gt; 
&gt; To
&gt; bsf-user@jakarta.apache.org
&gt; cc
&gt; 
&gt; Subject
&gt; Re: Can JRuby 1.1.2 be used with BSF?
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Hi Ant,
&gt; 
&gt; Any progress on this? Would it be possible to do a BSF release?
&gt; 
&gt; Thanks,
&gt; Keith.
&gt; 
&gt; 
&gt; 
&gt; Anthony Elder wrote:
&gt;&gt; 
&gt;&gt; There's been no discussion on the next release. If you need one with 
&gt; that 
&gt;&gt; fix i guess we could do one, though i'm off on vacation today so I 
&gt;&gt; wouldn't be able to help with that till after March 15th. 
&gt;&gt; 
&gt;&gt;    ...ant
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Keithgchapman &lt;keithgchapman@gmail.com&gt; 
&gt;&gt; 04/03/2009 09:58
&gt;&gt; Please respond to
&gt;&gt; "Bean Scripting Framework users" &lt;bsf-user@jakarta.apache.org&gt;
&gt;&gt; 
&gt;&gt; 
&gt;&gt; To
&gt;&gt; bsf-user@jakarta.apache.org
&gt;&gt; cc
&gt;&gt; 
&gt;&gt; Subject
&gt;&gt; Re: Can JRuby 1.1.2 be used with BSF?
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Hi Ant,
&gt;&gt; 
&gt;&gt; Yes I feared so. Is there any timeline as to when this would happen?
&gt;&gt; 
&gt;&gt; Thanks,
&gt;&gt; Keith.
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Anthony Elder wrote:
&gt;&gt;&gt; 
&gt;&gt;&gt; Looks like no, the JRuby engine used by BSF 3.0-beta2 doesn't work with 
&gt; 
&gt;&gt;&gt; JRuby 1.1.2 or 1.1.3 as there have been some non-compatible changes. We 
&gt; 
&gt;&gt;&gt; need to upgrade BSF to the latest engine which works with JRuby 1.1.3 
&gt;&gt; and 
&gt;&gt;&gt; the earlier JRuby releases.
&gt;&gt;&gt; 
&gt;&gt;&gt;    ...ant
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; Keithgchapman &lt;keithgchapman@gmail.com&gt; 
&gt;&gt;&gt; 04/03/2009 05:48
&gt;&gt;&gt; Please respond to
&gt;&gt;&gt; "Bean Scripting Framework users" &lt;bsf-user@jakarta.apache.org&gt;
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; To
&gt;&gt;&gt; bsf-user@jakarta.apache.org
&gt;&gt;&gt; cc
&gt;&gt;&gt; 
&gt;&gt;&gt; Subject
&gt;&gt;&gt; Can JRuby 1.1.2 be used with BSF?
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; Hi,
&gt;&gt;&gt; 
&gt;&gt;&gt; I am using JRuby 1.0.1 with BSF 3.0-beta2 and it works fine. Due to 
&gt; this 
&gt;&gt; 
&gt;&gt;&gt; bug
&gt;&gt;&gt; reported on JRuby [1] I want to upgrade my JRuby version. I tried this 
&gt;&gt; but
&gt;&gt;&gt; it failed with the following exception. Are there any plans to upgrade 
&gt;&gt; the
&gt;&gt;&gt; supported JRuby version?
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt; 
&gt; org.jruby.Ruby.parse(Ljava/lang/String;Ljava/lang/String;Lorg/jruby/runtime/DynamicScope;I)Lorg/jruby/ast/Node;
&gt;&gt;&gt;         at
&gt;&gt;&gt; 
&gt;&gt; 
&gt; com.sun.script.jruby.JRubyScriptEngine.compileScript(JRubyScriptEngine.java:197)
&gt;&gt;&gt;         at
&gt;&gt;&gt; com.sun.script.jruby.JRubyScriptEngine.eval(JRubyScriptEngine.java:137)
&gt;&gt;&gt;         at
&gt;&gt;&gt; javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:89)
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; [1] http://jira.codehaus.org/browse/JRUBY-249Thanks,
&gt;&gt;&gt; Keith.
&gt;&gt;&gt; -- 
&gt;&gt;&gt; View this message in context: 
&gt;&gt;&gt; 
&gt;&gt; 
&gt; http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22324091.html
&gt; 
&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; Sent from the BSF - User mailing list archive at Nabble.com.
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
&gt;&gt;&gt; For additional commands, e-mail: bsf-user-help@jakarta.apache.org
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; Unless stated otherwise above:
&gt;&gt;&gt; IBM United Kingdom Limited - Registered in England and Wales with 
&gt; number 
&gt;&gt; 
&gt;&gt;&gt; 741598. 
&gt;&gt;&gt; Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 
&gt;&gt; 3AU
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt;&gt; 
&gt;&gt; 
&gt;&gt; -- 
&gt;&gt; View this message in context: 
&gt;&gt; 
&gt; http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22326881.html
&gt; 
&gt;&gt; 
&gt;&gt; Sent from the BSF - User mailing list archive at Nabble.com.
&gt;&gt; 
&gt;&gt; 
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
&gt;&gt; For additional commands, e-mail: bsf-user-help@jakarta.apache.org
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Unless stated otherwise above:
&gt;&gt; IBM United Kingdom Limited - Registered in England and Wales with number 
&gt; 
&gt;&gt; 741598. 
&gt;&gt; Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 
&gt; 3AU
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt; 
&gt; -- 
&gt; View this message in context: 
&gt; http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22602171.html
&gt; 
&gt; Sent from the BSF - User mailing list archive at Nabble.com.
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: bsf-user-help@jakarta.apache.org
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Unless stated otherwise above:
&gt; IBM United Kingdom Limited - Registered in England and Wales with number 
&gt; 741598. 
&gt; Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 

-- 
View this message in context: http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p23129041.html
Sent from the BSF - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Can JRuby 1.1.2 be used with BSF?</title>
<author><name>Anthony Elder &lt;ant.elder@uk.ibm.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200904.mbox/%3cOF00BAEC4C.FBA208ED-ON8025759D.0062D563-8025759D.00633E7D@uk.ibm.com%3e"/>
<id>urn:uuid:%3cOF00BAEC4C-FBA208ED-ON8025759D-0062D563-8025759D-00633E7D@uk-ibm-com%3e</id>
<updated>2009-04-19T18:03:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Just an FYI on the BSF 2.0 beta3 release, its taking a while to work out 
how to get the website updated but the artifacts are now released and 
available in the maven repository and distribution area if anyone needs to 
start using them before the release announcement is made when the website 
is updated.

   ...ant






Keithgchapman &lt;keithgchapman@gmail.com&gt; 
19/03/2009 15:59
Please respond to
"Bean Scripting Framework users" &lt;bsf-user@jakarta.apache.org&gt;


To
bsf-user@jakarta.apache.org
cc

Subject
Re: Can JRuby 1.1.2 be used with BSF?







Hi Ant,

Any progress on this? Would it be possible to do a BSF release?

Thanks,
Keith.



Anthony Elder wrote:
&gt; 
&gt; There's been no discussion on the next release. If you need one with 
that 
&gt; fix i guess we could do one, though i'm off on vacation today so I 
&gt; wouldn't be able to help with that till after March 15th. 
&gt; 
&gt;    ...ant
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Keithgchapman &lt;keithgchapman@gmail.com&gt; 
&gt; 04/03/2009 09:58
&gt; Please respond to
&gt; "Bean Scripting Framework users" &lt;bsf-user@jakarta.apache.org&gt;
&gt; 
&gt; 
&gt; To
&gt; bsf-user@jakarta.apache.org
&gt; cc
&gt; 
&gt; Subject
&gt; Re: Can JRuby 1.1.2 be used with BSF?
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Hi Ant,
&gt; 
&gt; Yes I feared so. Is there any timeline as to when this would happen?
&gt; 
&gt; Thanks,
&gt; Keith.
&gt; 
&gt; 
&gt; 
&gt; Anthony Elder wrote:
&gt;&gt; 
&gt;&gt; Looks like no, the JRuby engine used by BSF 3.0-beta2 doesn't work with 

&gt;&gt; JRuby 1.1.2 or 1.1.3 as there have been some non-compatible changes. We 

&gt;&gt; need to upgrade BSF to the latest engine which works with JRuby 1.1.3 
&gt; and 
&gt;&gt; the earlier JRuby releases.
&gt;&gt; 
&gt;&gt;    ...ant
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Keithgchapman &lt;keithgchapman@gmail.com&gt; 
&gt;&gt; 04/03/2009 05:48
&gt;&gt; Please respond to
&gt;&gt; "Bean Scripting Framework users" &lt;bsf-user@jakarta.apache.org&gt;
&gt;&gt; 
&gt;&gt; 
&gt;&gt; To
&gt;&gt; bsf-user@jakarta.apache.org
&gt;&gt; cc
&gt;&gt; 
&gt;&gt; Subject
&gt;&gt; Can JRuby 1.1.2 be used with BSF?
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Hi,
&gt;&gt; 
&gt;&gt; I am using JRuby 1.0.1 with BSF 3.0-beta2 and it works fine. Due to 
this 
&gt; 
&gt;&gt; bug
&gt;&gt; reported on JRuby [1] I want to upgrade my JRuby version. I tried this 
&gt; but
&gt;&gt; it failed with the following exception. Are there any plans to upgrade 
&gt; the
&gt;&gt; supported JRuby version?
&gt;&gt; 
&gt;&gt; 
&gt; 
org.jruby.Ruby.parse(Ljava/lang/String;Ljava/lang/String;Lorg/jruby/runtime/DynamicScope;I)Lorg/jruby/ast/Node;
&gt;&gt;         at
&gt;&gt; 
&gt; 
com.sun.script.jruby.JRubyScriptEngine.compileScript(JRubyScriptEngine.java:197)
&gt;&gt;         at
&gt;&gt; com.sun.script.jruby.JRubyScriptEngine.eval(JRubyScriptEngine.java:137)
&gt;&gt;         at
&gt;&gt; javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:89)
&gt;&gt; 
&gt;&gt; 
&gt;&gt; [1] http://jira.codehaus.org/browse/JRUBY-249Thanks,
&gt;&gt; Keith.
&gt;&gt; -- 
&gt;&gt; View this message in context: 
&gt;&gt; 
&gt; 
http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22324091.html

&gt; 
&gt;&gt; 
&gt;&gt; Sent from the BSF - User mailing list archive at Nabble.com.
&gt;&gt; 
&gt;&gt; 
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
&gt;&gt; For additional commands, e-mail: bsf-user-help@jakarta.apache.org
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Unless stated otherwise above:
&gt;&gt; IBM United Kingdom Limited - Registered in England and Wales with 
number 
&gt; 
&gt;&gt; 741598. 
&gt;&gt; Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 
&gt; 3AU
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt; 
&gt; -- 
&gt; View this message in context: 
&gt; 
http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22326881.html

&gt; 
&gt; Sent from the BSF - User mailing list archive at Nabble.com.
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: bsf-user-help@jakarta.apache.org
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Unless stated otherwise above:
&gt; IBM United Kingdom Limited - Registered in England and Wales with number 

&gt; 741598. 
&gt; Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 
3AU
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 

-- 
View this message in context: 
http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22602171.html

Sent from the BSF - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org









Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Can JRuby 1.1.2 be used with BSF?</title>
<author><name>Keithgchapman &lt;keithgchapman@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200903.mbox/%3c22602171.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c22602171-post@talk-nabble-com%3e</id>
<updated>2009-03-19T15:59:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi Ant,

Any progress on this? Would it be possible to do a BSF release?

Thanks,
Keith.



Anthony Elder wrote:
&gt; 
&gt; There's been no discussion on the next release. If you need one with that 
&gt; fix i guess we could do one, though i'm off on vacation today so I 
&gt; wouldn't be able to help with that till after March 15th. 
&gt; 
&gt;    ...ant
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Keithgchapman &lt;keithgchapman@gmail.com&gt; 
&gt; 04/03/2009 09:58
&gt; Please respond to
&gt; "Bean Scripting Framework users" &lt;bsf-user@jakarta.apache.org&gt;
&gt; 
&gt; 
&gt; To
&gt; bsf-user@jakarta.apache.org
&gt; cc
&gt; 
&gt; Subject
&gt; Re: Can JRuby 1.1.2 be used with BSF?
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Hi Ant,
&gt; 
&gt; Yes I feared so. Is there any timeline as to when this would happen?
&gt; 
&gt; Thanks,
&gt; Keith.
&gt; 
&gt; 
&gt; 
&gt; Anthony Elder wrote:
&gt;&gt; 
&gt;&gt; Looks like no, the JRuby engine used by BSF 3.0-beta2 doesn't work with 
&gt;&gt; JRuby 1.1.2 or 1.1.3 as there have been some non-compatible changes. We 
&gt;&gt; need to upgrade BSF to the latest engine which works with JRuby 1.1.3 
&gt; and 
&gt;&gt; the earlier JRuby releases.
&gt;&gt; 
&gt;&gt;    ...ant
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Keithgchapman &lt;keithgchapman@gmail.com&gt; 
&gt;&gt; 04/03/2009 05:48
&gt;&gt; Please respond to
&gt;&gt; "Bean Scripting Framework users" &lt;bsf-user@jakarta.apache.org&gt;
&gt;&gt; 
&gt;&gt; 
&gt;&gt; To
&gt;&gt; bsf-user@jakarta.apache.org
&gt;&gt; cc
&gt;&gt; 
&gt;&gt; Subject
&gt;&gt; Can JRuby 1.1.2 be used with BSF?
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Hi,
&gt;&gt; 
&gt;&gt; I am using JRuby 1.0.1 with BSF 3.0-beta2 and it works fine. Due to this 
&gt; 
&gt;&gt; bug
&gt;&gt; reported on JRuby [1] I want to upgrade my JRuby version. I tried this 
&gt; but
&gt;&gt; it failed with the following exception. Are there any plans to upgrade 
&gt; the
&gt;&gt; supported JRuby version?
&gt;&gt; 
&gt;&gt; 
&gt; org.jruby.Ruby.parse(Ljava/lang/String;Ljava/lang/String;Lorg/jruby/runtime/DynamicScope;I)Lorg/jruby/ast/Node;
&gt;&gt;         at
&gt;&gt; 
&gt; com.sun.script.jruby.JRubyScriptEngine.compileScript(JRubyScriptEngine.java:197)
&gt;&gt;         at
&gt;&gt; com.sun.script.jruby.JRubyScriptEngine.eval(JRubyScriptEngine.java:137)
&gt;&gt;         at
&gt;&gt; javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:89)
&gt;&gt; 
&gt;&gt; 
&gt;&gt; [1] http://jira.codehaus.org/browse/JRUBY-249Thanks,
&gt;&gt; Keith.
&gt;&gt; -- 
&gt;&gt; View this message in context: 
&gt;&gt; 
&gt; http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22324091.html
&gt; 
&gt;&gt; 
&gt;&gt; Sent from the BSF - User mailing list archive at Nabble.com.
&gt;&gt; 
&gt;&gt; 
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
&gt;&gt; For additional commands, e-mail: bsf-user-help@jakarta.apache.org
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Unless stated otherwise above:
&gt;&gt; IBM United Kingdom Limited - Registered in England and Wales with number 
&gt; 
&gt;&gt; 741598. 
&gt;&gt; Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 
&gt; 3AU
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt; 
&gt; -- 
&gt; View this message in context: 
&gt; http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22326881.html
&gt; 
&gt; Sent from the BSF - User mailing list archive at Nabble.com.
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: bsf-user-help@jakarta.apache.org
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Unless stated otherwise above:
&gt; IBM United Kingdom Limited - Registered in England and Wales with number 
&gt; 741598. 
&gt; Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 

-- 
View this message in context: http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22602171.html
Sent from the BSF - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Can JRuby 1.1.2 be used with BSF?</title>
<author><name>Keithgchapman &lt;keithgchapman@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200903.mbox/%3c22353038.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c22353038-post@talk-nabble-com%3e</id>
<updated>2009-03-05T14:46:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>



Anthony Elder wrote:
&gt; 
&gt; There's been no discussion on the next release. If you need one with that 
&gt; fix i guess we could do one, though i'm off on vacation today so I 
&gt; wouldn't be able to help with that till after March 15th. 
&gt; 
&gt; That would be awesome Ant.  Looking forward to the new release...
&gt; 
&gt; Thanks,
&gt; Keith.
&gt; 
&gt;    ...ant
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Keithgchapman &lt;keithgchapman@gmail.com&gt; 
&gt; 04/03/2009 09:58
&gt; Please respond to
&gt; "Bean Scripting Framework users" &lt;bsf-user@jakarta.apache.org&gt;
&gt; 
&gt; 
&gt; To
&gt; bsf-user@jakarta.apache.org
&gt; cc
&gt; 
&gt; Subject
&gt; Re: Can JRuby 1.1.2 be used with BSF?
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Hi Ant,
&gt; 
&gt; Yes I feared so. Is there any timeline as to when this would happen?
&gt; 
&gt; Thanks,
&gt; Keith.
&gt; 
&gt; 
&gt; 
&gt; Anthony Elder wrote:
&gt;&gt; 
&gt;&gt; Looks like no, the JRuby engine used by BSF 3.0-beta2 doesn't work with 
&gt;&gt; JRuby 1.1.2 or 1.1.3 as there have been some non-compatible changes. We 
&gt;&gt; need to upgrade BSF to the latest engine which works with JRuby 1.1.3 
&gt; and 
&gt;&gt; the earlier JRuby releases.
&gt;&gt; 
&gt;&gt;    ...ant
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Keithgchapman &lt;keithgchapman@gmail.com&gt; 
&gt;&gt; 04/03/2009 05:48
&gt;&gt; Please respond to
&gt;&gt; "Bean Scripting Framework users" &lt;bsf-user@jakarta.apache.org&gt;
&gt;&gt; 
&gt;&gt; 
&gt;&gt; To
&gt;&gt; bsf-user@jakarta.apache.org
&gt;&gt; cc
&gt;&gt; 
&gt;&gt; Subject
&gt;&gt; Can JRuby 1.1.2 be used with BSF?
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Hi,
&gt;&gt; 
&gt;&gt; I am using JRuby 1.0.1 with BSF 3.0-beta2 and it works fine. Due to this 
&gt; 
&gt;&gt; bug
&gt;&gt; reported on JRuby [1] I want to upgrade my JRuby version. I tried this 
&gt; but
&gt;&gt; it failed with the following exception. Are there any plans to upgrade 
&gt; the
&gt;&gt; supported JRuby version?
&gt;&gt; 
&gt;&gt; 
&gt; org.jruby.Ruby.parse(Ljava/lang/String;Ljava/lang/String;Lorg/jruby/runtime/DynamicScope;I)Lorg/jruby/ast/Node;
&gt;&gt;         at
&gt;&gt; 
&gt; com.sun.script.jruby.JRubyScriptEngine.compileScript(JRubyScriptEngine.java:197)
&gt;&gt;         at
&gt;&gt; com.sun.script.jruby.JRubyScriptEngine.eval(JRubyScriptEngine.java:137)
&gt;&gt;         at
&gt;&gt; javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:89)
&gt;&gt; 
&gt;&gt; 
&gt;&gt; [1] http://jira.codehaus.org/browse/JRUBY-249Thanks,
&gt;&gt; Keith.
&gt;&gt; -- 
&gt;&gt; View this message in context: 
&gt;&gt; 
&gt; http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22324091.html
&gt; 
&gt;&gt; 
&gt;&gt; Sent from the BSF - User mailing list archive at Nabble.com.
&gt;&gt; 
&gt;&gt; 
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
&gt;&gt; For additional commands, e-mail: bsf-user-help@jakarta.apache.org
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Unless stated otherwise above:
&gt;&gt; IBM United Kingdom Limited - Registered in England and Wales with number 
&gt; 
&gt;&gt; 741598. 
&gt;&gt; Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 
&gt; 3AU
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt; 
&gt; -- 
&gt; View this message in context: 
&gt; http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22326881.html
&gt; 
&gt; Sent from the BSF - User mailing list archive at Nabble.com.
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: bsf-user-help@jakarta.apache.org
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Unless stated otherwise above:
&gt; IBM United Kingdom Limited - Registered in England and Wales with number 
&gt; 741598. 
&gt; Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 

-- 
View this message in context: http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22353038.html
Sent from the BSF - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Can JRuby 1.1.2 be used with BSF?</title>
<author><name>Anthony Elder &lt;ant.elder@uk.ibm.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200903.mbox/%3cOF720004F9.F319F26F-ON80257570.004BC654-80257570.004BF8A6@uk.ibm.com%3e"/>
<id>urn:uuid:%3cOF720004F9-F319F26F-ON80257570-004BC654-80257570-004BF8A6@uk-ibm-com%3e</id>
<updated>2009-03-05T13:49:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
There's been no discussion on the next release. If you need one with that 
fix i guess we could do one, though i'm off on vacation today so I 
wouldn't be able to help with that till after March 15th. 

   ...ant




Keithgchapman &lt;keithgchapman@gmail.com&gt; 
04/03/2009 09:58
Please respond to
"Bean Scripting Framework users" &lt;bsf-user@jakarta.apache.org&gt;


To
bsf-user@jakarta.apache.org
cc

Subject
Re: Can JRuby 1.1.2 be used with BSF?







Hi Ant,

Yes I feared so. Is there any timeline as to when this would happen?

Thanks,
Keith.



Anthony Elder wrote:
&gt; 
&gt; Looks like no, the JRuby engine used by BSF 3.0-beta2 doesn't work with 
&gt; JRuby 1.1.2 or 1.1.3 as there have been some non-compatible changes. We 
&gt; need to upgrade BSF to the latest engine which works with JRuby 1.1.3 
and 
&gt; the earlier JRuby releases.
&gt; 
&gt;    ...ant
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Keithgchapman &lt;keithgchapman@gmail.com&gt; 
&gt; 04/03/2009 05:48
&gt; Please respond to
&gt; "Bean Scripting Framework users" &lt;bsf-user@jakarta.apache.org&gt;
&gt; 
&gt; 
&gt; To
&gt; bsf-user@jakarta.apache.org
&gt; cc
&gt; 
&gt; Subject
&gt; Can JRuby 1.1.2 be used with BSF?
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Hi,
&gt; 
&gt; I am using JRuby 1.0.1 with BSF 3.0-beta2 and it works fine. Due to this 

&gt; bug
&gt; reported on JRuby [1] I want to upgrade my JRuby version. I tried this 
but
&gt; it failed with the following exception. Are there any plans to upgrade 
the
&gt; supported JRuby version?
&gt; 
&gt; 
org.jruby.Ruby.parse(Ljava/lang/String;Ljava/lang/String;Lorg/jruby/runtime/DynamicScope;I)Lorg/jruby/ast/Node;
&gt;         at
&gt; 
com.sun.script.jruby.JRubyScriptEngine.compileScript(JRubyScriptEngine.java:197)
&gt;         at
&gt; com.sun.script.jruby.JRubyScriptEngine.eval(JRubyScriptEngine.java:137)
&gt;         at
&gt; javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:89)
&gt; 
&gt; 
&gt; [1] http://jira.codehaus.org/browse/JRUBY-249Thanks,
&gt; Keith.
&gt; -- 
&gt; View this message in context: 
&gt; 
http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22324091.html

&gt; 
&gt; Sent from the BSF - User mailing list archive at Nabble.com.
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: bsf-user-help@jakarta.apache.org
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Unless stated otherwise above:
&gt; IBM United Kingdom Limited - Registered in England and Wales with number 

&gt; 741598. 
&gt; Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 
3AU
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 

-- 
View this message in context: 
http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22326881.html

Sent from the BSF - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org








Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Can JRuby 1.1.2 be used with BSF?</title>
<author><name>Keithgchapman &lt;keithgchapman@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200903.mbox/%3c22326881.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c22326881-post@talk-nabble-com%3e</id>
<updated>2009-03-04T09:58:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi Ant,

Yes I feared so. Is there any timeline as to when this would happen?

Thanks,
Keith.



Anthony Elder wrote:
&gt; 
&gt; Looks like no, the JRuby engine used by BSF 3.0-beta2 doesn't work with 
&gt; JRuby 1.1.2 or 1.1.3 as there have been some non-compatible changes. We 
&gt; need to upgrade BSF to the latest engine which works with JRuby 1.1.3 and 
&gt; the earlier JRuby releases.
&gt; 
&gt;    ...ant
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Keithgchapman &lt;keithgchapman@gmail.com&gt; 
&gt; 04/03/2009 05:48
&gt; Please respond to
&gt; "Bean Scripting Framework users" &lt;bsf-user@jakarta.apache.org&gt;
&gt; 
&gt; 
&gt; To
&gt; bsf-user@jakarta.apache.org
&gt; cc
&gt; 
&gt; Subject
&gt; Can JRuby 1.1.2 be used with BSF?
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Hi,
&gt; 
&gt; I am using JRuby 1.0.1 with BSF 3.0-beta2 and it works fine. Due to this 
&gt; bug
&gt; reported on JRuby [1] I want to upgrade my JRuby version. I tried this but
&gt; it failed with the following exception. Are there any plans to upgrade the
&gt; supported JRuby version?
&gt; 
&gt; org.jruby.Ruby.parse(Ljava/lang/String;Ljava/lang/String;Lorg/jruby/runtime/DynamicScope;I)Lorg/jruby/ast/Node;
&gt;         at
&gt; com.sun.script.jruby.JRubyScriptEngine.compileScript(JRubyScriptEngine.java:197)
&gt;         at
&gt; com.sun.script.jruby.JRubyScriptEngine.eval(JRubyScriptEngine.java:137)
&gt;         at
&gt; javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:89)
&gt; 
&gt; 
&gt; [1] http://jira.codehaus.org/browse/JRUBY-249Thanks,
&gt; Keith.
&gt; -- 
&gt; View this message in context: 
&gt; http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22324091.html
&gt; 
&gt; Sent from the BSF - User mailing list archive at Nabble.com.
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: bsf-user-help@jakarta.apache.org
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; Unless stated otherwise above:
&gt; IBM United Kingdom Limited - Registered in England and Wales with number 
&gt; 741598. 
&gt; Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 

-- 
View this message in context: http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22326881.html
Sent from the BSF - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Can JRuby 1.1.2 be used with BSF?</title>
<author><name>Anthony Elder &lt;ant.elder@uk.ibm.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200903.mbox/%3cOFAB6D43D3.42DEEC4D-ON8025756F.0035E8B9-8025756F.00365C14@uk.ibm.com%3e"/>
<id>urn:uuid:%3cOFAB6D43D3-42DEEC4D-ON8025756F-0035E8B9-8025756F-00365C14@uk-ibm-com%3e</id>
<updated>2009-03-04T09:53:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Looks like no, the JRuby engine used by BSF 3.0-beta2 doesn't work with 
JRuby 1.1.2 or 1.1.3 as there have been some non-compatible changes. We 
need to upgrade BSF to the latest engine which works with JRuby 1.1.3 and 
the earlier JRuby releases.

   ...ant





Keithgchapman &lt;keithgchapman@gmail.com&gt; 
04/03/2009 05:48
Please respond to
"Bean Scripting Framework users" &lt;bsf-user@jakarta.apache.org&gt;


To
bsf-user@jakarta.apache.org
cc

Subject
Can JRuby 1.1.2 be used with BSF?







Hi,

I am using JRuby 1.0.1 with BSF 3.0-beta2 and it works fine. Due to this 
bug
reported on JRuby [1] I want to upgrade my JRuby version. I tried this but
it failed with the following exception. Are there any plans to upgrade the
supported JRuby version?

org.jruby.Ruby.parse(Ljava/lang/String;Ljava/lang/String;Lorg/jruby/runtime/DynamicScope;I)Lorg/jruby/ast/Node;
        at
com.sun.script.jruby.JRubyScriptEngine.compileScript(JRubyScriptEngine.java:197)
        at
com.sun.script.jruby.JRubyScriptEngine.eval(JRubyScriptEngine.java:137)
        at
javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:89)


[1] http://jira.codehaus.org/browse/JRUBY-249Thanks,
Keith.
-- 
View this message in context: 
http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22324091.html

Sent from the BSF - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org








Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







</pre>
</div>
</content>
</entry>
<entry>
<title>Can JRuby 1.1.2 be used with BSF?</title>
<author><name>Keithgchapman &lt;keithgchapman@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200903.mbox/%3c22324091.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c22324091-post@talk-nabble-com%3e</id>
<updated>2009-03-04T05:48:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,

I am using JRuby 1.0.1 with BSF 3.0-beta2 and it works fine. Due to this bug
reported on JRuby [1] I want to upgrade my JRuby version. I tried this but
it failed with the following exception. Are there any plans to upgrade the
supported JRuby version?

org.jruby.Ruby.parse(Ljava/lang/String;Ljava/lang/String;Lorg/jruby/runtime/DynamicScope;I)Lorg/jruby/ast/Node;
        at
com.sun.script.jruby.JRubyScriptEngine.compileScript(JRubyScriptEngine.java:197)
        at
com.sun.script.jruby.JRubyScriptEngine.eval(JRubyScriptEngine.java:137)
        at
javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:89)


[1] http://jira.codehaus.org/browse/JRUBY-249Thanks,
Keith.
-- 
View this message in context: http://www.nabble.com/Can-JRuby-1.1.2-be-used-with-BSF--tp22324091p22324091.html
Sent from the BSF - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Identifying required properities</title>
<author><name>&quot;Rony G. Flatscher (Apache)&quot; &lt;rony@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200902.mbox/%3c4991F9D1.5050105@apache.org%3e"/>
<id>urn:uuid:%3c4991F9D1-5050105@apache-org%3e</id>
<updated>2009-02-10T22:04:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
David,
&gt; This is not quite what I want to do though.  From your example below, I 
&gt; need to identify all the places in the script that do a 
&gt; bsf.lookupBean(...) and get the value of the string being passed in. Given 
&gt; that this could be a variable, it may be very difficult, but I may be 
&gt; willing to restrict our usage such that the value would always be an 
&gt; inlined constant.  Also, I'd really like to know the type of the object 
&gt; being set on the lhs.   Any hopes for any of that?  Thanks.
&gt;   
Not quite sure, what you would like to achieve and what obstacles you
foresee at the moment. Could you elaborate a little bit more, what you
would like to achieve?

Regards,

---rony


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Identifying required properities</title>
<author><name>David Wood &lt;dawood@us.ibm.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200902.mbox/%3cOFE77F2602.3AD97321-ON85257559.00539209-85257559.0053C732@us.ibm.com%3e"/>
<id>urn:uuid:%3cOFE77F2602-3AD97321-ON85257559-00539209-85257559-0053C732@us-ibm-com%3e</id>
<updated>2009-02-10T15:15:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Rony,

This is not quite what I want to do though.  From your example below, I 
need to identify all the places in the script that do a 
bsf.lookupBean(...) and get the value of the string being passed in. Given 
that this could be a variable, it may be very difficult, but I may be 
willing to restrict our usage such that the value would always be an 
inlined constant.  Also, I'd really like to know the type of the object 
being set on the lhs.   Any hopes for any of that?  Thanks.

David Wood 
Policy Technologies Group
IBM TJ Watson Research Center
dawood@us.ibm.com
914-784-5123 (office), 914-396-6515 (mobile)




From:
"Rony G. Flatscher (Apache)" &lt;rony@apache.org&gt;
To:
Bean Scripting Framework users &lt;bsf-user@jakarta.apache.org&gt;
Date:
02/10/2009 03:05 AM
Subject:
Re: Identifying required properities



Hi David,

David Wood wrote:
&gt; I'm new to BSF, so be gentle...I'm wondering if, given an arbitrary 
&gt; script, there is a way to determine the beans that need to be declared 
for 
&gt; the script to execute without throwing 'undefined' exceptions.  For 
&gt; example, 
&gt;
&gt;
&gt; String s;
&gt; System.out.printl(s);
&gt;
&gt;
&gt; I'm assuming that 's' must be declared before the script will execute 
&gt; properly, but how can I figure out whether it is 's' or some other 
symbol. 
&gt; I'd also like to understand the type of the required symbol.  Thanks for 

&gt; any help.
&gt; 
In BSF 2.4 you would first register those Java objects with the
BSFRegistry using the BSFManager's declareBean() or registerBean() that
the script should have access to. Then in the script you would use
BSFLookup() to gain access to the Java object stored in the BSFRegistry.

Here's a starting point to study BSFManager's members online:
&lt;
http://wi.wu-wien.ac.at/rgf/rexx/bsf4rexx/current/docs/docs.apache.bsf/org/apache/bsf/BSFManager.html
&gt;.

Here's an example from the BSF samples in which "ScriptedUI.java"
creates an awt based user-interface, registers some (GUI) Java objects,
invokes a JavaScript script depending on the filetype (e.g. "ui.js" will
invoke JavaScript) which then runs and retrieves the registered object
and interacts with it. To use this you need to issue "java ScriptedUI
ui.js".

------------------- cut here (ScriptedUI.java) --------------------

/* This example shows how a Java app can allow a script to customize
   a UI */

import java.awt.*;
import java.awt.event.*;
import java.io.*;

import org.apache.bsf.*;
import org.apache.bsf.util.*;

public class ScriptedUI {
  BSFManager mgr = new BSFManager ();

  public ScriptedUI (String fileName) {
    Frame f = new Frame ("Application's Main Frame");
    f.addWindowListener (new WindowAdapter () {
      public void windowClosing (WindowEvent e) {
                 System.exit (0);
      }
    });

    Panel p = new Panel ();
    f.add ("Center", p);
    f.add ("North", new Button ("North Button"));
    f.add ("South", new Button ("South Button"));

    mgr.registerBean ("centerPanel", p);
    mgr.registerBean ("parentFrame", f); // --rgf, 2006-08-08: to allow 
Jacl to get to frame ...

    // exec script engine code to do its thing for this
    try {
      String language = BSFManager.getLangFromFilename (fileName);
      FileReader in = new FileReader (fileName);
      String script = IOUtils.getStringFromReader (in);

      mgr.exec (language, fileName, -1, -1, script);
    } catch (BSFException e) {
      System.err.println ("Ouch: " + e.getMessage ());
      e.printStackTrace ();
    } catch (IOException e) {
      System.err.println ("Ouch: " + e.getMessage ());
      e.printStackTrace ();
    }

    // now pack and show the frame
    f.pack ();
    f.show ();
  }

  public static void main (String[] args) throws Exception {
    if (args.length != 1) {
      System.err.println ("Usage: java ScriptedUI filename");
      System.err.println ("       where filename is the name of the 
script");
      System.exit (1);
    }
    new ScriptedUI (args[0]);
  }
}


------------------- cut here (ScriptedUI.java) --------------------


------------------- cut here (ui.js) --------------------

/* pick up the center panel bean */
p = bsf.lookupBean ("centerPanel");

/* set the layout manager to border */
p.setLayout (new java.awt.BorderLayout ());

/* add a few things */
p.add ("Center", new java.awt.Label ("Middle from JavaScript"));
p.add ("North", new java.awt.TextField ("north text from JavaScript"));
p.add ("South", new java.awt.TextField ("south text from JavaScript"));
p.add ("East", new java.awt.Button ("inner east from JavaScript"));
p.add ("West", new java.awt.Button ("inner west from JavaScript"));

/* configure p a bit */
p.setBackground (java.awt.Color.red);

/* configure the frame that p is in */
f = p.getParent ();
f.setTitle ("Hello from JavaScript (title reset from JavaScript)");


------------------- cut here (ui.js) --------------------

HTH,

---rony








---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org





</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Identifying required properities</title>
<author><name>&quot;Rony G. Flatscher (Apache)&quot; &lt;rony@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200902.mbox/%3c49913521.3020801@apache.org%3e"/>
<id>urn:uuid:%3c49913521-3020801@apache-org%3e</id>
<updated>2009-02-10T08:04:49Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi David,

David Wood wrote:
&gt; I'm new to BSF, so be gentle...I'm wondering if, given an arbitrary 
&gt; script, there is a way to determine the beans that need to be declared for 
&gt; the script to execute without throwing 'undefined' exceptions.  For 
&gt; example, 
&gt;
&gt;
&gt; String s;
&gt; System.out.printl(s);
&gt;
&gt;
&gt; I'm assuming that 's' must be declared before the script will execute 
&gt; properly, but how can I figure out whether it is 's' or some other symbol. 
&gt; I'd also like to understand the type of the required symbol.  Thanks for 
&gt; any help.
&gt;   
In BSF 2.4 you would first register those Java objects with the
BSFRegistry using the BSFManager's declareBean() or registerBean() that
the script should have access to. Then in the script you would use
BSFLookup() to gain access to the Java object stored in the BSFRegistry.

Here's a starting point to study BSFManager's members online:
&lt;http://wi.wu-wien.ac.at/rgf/rexx/bsf4rexx/current/docs/docs.apache.bsf/org/apache/bsf/BSFManager.html&gt;.

Here's an example from the BSF samples in which "ScriptedUI.java"
creates an awt based user-interface, registers some (GUI) Java objects,
invokes a JavaScript script depending on the filetype (e.g. "ui.js" will
invoke JavaScript) which then runs and retrieves the registered object
and interacts with it. To use this you need to issue "java ScriptedUI
ui.js".

------------------- cut here (ScriptedUI.java) --------------------

/* This example shows how a Java app can allow a script to customize
   a UI */

import java.awt.*;
import java.awt.event.*;
import java.io.*;

import org.apache.bsf.*;
import org.apache.bsf.util.*;

public class ScriptedUI {
  BSFManager mgr = new BSFManager ();

  public ScriptedUI (String fileName) {
    Frame f = new Frame ("Application's Main Frame");
    f.addWindowListener (new WindowAdapter () {
      public void windowClosing (WindowEvent e) {
	System.exit (0);
      }
    });

    Panel p = new Panel ();
    f.add ("Center", p);
    f.add ("North", new Button ("North Button"));
    f.add ("South", new Button ("South Button"));

    mgr.registerBean ("centerPanel", p);
    mgr.registerBean ("parentFrame", f); // --rgf, 2006-08-08: to allow Jacl to get to frame
...

    // exec script engine code to do its thing for this
    try {
      String language = BSFManager.getLangFromFilename (fileName);
      FileReader in = new FileReader (fileName);
      String script = IOUtils.getStringFromReader (in);

      mgr.exec (language, fileName, -1, -1, script);
    } catch (BSFException e) {
      System.err.println ("Ouch: " + e.getMessage ());
      e.printStackTrace ();
    } catch (IOException e) {
      System.err.println ("Ouch: " + e.getMessage ());
      e.printStackTrace ();
    }

    // now pack and show the frame
    f.pack ();
    f.show ();
  }

  public static void main (String[] args) throws Exception {
    if (args.length != 1) {
      System.err.println ("Usage: java ScriptedUI filename");
      System.err.println ("       where filename is the name of the script");
      System.exit (1);
    }
    new ScriptedUI (args[0]);
  }
}


------------------- cut here (ScriptedUI.java) --------------------


------------------- cut here (ui.js) --------------------

/* pick up the center panel bean */
p = bsf.lookupBean ("centerPanel");

/* set the layout manager to border */
p.setLayout (new java.awt.BorderLayout ());

/* add a few things */
p.add ("Center", new java.awt.Label ("Middle from JavaScript"));
p.add ("North", new java.awt.TextField ("north text from JavaScript"));
p.add ("South", new java.awt.TextField ("south text from JavaScript"));
p.add ("East", new java.awt.Button ("inner east from JavaScript"));
p.add ("West", new java.awt.Button ("inner west from JavaScript"));

/* configure p a bit */
p.setBackground (java.awt.Color.red);

/* configure the frame that p is in */
f = p.getParent ();
f.setTitle ("Hello from JavaScript (title reset from JavaScript)");


------------------- cut here (ui.js) --------------------

HTH,

---rony








---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Identifying required properities</title>
<author><name>David Wood &lt;dawood@us.ibm.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200902.mbox/%3cOF32A955A8.A5A06DC2-ON85257558.004FA335-85257558.005005C5@us.ibm.com%3e"/>
<id>urn:uuid:%3cOF32A955A8-A5A06DC2-ON85257558-004FA335-85257558-005005C5@us-ibm-com%3e</id>
<updated>2009-02-09T14:34:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I'm new to BSF, so be gentle...I'm wondering if, given an arbitrary 
script, there is a way to determine the beans that need to be declared for 
the script to execute without throwing 'undefined' exceptions.  For 
example, 


String s;
System.out.printl(s);


I'm assuming that 's' must be declared before the script will execute 
properly, but how can I figure out whether it is 's' or some other symbol. 
I'd also like to understand the type of the required symbol.  Thanks for 
any help.

David Wood 
Policy Technologies Group
IBM TJ Watson Research Center
dawood@us.ibm.com
914-784-5123 (office), 914-396-6515 (mobile)


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: BSF to add a scripting language to OpenOffice.org ...</title>
<author><name>&quot;Rony G. Flatscher (Apache)&quot; &lt;rony@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200811.mbox/%3c4925B60C.9030504@apache.org%3e"/>
<id>urn:uuid:%3c4925B60C-9030504@apache-org%3e</id>
<updated>2008-11-20T19:10:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi there,

just learned that the URL to the second presentation was wrong, here the
correct one:
&lt;http://marketing.openoffice.org/ooocon2008/programme/thursday_1502.pdf&gt;.

Regards,

---rony


Rony G. Flatscher (Apache) wrote:
&gt; Hi there,
&gt;
&gt; this year's OpenOffice conference took place in Beijing/Peking at the
&gt; beginning of November (at the same time the US Apache conference took
&gt; place).
&gt;
&gt; Among the many talks there was one about adding a scripting language to
&gt; OpenOffice org (a.k.a. "OOo") using BSF by me, for which the slides are
&gt; available online already. [OOo's scripting framework itself is not
&gt; implemented in C++ but in Java, therefore BSF fits very nicely into it.]
&gt; All the presentations were videotaped and the tapes are supposed to be
&gt; made available at the end of November.
&gt;
&gt; Cf. &lt;http://marketing.openoffice.org/ooocon2008/&gt;, resp.
&gt; &lt;http://marketing.openoffice.org/ooocon2008/programme/thursday.html&gt;
&gt; Thursday presenatations, resp.
&gt; &lt;http://marketing.openoffice.org/ooocon2008/programme/thursday_1501.pdf&gt;
&gt; the presentation introducing BSF.
&gt;
&gt; Should you contemplate to add your favorite scripting language to OOo
&gt; using BSF, you should also look into what you could/should do to ease
&gt; programming/scripting OOo. The presentation
&gt; &lt;http://marketing.openoffice.org/ooocon2008/programme/thursday_1501.pdf&gt;
&gt; stresses the areas in the OOo UNO ("Universal Network Objects", a
&gt; coarsley CORBA-like) component architecture for which one should/could
&gt; create specific support for a scripting language.
&gt;
&gt; Should you have any questions in this context, just come forward and ask
&gt; them.
&gt;
&gt; As you can see, ASF's BSF being a "matured" technology has many
&gt; interesting applications...
&gt;
&gt; Regards,
&gt;
&gt; ---rony
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: bsf-dev-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: bsf-dev-help@jakarta.apache.org
&gt;
&gt;
&gt;   

---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>BSF to add a scripting language to OpenOffice.org ...</title>
<author><name>&quot;Rony G. Flatscher (Apache)&quot; &lt;rony@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200811.mbox/%3c49259974.4090808@apache.org%3e"/>
<id>urn:uuid:%3c49259974-4090808@apache-org%3e</id>
<updated>2008-11-20T17:08:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi there,

this year's OpenOffice conference took place in Beijing/Peking at the
beginning of November (at the same time the US Apache conference took
place).

Among the many talks there was one about adding a scripting language to
OpenOffice org (a.k.a. "OOo") using BSF by me, for which the slides are
available online already. [OOo's scripting framework itself is not
implemented in C++ but in Java, therefore BSF fits very nicely into it.]
All the presentations were videotaped and the tapes are supposed to be
made available at the end of November.

Cf. &lt;http://marketing.openoffice.org/ooocon2008/&gt;, resp.
&lt;http://marketing.openoffice.org/ooocon2008/programme/thursday.html&gt;
Thursday presenatations, resp.
&lt;http://marketing.openoffice.org/ooocon2008/programme/thursday_1501.pdf&gt;
the presentation introducing BSF.

Should you contemplate to add your favorite scripting language to OOo
using BSF, you should also look into what you could/should do to ease
programming/scripting OOo. The presentation
&lt;http://marketing.openoffice.org/ooocon2008/programme/thursday_1501.pdf&gt;
stresses the areas in the OOo UNO ("Universal Network Objects", a
coarsley CORBA-like) component architecture for which one should/could
create specific support for a scripting language.

Should you have any questions in this context, just come forward and ask
them.

As you can see, ASF's BSF being a "matured" technology has many
interesting applications...

Regards,

---rony


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Missing java engine et.al (Re: evaluating simple string &quot;2 == 2&quot;</title>
<author><name>&quot;Rony G. Flatscher&quot; &lt;Rony.Flatscher@wu-wien.ac.at&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200810.mbox/%3c48F748CC.3070808@wu-wien.ac.at%3e"/>
<id>urn:uuid:%3c48F748CC-3070808@wu-wien-ac-at%3e</id>
<updated>2008-10-16T13:59:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Raza,

Raza, Rizwan (MLCI) wrote:
&gt; Thanks. Ok I got that so that problem is gone but now it is complaining
&gt; for 
&gt; org.apache.bsf.engines.java.JavaEngine. I do not think that the bsf
&gt; 2.4.0 jar that I am using has JavaEngine in it. Am I using an obsolete
&gt; version?
&gt;   
No, not really. Supposedly the "java" and "javaclass" engines, as their
source is in the BSF 2.4 archive, should be built and distributed with
BSF 2.4 (as well as the "jexl" engine). Looking at the engines in the
current distribution
&lt;http://gd.tuwien.ac.at/infosys/servers/http/apache/dist/jakarta/bsf/binaries/bsf-bin-2.4.0.zip&gt;
reveals the following engines are already part of it: "jacl",
"javascript", "jython", "netrexx", and "xslt".

Please open a JIRA issue for this (as well as for the missing "BSF_Log"
and "BSF_LogFactory").

---

In the meantime, you can get a binary distribution with all BSF engines
for BSF 2.4 (as well as a slightly advanced version of BSF 2.4) from
&lt;http://wi.wu-wien.ac.at/rgf/rexx/bsf4rexx/current/BSF4Rexx_install.zip&gt;.
After unpacking that zip-archive, you will find a jar-file named
"bsf-v244-20080704.jar". Just replace the official BSF 2.4 with that
version (which contains all official engines as well as "BSF_Log" and
"BSF_LogFactory").

HTH,

---rony

P.S.: Will become able to (finally!) start to tackle all open BSF-JIRA
issues in the next weeks, such that I would be able to go over these two
JIRA issues of yours as well.





---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: evaluating simple string &quot;2 == 2&quot;</title>
<author><name>&quot;Rony G. Flatscher&quot; &lt;Rony.Flatscher@wu-wien.ac.at&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200810.mbox/%3c48F746F6.10505@wu-wien.ac.at%3e"/>
<id>urn:uuid:%3c48F746F6-10505@wu-wien-ac-at%3e</id>
<updated>2008-10-16T13:51:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Raza,

firstly, Jack is right, of course, there needs to be a Logger utility.

However, BSF 2.4 is supposed to be delivered with a minimal Logger named
"BSF_Log" (with "BSF_LogFactory"), but this class is not part of the
official BSF 2.4 binary distribution
&lt;http://gd.tuwien.ac.at/infosys/servers/http/apache/dist/jakarta/bsf/binaries/bsf-bin-2.4.0.zip&gt;.
The purpose of it would be to have the logging facility operational,
even if you would not have any other logging facilitiy at hand; not
distributing it, of course, is countering the (good) intention...

In the meantime Jack's advice will help you.

Regards,

---rony




Jack J. Woehr wrote:
&gt; Raza, Rizwan (MLCI) wrote:
&gt;&gt; Thanks Rony for replying. I did the changes but still getting the
&gt;&gt; following exception. Do I have to configure (provide path) to some log
&gt;&gt; file somewhere?
&gt;&gt;   
&gt; You have to provide Apache Commons which you can download from Apache.
&gt; It's apparently not in your classpath, or at least, not the right
&gt; level thereof.
&gt;&gt; Exception in thread "main" java.lang.NoClassDefFoundError:
&gt;&gt; org/apache/commons/logging/LogFactory
&gt;&gt;   
&gt; See?
&gt;


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: evaluating simple string &quot;2 == 2&quot;</title>
<author><name>&quot;Jack J. Woehr&quot; &lt;jwoehr@softwoehr.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200810.mbox/%3c48F61DDB.7030107@softwoehr.com%3e"/>
<id>urn:uuid:%3c48F61DDB-7030107@softwoehr-com%3e</id>
<updated>2008-10-15T16:44:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Raza, Rizwan (MLCI) wrote:
&gt; Thanks. Ok I got that so that problem is gone but now it is complaining
&gt; for 
&gt; org.apache.bsf.engines.java.JavaEngine. I do not think that the bsf
&gt; 2.4.0 jar that I am using has JavaEngine in it. Am I using an obsolete
&gt; version?
&gt;   
No. But you may be missing some stuff. BSF is a framework. The Engines 
link into the Framework.

Suggestion: sit down and read the BSF documentation for an hour or two :)

Page 1 of the BSF manual &lt;http://jakarta.apache.org/bsf/manual.html&gt;says:

    The two primary components of BSF are the |BSFManager| and the
    |BSFEngine|.

    The |BSFManager| handles all scripting execution engines running
    under its control, and maintains the object registry that permits
    scripts access to Java objects. By creating an instance of the
    |BSFManager| class, a Java application can gain access to scripting
    services.

    The |BSFEngine| provides an interface that must be implemented for a
    language to be used by BSF ...



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: evaluating simple string &quot;2 == 2&quot;</title>
<author><name>&quot;Raza, Rizwan \(MLCI\)&quot; &lt;Rizwan_Raza@ml.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200810.mbox/%3cA2A0630B1C45524A97B4C9BADF1AA799014DD407@mlnyc20mb054.amrs.win.ml.com%3e"/>
<id>urn:uuid:%3cA2A0630B1C45524A97B4C9BADF1AA799014DD407@mlnyc20mb054-amrs-win-ml-com%3e</id>
<updated>2008-10-15T15:52:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks. Ok I got that so that problem is gone but now it is complaining
for 
org.apache.bsf.engines.java.JavaEngine. I do not think that the bsf
2.4.0 jar that I am using has JavaEngine in it. Am I using an obsolete
version?

Oct 15, 2008 10:45:14 AM org.apache.bsf.BSFManager loadScriptingEngine
SEVERE: Exception :
java.lang.ClassNotFoundException: org.apache.bsf.engines.java.JavaEngine
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at
org.apache.bsf.BSFManager.loadScriptingEngine(BSFManager.java:693)
	at org.apache.bsf.BSFManager.eval(BSFManager.java:435)
	at EvaluatorB.Evaluate(EvaluatorB.java:18)
	at Evaluator.main(Evaluator.java:7)
Exception in thread "main" java.lang.NullPointerException
	at Evaluator.main(Evaluator.java:8)
org.apache.bsf.BSFException: unable to load language: java

Below is the code.

import org.apache.*;
import org.apache.bsf.*;
import org.apache.commons.*;
import org.apache.commons.logging.*;
import org.apache.bsf.engines.*;

public class EvaluatorB {

	public EvaluatorB()
	{
	}
	
	public Object Evaluate(){
		
		Object o = null;
		try{
			BSFManager manager = new
org.apache.bsf.BSFManager();
			o = manager.eval("java","",0,0,"return
(2==2);");
		}
		catch(BSFException exc)
		{
			String s = exc.toString();
			System.out.println(s);
		}
		return o;
	}
}



-----Original Message-----
From: Jack J. Woehr [mailto:jwoehr@softwoehr.com] 
Sent: Wednesday, October 15, 2008 10:33 AM
To: Bean Scripting Framework users
Subject: Re: evaluating simple string "2 == 2"

Raza, Rizwan (MLCI) wrote:
&gt; Thanks Rony for replying. I did the changes but still getting the
&gt; following exception. Do I have to configure (provide path) to some log
&gt; file somewhere?
&gt;   
You have to provide Apache Commons which you can download from Apache.
It's apparently not in your classpath, or at least, not the right level 
thereof.
&gt; Exception in thread "main" java.lang.NoClassDefFoundError:
&gt; org/apache/commons/logging/LogFactory
&gt;   
See?


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org
--------------------------------------------------------

This message w/attachments (message) may be privileged, confidential or proprietary, and if
you are not an intended recipient, please notify the sender, do not use or share it and delete
it. Unless specifically indicated, this message is not an offer to sell or a solicitation
of any investment products or other financial product or service, an official confirmation
of any transaction, or an official statement of Merrill Lynch. Subject to applicable law,
Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems.
The laws of the country of each sender/recipient may impact the handling of EC, and EC may
be archived, supervised and produced in countries other than the country in which you are
located. This message cannot be guaranteed to be secure or error-free. This message is subject
to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging
with Merrill Lynch you consent to the foregoing.
--------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: evaluating simple string &quot;2 == 2&quot;</title>
<author><name>&quot;Jack J. Woehr&quot; &lt;jwoehr@softwoehr.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200810.mbox/%3c48F60D46.803@softwoehr.com%3e"/>
<id>urn:uuid:%3c48F60D46-803@softwoehr-com%3e</id>
<updated>2008-10-15T15:33:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Raza, Rizwan (MLCI) wrote:
&gt; Thanks Rony for replying. I did the changes but still getting the
&gt; following exception. Do I have to configure (provide path) to some log
&gt; file somewhere?
&gt;   
You have to provide Apache Commons which you can download from Apache.
It's apparently not in your classpath, or at least, not the right level 
thereof.
&gt; Exception in thread "main" java.lang.NoClassDefFoundError:
&gt; org/apache/commons/logging/LogFactory
&gt;   
See?


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: evaluating simple string &quot;2 == 2&quot;</title>
<author><name>&quot;Raza, Rizwan \(MLCI\)&quot; &lt;Rizwan_Raza@ml.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200810.mbox/%3cA2A0630B1C45524A97B4C9BADF1AA799014DD405@mlnyc20mb054.amrs.win.ml.com%3e"/>
<id>urn:uuid:%3cA2A0630B1C45524A97B4C9BADF1AA799014DD405@mlnyc20mb054-amrs-win-ml-com%3e</id>
<updated>2008-10-15T15:07:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I guess it is failing at the following code location in BSFManager.java

private Log logger = LogFactory.getLog(this.getClass().getName());

Thanks

- raza



-----Original Message-----
From: Rony G. Flatscher [mailto:Rony.Flatscher@wu-wien.ac.at] 
Sent: Wednesday, October 15, 2008 3:57 AM
To: Bean Scripting Framework users
Subject: Re: evaluating simple string "2 == 2"

Hi Raza,

also, make sure that the Java statement is syntactically correct.

In your example you obviously want to execute the following Java
statement: "return (2==2);". Hence your eval invocation should probably
read:

	Object o = manager.eval("java","",0,0,"return (2==2);");

HTH,

---rony


Raza, Rizwan (MLCI) wrote:
&gt; Hi folks:
&gt;
&gt;  
&gt;
&gt; How can I evaluate the string "2 == 2" in a java program. Is it
&gt; possible?
&gt;
&gt;  
&gt;
&gt; I did the following but it is throwing ClassNotFound exception
&gt;
&gt;  
&gt;
&gt; BSFManager manager = new org.apache.bsf.BSFManager();
&gt;
&gt; Object o = manager.eval("","",0,0,"2==2");
&gt;
&gt; return o.toString();
&gt;
&gt;  
&gt;
&gt; Exception in thread "main" java.lang.NoClassDefFoundError:
&gt; org/apache/commons/logging/LogFactory
&gt;
&gt;       at org.apache.bsf.BSFManager.&lt;init&gt;(BSFManager.java:102)
&gt;
&gt;       at EvaluatorB.Evaluate(EvaluatorB.java:13)
&gt;
&gt;       at Evaluator.main(Evaluator.java:8)
&gt;
&gt; Caused by: java.lang.ClassNotFoundException:
&gt; org.apache.commons.logging.LogFactory
&gt;
&gt;       at java.net.URLClassLoader$1.run(Unknown Source)
&gt;
&gt;       at java.security.AccessController.doPrivileged(Native Method)
&gt;
&gt;       at java.net.URLClassLoader.findClass(Unknown Source)
&gt;
&gt;       at java.lang.ClassLoader.loadClass(Unknown Source)
&gt;
&gt;       at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
&gt;
&gt;       at java.lang.ClassLoader.loadClass(Unknown Source)
&gt;
&gt;       at java.lang.ClassLoader.loadClassInternal(Unknown Source)
&gt;
&gt;       ... 3 more
&gt;
&gt;  
&gt;
&gt; I think I am missing some configuration file. Can someone please point
&gt; me to the right direction?
&gt;
&gt;  
&gt;   


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org
--------------------------------------------------------

This message w/attachments (message) may be privileged, confidential or proprietary, and if
you are not an intended recipient, please notify the sender, do not use or share it and delete
it. Unless specifically indicated, this message is not an offer to sell or a solicitation
of any investment products or other financial product or service, an official confirmation
of any transaction, or an official statement of Merrill Lynch. Subject to applicable law,
Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems.
The laws of the country of each sender/recipient may impact the handling of EC, and EC may
be archived, supervised and produced in countries other than the country in which you are
located. This message cannot be guaranteed to be secure or error-free. This message is subject
to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging
with Merrill Lynch you consent to the foregoing.
--------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: evaluating simple string &quot;2 == 2&quot;</title>
<author><name>&quot;Raza, Rizwan \(MLCI\)&quot; &lt;Rizwan_Raza@ml.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200810.mbox/%3cA2A0630B1C45524A97B4C9BADF1AA799014DD404@mlnyc20mb054.amrs.win.ml.com%3e"/>
<id>urn:uuid:%3cA2A0630B1C45524A97B4C9BADF1AA799014DD404@mlnyc20mb054-amrs-win-ml-com%3e</id>
<updated>2008-10-15T15:06:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks Rony for replying. I did the changes but still getting the
following exception. Do I have to configure (provide path) to some log
file somewhere?

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory
	at org.apache.bsf.BSFManager.&lt;init&gt;(BSFManager.java:102)
	at EvaluatorB.Evaluate(EvaluatorB.java:13)
	at Evaluator.main(Evaluator.java:8)
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.logging.LogFactory
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClassInternal(Unknown Source)
	... 3 more

Below is my program

import org.apache.*;
import org.apache.bsf.*;

public class EvaluatorB {

	public EvaluatorB()
	{
	}
	
	public Object Evaluate(){
		
		Object o = null;
		try{
			BSFManager manager = new
org.apache.bsf.BSFManager();
			o = manager.eval("java","",0,0,"return
(2==2);");
		}
		catch(BSFException exc)
		{
			String s = exc.toString();
			System.out.println(s);
		}
		return o;
	}
}



-----Original Message-----
From: Rony G. Flatscher [mailto:Rony.Flatscher@wu-wien.ac.at] 
Sent: Wednesday, October 15, 2008 3:57 AM
To: Bean Scripting Framework users
Subject: Re: evaluating simple string "2 == 2"

Hi Raza,

also, make sure that the Java statement is syntactically correct.

In your example you obviously want to execute the following Java
statement: "return (2==2);". Hence your eval invocation should probably
read:

	Object o = manager.eval("java","",0,0,"return (2==2);");

HTH,

---rony


Raza, Rizwan (MLCI) wrote:
&gt; Hi folks:
&gt;
&gt;  
&gt;
&gt; How can I evaluate the string "2 == 2" in a java program. Is it
&gt; possible?
&gt;
&gt;  
&gt;
&gt; I did the following but it is throwing ClassNotFound exception
&gt;
&gt;  
&gt;
&gt; BSFManager manager = new org.apache.bsf.BSFManager();
&gt;
&gt; Object o = manager.eval("","",0,0,"2==2");
&gt;
&gt; return o.toString();
&gt;
&gt;  
&gt;
&gt; Exception in thread "main" java.lang.NoClassDefFoundError:
&gt; org/apache/commons/logging/LogFactory
&gt;
&gt;       at org.apache.bsf.BSFManager.&lt;init&gt;(BSFManager.java:102)
&gt;
&gt;       at EvaluatorB.Evaluate(EvaluatorB.java:13)
&gt;
&gt;       at Evaluator.main(Evaluator.java:8)
&gt;
&gt; Caused by: java.lang.ClassNotFoundException:
&gt; org.apache.commons.logging.LogFactory
&gt;
&gt;       at java.net.URLClassLoader$1.run(Unknown Source)
&gt;
&gt;       at java.security.AccessController.doPrivileged(Native Method)
&gt;
&gt;       at java.net.URLClassLoader.findClass(Unknown Source)
&gt;
&gt;       at java.lang.ClassLoader.loadClass(Unknown Source)
&gt;
&gt;       at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
&gt;
&gt;       at java.lang.ClassLoader.loadClass(Unknown Source)
&gt;
&gt;       at java.lang.ClassLoader.loadClassInternal(Unknown Source)
&gt;
&gt;       ... 3 more
&gt;
&gt;  
&gt;
&gt; I think I am missing some configuration file. Can someone please point
&gt; me to the right direction?
&gt;
&gt;  
&gt;   


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org
--------------------------------------------------------

This message w/attachments (message) may be privileged, confidential or proprietary, and if
you are not an intended recipient, please notify the sender, do not use or share it and delete
it. Unless specifically indicated, this message is not an offer to sell or a solicitation
of any investment products or other financial product or service, an official confirmation
of any transaction, or an official statement of Merrill Lynch. Subject to applicable law,
Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems.
The laws of the country of each sender/recipient may impact the handling of EC, and EC may
be archived, supervised and produced in countries other than the country in which you are
located. This message cannot be guaranteed to be secure or error-free. This message is subject
to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging
with Merrill Lynch you consent to the foregoing.
--------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: evaluating simple string &quot;2 == 2&quot;</title>
<author><name>&quot;Rony G. Flatscher&quot; &lt;Rony.Flatscher@wu-wien.ac.at&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200810.mbox/%3c48F5B049.6020500@wu-wien.ac.at%3e"/>
<id>urn:uuid:%3c48F5B049-6020500@wu-wien-ac-at%3e</id>
<updated>2008-10-15T08:56:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Raza,

also, make sure that the Java statement is syntactically correct.

In your example you obviously want to execute the following Java
statement: "return (2==2);". Hence your eval invocation should probably
read:

	Object o = manager.eval("java","",0,0,"return (2==2);");

HTH,

---rony


Raza, Rizwan (MLCI) wrote:
&gt; Hi folks:
&gt;
&gt;  
&gt;
&gt; How can I evaluate the string "2 == 2" in a java program. Is it
&gt; possible?
&gt;
&gt;  
&gt;
&gt; I did the following but it is throwing ClassNotFound exception
&gt;
&gt;  
&gt;
&gt; BSFManager manager = new org.apache.bsf.BSFManager();
&gt;
&gt; Object o = manager.eval("","",0,0,"2==2");
&gt;
&gt; return o.toString();
&gt;
&gt;  
&gt;
&gt; Exception in thread "main" java.lang.NoClassDefFoundError:
&gt; org/apache/commons/logging/LogFactory
&gt;
&gt;       at org.apache.bsf.BSFManager.&lt;init&gt;(BSFManager.java:102)
&gt;
&gt;       at EvaluatorB.Evaluate(EvaluatorB.java:13)
&gt;
&gt;       at Evaluator.main(Evaluator.java:8)
&gt;
&gt; Caused by: java.lang.ClassNotFoundException:
&gt; org.apache.commons.logging.LogFactory
&gt;
&gt;       at java.net.URLClassLoader$1.run(Unknown Source)
&gt;
&gt;       at java.security.AccessController.doPrivileged(Native Method)
&gt;
&gt;       at java.net.URLClassLoader.findClass(Unknown Source)
&gt;
&gt;       at java.lang.ClassLoader.loadClass(Unknown Source)
&gt;
&gt;       at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
&gt;
&gt;       at java.lang.ClassLoader.loadClass(Unknown Source)
&gt;
&gt;       at java.lang.ClassLoader.loadClassInternal(Unknown Source)
&gt;
&gt;       ... 3 more
&gt;
&gt;  
&gt;
&gt; I think I am missing some configuration file. Can someone please point
&gt; me to the right direction?
&gt;
&gt;  
&gt;   


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: evaluating simple string &quot;2 == 2&quot;</title>
<author><name>&quot;Rony G. Flatscher&quot; &lt;Rony.Flatscher@wu-wien.ac.at&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200810.mbox/%3c48F5ACE5.1030602@wu-wien.ac.at%3e"/>
<id>urn:uuid:%3c48F5ACE5-1030602@wu-wien-ac-at%3e</id>
<updated>2008-10-15T08:42:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Raza,

Raza, Rizwan (MLCI) wrote:
&gt; Hi folks:
&gt;
&gt; How can I evaluate the string "2 == 2" in a java program. Is it
&gt; possible?
&gt;
&gt; I did the following but it is throwing ClassNotFound exception
&gt;
&gt; BSFManager manager = new org.apache.bsf.BSFManager();
&gt;
&gt; Object o = manager.eval("","",0,0,"2==2");
&gt;
&gt; return o.toString();
&gt;   
You would need to supply at least the engine name to use, i.e. "java" as
the first argument.

HTH,

---rony



---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>evaluating simple string &quot;2 == 2&quot;</title>
<author><name>&quot;Raza, Rizwan \(MLCI\)&quot; &lt;Rizwan_Raza@ml.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200810.mbox/%3cA2A0630B1C45524A97B4C9BADF1AA799014DD402@mlnyc20mb054.amrs.win.ml.com%3e"/>
<id>urn:uuid:%3cA2A0630B1C45524A97B4C9BADF1AA799014DD402@mlnyc20mb054-amrs-win-ml-com%3e</id>
<updated>2008-10-14T22:45:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi folks:

 

How can I evaluate the string "2 == 2" in a java program. Is it
possible?

 

I did the following but it is throwing ClassNotFound exception

 

BSFManager manager = new org.apache.bsf.BSFManager();

Object o = manager.eval("","",0,0,"2==2");

return o.toString();

 

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/logging/LogFactory

      at org.apache.bsf.BSFManager.&lt;init&gt;(BSFManager.java:102)

      at EvaluatorB.Evaluate(EvaluatorB.java:13)

      at Evaluator.main(Evaluator.java:8)

Caused by: java.lang.ClassNotFoundException:
org.apache.commons.logging.LogFactory

      at java.net.URLClassLoader$1.run(Unknown Source)

      at java.security.AccessController.doPrivileged(Native Method)

      at java.net.URLClassLoader.findClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at java.lang.ClassLoader.loadClassInternal(Unknown Source)

      ... 3 more

 

I think I am missing some configuration file. Can someone please point
me to the right direction?

 

Thanks
--------------------------------------------------------

This message w/attachments (message) may be privileged, confidential or proprietary, and if
you are not an intended recipient, please notify the sender, do not use or share it and delete
it. Unless specifically indicated, this message is not an offer to sell or a solicitation
of any investment products or other financial product or service, an official confirmation
of any transaction, or an official statement of Merrill Lynch. Subject to applicable law,
Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems.
The laws of the country of each sender/recipient may impact the handling of EC, and EC may
be archived, supervised and produced in countries other than the country in which you are
located. This message cannot be guaranteed to be secure or error-free. This message is subject
to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging
with Merrill Lynch you consent to the foregoing.
--------------------------------------------------------


</pre>
</div>
</content>
</entry>
<entry>
<title>Site with AJAX load time analysis</title>
<author><name>bc9ams &lt;bc9ams@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200804.mbox/%3ca64ec5e00804271722l18f0e435hb4711d56a0c32953@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca64ec5e00804271722l18f0e435hb4711d56a0c32953@mail-gmail-com%3e</id>
<updated>2008-04-28T00:22:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I've been using jmeter to run some page load times for a few sites, but I've
run into a bit of a problem. Basically I want to get stats of how long whole
pages (page + resources) take to load over a period of time, with differing
number of users hitting the site.

I realise that there is the 'Download all HTML content' checkbox which will
do just this, but unfortunately it does not execute all the AJAX components
of the website (of which there are many - basically the whole site). So this
gives a deceptively low impression of the load time of pages.

When you record a page load with the HTTP proxy (to capture all the
resources, including the AJAX elements), and then run a test with it - it
seems to treat each resource separately in a Aggregate / Summary report, so
its difficult to get this sort of information (many of the images / AJAX
resources all run the same server-side script so appear as the same entry in
the report when they are in reality different resources [e.g. "image.php"
where the requests were image.php?id=1234 and image.php?id=5678]).

Is there any kind of mechanism to roll-up/group a set of resources into one
transaction element to achieve this sort of reporting?

Oh and is there an out-of-the box mechanism to limit bandwidth of what
jmeter allows each 'user' to use?

Many thanks.


</pre>
</div>
</content>
</entry>
<entry>
<title>Accessing classes defined in a script</title>
<author><name>&quot;Mirko Leschikar&quot; &lt;mirko@procrastination.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200802.mbox/%3c47B9558D.8070802@procrastination.de%3e"/>
<id>urn:uuid:%3c47B9558D-8070802@procrastination-de%3e</id>
<updated>2008-02-18T09:53:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I am pretty new to BSF and I ran into a problem.
I have a java class "JavaClassA" and I want to extend it in a script, 
Groovy or BeanShell.

...
public class BSHClassA extends JavaClassA {
    public run() {
       ...
    }
}

Without BSF and with Beanshell only, I was able to "source" the script 
and access the class BSHClassA  via Beanshells' classmanager and 
instantiate it in Java like this:
...
beanShell.source(scriptFile);
classLoader = beanShell.getClassManager();
Class clazz = classLoader.classForName( bshClass );
bshObj = (JavaClassA) clazz.newInstance();

How do I instantiate a class defined in a script language via BSF?
I don't know what to do after:

theBsfManager.exec(scriptLang, scriptFile, 0, 0, 
IOUtils.getStringFromReader(scriptFileReader));

Thanks in advance

Mirko




---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>[Fwd: MarkMail: hosting Apache mailing list archives]</title>
<author><name>&quot;Rony G. Flatscher (Apache)&quot; &lt;rony@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200711.mbox/%3c472ED35B.40707@apache.org%3e"/>
<id>urn:uuid:%3c472ED35B-40707@apache-org%3e</id>
<updated>2007-11-05T08:24:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>


-------- Original Message --------
Subject: 	MarkMail: hosting Apache mailing list archives
Date: 	Sun, 04 Nov 2007 19:56:51 -0800
From: 	Jason Hunter &lt;jhunter@acm.org&gt;
Reply-To: 	Jakarta Project Management Committee List
&lt;private@jakarta.apache.org&gt;
To: 	pmcs@apache.org



PMCs, could you please send this announcement to your various users@ and
devs@ mailing lists, as appropriate for your particular community.

And please, if you think it proper, add a link to MarkMail on your
project web site as an option for searching your project's email
archives.  You can point to http://&lt;project&gt;.markmail.org.

----

(A forwarded email from Jason Hunter)

For the last few months I've been working on a new project: a web
site for interacting with email archives.  We're using, as the
site's initial content set, the public Apache mailing list archives
-- because Apache is the community I know best and I think people
here will find the site useful.  We've loaded a bit over 4,000,000
emails across 500 lists.

http://apache.markmail.org

As you'll see with the chart on the home page, one of our goals with
the site has been to focus heavily on analytics.  We have lots of
graphs and counts, and you're able to use them to watch Apache's
historical growth and each individual project's growth.  Every query
you write gets its own histogram chart.

Another goal has been interactivity.  Every search result screen gives
you lots of ways to refine your search (by sender, list, attachment
type, etc).  Plus we did a lot with keyboard shortcuts.  You can hit
"n" and "p" to move to the next and previous result and "j" and "k" to
move up and down the thread view.  There's a lot of little things like
this.  Plus if your result message includes Office or PDF files
they're in-line interactive too.

http://apache.markmail.org/search/ext:ppt+axis

Another goal has been to focus on community.  We could have launched
MarkMail with 50,000,000 emails from many sources but I think it's
better to start with focus.  In fact, I'll be at ApacheCon and the
Hackathon next week, along with my co-developer Ryan Grimm,
looking for people's suggestions and maybe on the spot adding in a
few of them.  There's also potential to explore some fun one-off
analytics, too.

As part of the focus on communities, we setup MarkMail so it
recognizes that Apache itself consists of many communities.  If you go
to http://apache.markmail.org you search all Apache emails, but if you
go to http://struts.markmail.org then you're auto-limited to just
Struts lists.  Same for tomcat, spamassassin, httpd, and so on.  You
can always limit your search using "list:struts" in your query, but
using the domain handles that a bit more elegantly.

I've been working on this a long time, and I'm so happy to be able to
share it with everyone.  I hope you all find this useful!

Notes on using the site:

* Search using keywords as well as from:, subject:, extension:, and
  list: constraints

* The GUI doesn't yet expose it, but you can negate any search item,
  like -subject:jira.

* You can sort results by date by adding order:date-forward or
  order:date-backward to your query

* Remember to use "n" and "p" keyboard shortcuts to navigate the search
  results

* You're going to want JavaScript enabled

If you'd like to send me private feedback I'm jhunter at apache dot org.

-jh-




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Ad BSF 3.0: Creating a Beta 2 distro ?</title>
<author><name>&quot;ant elder&quot; &lt;ant.elder@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200710.mbox/%3c71e1b5740710290806y9463146jc4faef87c10d5717@mail.gmail.com%3e"/>
<id>urn:uuid:%3c71e1b5740710290806y9463146jc4faef87c10d5717@mail-gmail-com%3e</id>
<updated>2007-10-29T15:06:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On 10/29/07, Rony G. Flatscher &lt;Rony.Flatscher@wu-wien.ac.at&gt; wrote:
&gt;
&gt; Hi there,
&gt;
&gt; as work on BSF 3.0 has picked up lately, there have been ideas of
&gt; producing a beta 2 distribution for BSF 3.0 as soon as possible, maybe
&gt; even before the ApacheCon US takes place in Atlanta (mid of November)?
&gt;
&gt; ---rony


And see this post for a candidate beta2 distro:
http://mail-archives.apache.org/mod_mbox/jakarta-bsf-dev/200710.mbox/%3c71e1b5740710270524l75c1fff2u8b70922da149f6cd@mail.gmail.com%3e

Though i've since added some enhancements for Axiom E4X support so need to
respin to include those.

   ...ant


</pre>
</div>
</content>
</entry>
<entry>
<title>Bugzilla # 41549: Anyone Interested on Doing Some Work on the Jython BSF 2.4 engine ?</title>
<author><name>&quot;Rony G. Flatscher&quot; &lt;Rony.Flatscher@wu-wien.ac.at&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200710.mbox/%3c4725F671.5070000@wu-wien.ac.at%3e"/>
<id>urn:uuid:%3c4725F671-5070000@wu-wien-ac-at%3e</id>
<updated>2007-10-29T15:04:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi there,

in &lt;http://issues.apache.org/bugzilla/show_bug.cgi?id=41549&gt; a request
was made to change the jython engine in BSF 2.4 such that the apply()
method would forward the arguments.

Would there be any takers on doing the necessary work on this?

Regards,

---rony



---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Bugzilla request: make BSF Javadocs available online ?</title>
<author><name>&quot;Rony G. Flatscher&quot; &lt;Rony.Flatscher@wu-wien.ac.at&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200710.mbox/%3c4725F29C.1050505@wu-wien.ac.at%3e"/>
<id>urn:uuid:%3c4725F29C-1050505@wu-wien-ac-at%3e</id>
<updated>2007-10-29T14:47:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi there,

there is a Bugzilla request
&lt;http://issues.apache.org/bugzilla/show_bug.cgi?id=34596&gt; which asks for
making the BSF Javadocs available online via our homepage.

What do you think?

Regards,

---rony





---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Ad BSF 3.0: Creating a Beta 2 distro ?</title>
<author><name>&quot;Rony G. Flatscher&quot; &lt;Rony.Flatscher@wu-wien.ac.at&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200710.mbox/%3c4725EF33.8050904@wu-wien.ac.at%3e"/>
<id>urn:uuid:%3c4725EF33-8050904@wu-wien-ac-at%3e</id>
<updated>2007-10-29T14:33:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi there,

as work on BSF 3.0 has picked up lately, there have been ideas of
producing a beta 2 distribution for BSF 3.0 as soon as possible, maybe
even before the ApacheCon US takes place in Atlanta (mid of November)?

---rony



---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Script validation</title>
<author><name>Mhall &lt;mhall@polk.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200710.mbox/%3c4a60edbaa5594c601c20ac2e534fd8dd@polk.net%3e"/>
<id>urn:uuid:%3c4a60edbaa5594c601c20ac2e534fd8dd@polk-net%3e</id>
<updated>2007-10-26T13:53:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
BSFManager.compileScript should do what you need.

-----Original message-----
From: Russell Webb russell.webb@voxsurf.com
Date: Fri, 26 Oct 2007 05:07:40 -0400
To: bsf-user@jakarta.apache.org
Subject: Script validation

&gt; Hello all,
&gt; 
&gt; I'm a noob currently using BSF to run user entered Groovy script, and potentially
&gt; other scripting languages, within a Java application and am looking for a way to
&gt; validate the script syntax via BSF before actual execution. Can anyone tell me if
&gt; this is possible.
&gt; 
&gt; Cheers
&gt; 
&gt; 
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
&gt; For additional commands, e-mail: bsf-user-help@jakarta.apache.org
&gt; 
&gt; 

---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Script validation</title>
<author><name>Russell Webb &lt;russell.webb@voxsurf.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200710.mbox/%3c4721BC37.5000702@voxsurf.com%3e"/>
<id>urn:uuid:%3c4721BC37-5000702@voxsurf-com%3e</id>
<updated>2007-10-26T10:06:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello all,

I'm a noob currently using BSF to run user entered Groovy script, and potentially
other scripting languages, within a Java application and am looking for a way to
validate the script syntax via BSF before actual execution. Can anyone tell me if
this is possible.

Cheers


---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Please use JIRA when reporting bugs</title>
<author><name>&quot;Sanka Samaranayake&quot; &lt;ssanka@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200708.mbox/%3c1e8c1ed40708152148u3fa5fcf7sb651ab6308d2868c@mail.gmail.com%3e"/>
<id>urn:uuid:%3c1e8c1ed40708152148u3fa5fcf7sb651ab6308d2868c@mail-gmail-com%3e</id>
<updated>2007-08-16T04:48:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Please use JIRA[1] when reporting bugs since it helps a lot to track,
prioritize and assign them so that they will get fixed somewhere down the
wire.

Thanks,
Sanka



[1] http://issues.apache.org/jira/browse/BSF
-- 
Sanka Samaranayake
WSO2 Inc.

http://www.bloglines.com/blog/sanka
http://www.wso2.org/


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Issue when run multiple script files simultaneously</title>
<author><name>&quot;Rony G. Flatscher&quot; &lt;Rony.Flatscher@wu-wien.ac.at&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200707.mbox/%3c468E18BF.5000806@wu-wien.ac.at%3e"/>
<id>urn:uuid:%3c468E18BF-5000806@wu-wien-ac-at%3e</id>
<updated>2007-07-06T10:26:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Linda,

Daling Xu wrote:
&gt; Yes, I can do that.
&gt;    
&gt;   In fact, at my first round of experiment, I created one new BSFManager every time when
I need to run a script. By doing this the script all run correctly. Essentially, this is similar
to having a pool because they have the pros that each script is executed in its own Rhino
instance, but the cons is that I loaded different Rhino instance for each script runtime,
that could consume more memory. 
&gt;   
Yes, the question would be whether this consumption can be felt at all,
or - in the other extreme - whether it would render the application  to
be unusable.

&gt;   So my question is: What's the final reason of the script interfere with each other
when they are run in different thread but using the same Rhino instance. 
&gt;    
&gt;   I looked at the 
&gt;   org.apache.bsf.engines.javascript.JavaScriptEngine.java.  It looks that the reason
maybe in the initialize method. Every JavaScriptEngine is initialized with a Scriptable object
'global', then when the eval() method is called, it's always called using
&gt;   cx.evaluateString(global, scriptText,source, lineNo,null);
&gt;    
&gt;   But I am not sure what's stored in the 'global', and why finally two scripts interfere
with each other. 
&gt;   
Unfortunately, I do not know what architecture/limitation Rhino would
have and if it was possible to invoke it differently, such that one
Rhino instance executes scripts concurrently (e.g. not sure what 
"org.mozilla.javascript.Context" does/allows for) . Maybe one of the
Rhino/Javascript BSF engine creators could help (* @author   Adam Peller
&lt;peller@lotus.com&gt;,  * @author   Sanjiva Weerawarana,  * @author  
Matthew J. Duftler,  * @author   Norris Boyd)?

Short of that one would have to study that particular aspect of
Rhino/Javascript, maybe there are even threads on the Mozilla newsgroups
about this topic?

&gt;   Is it conceptually correct to use the same 'global' for evaluating different script
files?  And besides the way of using separate BSFManager instance for each thread, is there
any way I still share the same BSFManager and Rhino instance but use different 'global' value
for each thread? 
Again, not sure at all what 'global' encompasses. One would need to dig
into the Rhino/Javascript interpreter.

&gt; Because I am really concerned about the memory issue of instanciating multiple BSFManager
and Rhino engine.
&gt;   
Maybe, you should not be preoccupied too much ?

Having a pool of BSFManagers used to deploy scripts with the help of
Rhino engines, what would be the maximum amount of instances you have to
deal with? Do you have any profilings that you could gather and share
with us?

Regards,

---rony




---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Issue when run multiple script files simultaneously</title>
<author><name>Daling Xu &lt;daling_xu@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200707.mbox/%3c772438.26000.qm@web34714.mail.mud.yahoo.com%3e"/>
<id>urn:uuid:%3c772438-26000-qm@web34714-mail-mud-yahoo-com%3e</id>
<updated>2007-07-05T16:58:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Yes, I can do that.
   
  In fact, at my first round of experiment, I created one new BSFManager every time when I
need to run a script. By doing this the script all run correctly. Essentially, this is similar
to having a pool because they have the pros that each script is executed in its own Rhino
instance, but the cons is that I loaded different Rhino instance for each script runtime,
that could consume more memory. 
   
  So my question is: What's the final reason of the script interfere with each other when
they are run in different thread but using the same Rhino instance. 
   
  I looked at the 
  org.apache.bsf.engines.javascript.JavaScriptEngine.java.  It looks that the reason maybe
in the initialize method. Every JavaScriptEngine is initialized with a Scriptable object 'global',
then when the eval() method is called, it's always called using
  cx.evaluateString(global, scriptText,source, lineNo,null);
   
  But I am not sure what's stored in the 'global', and why finally two scripts interfere with
each other. 
   
  Is it conceptually correct to use the same 'global' for evaluating different script files?
 And besides the way of using separate BSFManager instance for each thread, is there any way
I still share the same BSFManager and Rhino instance but use different 'global' value for
each thread? Because I am really concerned about the memory issue of instanciating multiple
BSFManager and Rhino engine.
   
   
  Thanks
   
  Linda

"Rony G. Flatscher" &lt;Rony.Flatscher@wu-wien.ac.at&gt; wrote:
  Hi Linda,
&gt; I am using BSF and Rhino in my java application to execute javascript files.
&gt; 
&gt; Because the requirement of my project, I need to run multiple instance of one script
file simutaneously. To avoid the memory issue, I used only one BSFManager instance for my
whole application, and every time when I need to start executing a script file, I start a
separate thread and use the only bsfManager instance to evaluate the script file.
&gt; 
&gt; Then I noticed that, when I only have one thread, every thing is perfect; But when I
have more than one threads, the script generate inconsistant, weird output; It looks that
the multi thread scripts code interfere with each other.
&gt; 
&gt; Any one here ran into similar issue? Any idea?
&gt; 
How about creating a pool of BSFManager instances and (re-)using the
instances to deploy the scripts such, that each BSFManager instance
serves one script executing in the same thread?

---rony



---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



       
---------------------------------
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on
us.

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Issue when run multiple script files simultaneously</title>
<author><name>&quot;Rony G. Flatscher&quot; &lt;Rony.Flatscher@wu-wien.ac.at&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200707.mbox/%3c468D18AC.6000804@wu-wien.ac.at%3e"/>
<id>urn:uuid:%3c468D18AC-6000804@wu-wien-ac-at%3e</id>
<updated>2007-07-05T16:13:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Linda,
&gt;   I am using BSF and Rhino in my java application to execute javascript files.
&gt;    
&gt;   Because the requirement of my project, I need to run multiple instance of one script
file simutaneously.  To avoid the memory issue, I used only one BSFManager instance for my
whole application, and every time when I need to start executing a script file, I start a
separate thread and use the only bsfManager instance to evaluate the script file.
&gt;    
&gt;   Then I noticed that, when I only have one thread, every thing is perfect; But when
I have more than one threads, the script generate inconsistant, weird output; It looks that
the multi thread scripts code interfere with each other.
&gt;   
&gt; Any one here ran into similar issue? Any idea?
&gt;   
How about creating a pool of BSFManager instances and (re-)using the
instances to deploy the scripts such, that each BSFManager instance
serves one script executing in the same thread?

---rony



---------------------------------------------------------------------
To unsubscribe, e-mail: bsf-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bsf-user-help@jakarta.apache.org



</pre>
</div>
</content>
</entry>
</feed>
