Hello there JRuby developers. I am the author of an Eclipse scripting tool called Groovy Monkey (http://groovy-monkey.sourceforge.net/update ) that is a set of enhancements on the Eclipse Monkey tool.
One of the most significant enhancements I added was the ability to write the monkey scripts in a number of languages including Ruby through your JRuby (using version 0.8.3). For the most part I found it seamless to integrate through the Bean Scripting Framework except for one part. When I tried to modify the class loader used by the ruby runtime in order to add classes needed for a script from another bundle plugin, it failed. I was able to hack it by modifying your JavaSupport class to not just use the classloader for the JavaSupport class, but check to see if there is a context classloader set and to use it instead. I don't particularly like this hack, but it seems to work for my application. I did notice however, that in the BSFManager class in the BSF framework that there is a method to set the class loader to use and it seems as though that should probably be the one? Any thoughts, James E. Ervin -- A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects. -Robert A. Heinlein Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Jruby-devel mailing list Jruby-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jruby-devel