Re: [jruby-dev] JRuby LocalContextScope issue with Gem path

2013-03-29 Thread Anthony Juckel
I've run my sample in equinox 3.5.2, and it continues to function, so I think the problem must be somewhere else. I'm guessing that if you were to literally load the class via scriptingContainer.runScriptlet just under where you loaded the class in Java, it would work. Which leads me to think you

Re: [jruby-dev] JRuby LocalContextScope issue with Gem path

2013-03-28 Thread Mike Davidson
I tried what you suggested and yes the IRuntime class is loaded without any issues. I added the following right at the beginning of the Activator.start() method: // Experiment to see if this bundle has access to IRuntime class log.info("start: loading IRuntime class..."); Class iR

Re: [jruby-dev] JRuby LocalContextScope issue with Gem path

2013-03-28 Thread Anthony Juckel
Hrm. As long as the bundle who's activator you show here has access to com.raritan.polaris.plugins.dynamic.bridge.IRuntime (and any classes it references, remember) I'd expect it to work. If you throw context.getBundle().loadClass("com.raritan.polaris.plugins.dynamic.bridge.IRuntime"); in there b

Re: [jruby-dev] JRuby LocalContextScope issue with Gem path

2013-03-28 Thread Mike Davidson
> > Have I done anything different from you? What OSGi framework are you using? > Is there a particular bundled gem that you're unable to load? Thanks a lot for checking this out. We're using Equinox as well. We're on an older version though, so I wonder if that has something to do with thi

Re: [jruby-dev] JRuby LocalContextScope issue with Gem path

2013-03-27 Thread Anthony Juckel
On Tue, Mar 19, 2013 at 5:48 PM, Mike Davidson wrote: > When using THREADSAFE Gem path looks like: > > ["/opt/application/lib/configuration/org.eclipse.osgi/bundles/3/1/.cp/META-INF/jruby.home/lib/ruby/gems/shared", > "/.gem/jruby/1.9"] > > When using CONCURRENT Gem path looks like: > > ["classpat