Running rake in a Rails 3.1.1 app with debug (-d) on via rvm/jruby gives java.lang.ClassNotFoundException: rubygems.defaults.OperatingSystemService ---------------------------------------------------------------------------------------------------------------------------------------------------
Key: JRUBY-6155 URL: https://jira.codehaus.org/browse/JRUBY-6155 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.6.5 Environment: OSX Lion (10.7.2) rvm 1.8.6 JRuby 1.6.5, Rails 3.1.1, JRUBY_OPTS=--1.9 Reporter: Chris Kimpton Priority: Minor Attachments: rake.log Running rake like this: jruby -d -S rake Gives the attached error, which starts like: java.lang.ClassNotFoundException: rubygems.defaults.OperatingSystemService at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.jruby.util.JRubyClassLoader.findClass(JRubyClassLoader.java:86) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.jruby.javasupport.JavaSupport.loadJavaClass(JavaSupport.java:136) at org.jruby.runtime.load.LoadService$ExtensionSearcher.trySearch(LoadService.java:619) at org.jruby.runtime.load.LoadService.findFileForLoad(LoadService.java:285) ... -- This message is automatically generated by JIRA. 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