DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=22842>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=22842 flow: importPackage/importClass problems creating InitialContext() ------- Additional Comments From [EMAIL PROTECTED] 2004-05-23 10:45 ------- Are you tried a newer Cocoon version? I tested the problem using the shell interface with the lastest rhino library that will be distributed in Cocoon 2.1.5. The test I did was taken from http://www.mozilla.org/rhino/scriptjava.html : **************** TESTING importPackage() **************************** $ java -cp rhino1.5r4-continuations-20040228.jar org.mozilla.javascr ipt.tools.shell.Main Rhino 1.5 release 4 0000 00 00 (in progress) js> importPackage(java.awt); js> frame = new Frame("JavaScript") java.awt.Frame[frame0,0,0,0x0,invalid,hidden,layout=java.awt.BorderLayout,title=JavaScript,r esizable,normal] js> frame.show() js> frame.setSize(new Dimension(200,100)) js> button = new Button("OK") java.awt.Button[button0,0,0,0x0,invalid,label=OK] js> frame.add(button) java.awt.Button[button0,0,0,0x0,invalid,label=OK] js> frame.show() js> quit() $ **************** TESTING importClass() **************************** $ java -cp rhino1.5r4-continuations-20040228.jar org.mozilla.javascr ipt.tools.shell.Main Rhino 1.5 release 4 0000 00 00 (in progress) js> importClass(Packages.org.mozilla.javascript.Context) js> cx = Context.enter() [EMAIL PROTECTED] js> cx.evaluateString(this, "3+2", null, 0, null) 5.0 js> quit() $ ******************************************************************* Can we close the bug?
