samples/irb-applet.html doesn't load the Applet
-----------------------------------------------
Key: JRUBY-3950
URL: http://jira.codehaus.org/browse/JRUBY-3950
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.4
Environment: Web browser, github trunk, Mac OS 10.6, Java 6, Firefox
3.5 and Safari 4.0.3.
Reporter: Hiro Asari
Assignee: Thomas E Enebo
JRUBY-3930 got me think about IRB applet got me thinking about "Try JRuby", a
la _why's. But, alas, it doesn't seem to work on trunk. I get this in Java
console:
{noformat}
MRJ Plugin for Mac OS X v1.0.1
[starting up Java Applet Security @ Fri Sep 04 20:45:13 CDT 2009]
Fri Sep 04 20:45:14 CDT 2009 JEP creating applet org.jruby.JRubyApplet
(file:/Users/asari/Development/src/jruby/lib/)
<<< ProxyClassLoader: defined LiveConnectProxy class. >>>
<<< Here're the permissions you've got: >>>
<<< java.security.permissi...@dc0435 (
(java.io.FilePermission read)
)
>>>
java.security.AccessControlException: access denied
(java.lang.reflect.ReflectPermission suppressAccessChecks)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at
java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at
java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java:107)
at org.jruby.ext.Readline$ReadlineHistory.<init>(Readline.java:89)
at org.jruby.ext.Readline.createReadline(Readline.java:137)
at org.jruby.ext.Readline$Service.load(Readline.java:78)
at org.jruby.ext.LateLoadingLibrary.load(LateLoadingLibrary.java:55)
at
org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:597)
at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:304)
at org.jruby.runtime.load.LoadService.require(LoadService.java:315)
at
org.jruby.demo.TextAreaReadline.hookIntoRuntime(TextAreaReadline.java:271)
at org.jruby.JRubyApplet$ConsoleFacade.attach(JRubyApplet.java:410)
at org.jruby.JRubyApplet$2.run(JRubyApplet.java:228)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
at jep.MySimpleEventQueue.dispatchEvent(Unknown Source)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
java.lang.RuntimeException: Error running script
at org.jruby.JRubyApplet.init(JRubyApplet.java:239)
at sun.applet.AppletPanel.run(AppletPanel.java:424)
at jep.AppletFramePanel.run(Unknown Source)
at java.lang.Thread.run(Thread.java:637)
Caused by: org.jruby.exceptions.RaiseException: no such file to load -- irb
at (unknown).new(<script>:1)
at Kernel.require(<script>:1)
at (unknown).(unknown)(:1)
{noformat}
I don't know enough about the security stuff to troubleshoot any further.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email