Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

jruby-win32ole GEM not loading #180

Closed
jamuc opened this issue May 13, 2014 · 0 comments
Closed

jruby-win32ole GEM not loading #180

jamuc opened this issue May 13, 2014 · 0 comments

Comments

@jamuc
Copy link

jamuc commented May 13, 2014

Hi,

I have the following setup:

  • TorqueBox 3.1 installed as GEM
  • JRuby 1.7.12
  • Rails 3.2.17
  • Windows Server 2008

I've loaded jruby-win32ole' version '0.8.5' in my Gemfile. When running jruby directly from the Windows command line everything works as expected.

When trying to deploy the Rails App via TorqueBox, I get the following error:

16:22:13,711 ERROR [org.torquebox.core.runtime] (pool-1-thread-2) Error during execution: ENV['RAILS_ROOT']=RACK_ROOT
ENV['RAILS_ENV']=RACK_ENV
require %q(org/torquebox/web/rails/boot)
: org.jruby.exceptions.RaiseException: (LoadError) load error: win32ole/win32ole -- java.lang.NoClassDefFoundError: Could not initialize class org.racob.com.IUnknown
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) [jruby.jar:]
    at ActiveSupport::Dependencies::Loadable.require(C:/Program Files/TOWER ONE/TARMAC/vendor/bundle/jruby/1.9/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251)    at ActiveSupport::Dependencies::Loadable.load_dependency(C:/Program Files/TOWER ONE/TARMAC/vendor/bundle/jruby/1.9/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236)    at ActiveSupport::Dependencies::Loadable.require(C:/Program Files/TOWER ONE/TARMAC/vendor/bundle/jruby/1.9/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251)    at RUBY.(root)(C:/Program Files/TOWER ONE/TARMAC/vendor/bundle/jruby/1.9/gems/jruby-win32ole-0.8.5/lib/jruby-win32ole.rb:10)    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) [jruby.jar:]
    at RUBY.(root)(C:/Program Files/TOWER ONE/TARMAC/deployment/jruby/lib/ruby/gems/shared/gems/bundler-1.6.2/lib/bundler/runtime.rb:1) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) [jruby.jar:]
    at RUBY.require(C:/Program Files/TOWER ONE/TARMAC/deployment/jruby/lib/ruby/gems/shared/gems/bundler-1.6.2/lib/bundler/runtime.rb:76)   at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) [jruby.jar:]
    at RUBY.require(C:/Program Files/TOWER ONE/TARMAC/deployment/jruby/lib/ruby/gems/shared/gems/bundler-1.6.2/lib/bundler/runtime.rb:72)   at RUBY.require(C:/Program Files/TOWER ONE/TARMAC/deployment/jruby/lib/ruby/gems/shared/gems/bundler-1.6.2/lib/bundler/runtime.rb:61)   at RUBY.require(C:/Program Files/TOWER ONE/TARMAC/deployment/jruby/lib/ruby/gems/shared/gems/bundler-1.6.2/lib/bundler.rb:132)  at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) [jruby.jar:]
    at RUBY.(root)(C:/Program Files/TOWER ONE/TARMAC/config/application.rb:9)   at org.jruby.RubyKernel.load(org/jruby/RubyKernel.java:1081) [jruby.jar:]
    at RUBY.(root)(C:/Program Files/TOWER ONE/TARMAC/config/environment.rb:1)   at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) [jruby.jar:]
    at RUBY.(root)(C:/Program Files/TOWER ONE/TARMAC/config/environment.rb:2)
16:22:13,727 ERROR [org.torquebox.core.runtime] (pool-1-thread-2) Failed to initialize runtime: : org.jruby.exceptions.RaiseException: (LoadError) load error: win32ole/win32ole -- java.lang.NoClassDefFoundError: Could not initialize class org.racob.com.IUnknown
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) [jruby.jar:]
    at ActiveSupport::Dependencies::Loadable.require(C:/Program Files/TOWER ONE/TARMAC/vendor/bundle/jruby/1.9/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251)    at ActiveSupport::Dependencies::Loadable.load_dependency(C:/Program Files/TOWER ONE/TARMAC/vendor/bundle/jruby/1.9/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236)    at ActiveSupport::Dependencies::Loadable.require(C:/Program Files/TOWER ONE/TARMAC/vendor/bundle/jruby/1.9/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251)    at RUBY.(root)(C:/Program Files/TOWER ONE/TARMAC/vendor/bundle/jruby/1.9/gems/jruby-win32ole-0.8.5/lib/jruby-win32ole.rb:10)    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) [jruby.jar:]
    at RUBY.(root)(C:/Program Files/TOWER ONE/TARMAC/deployment/jruby/lib/ruby/gems/shared/gems/bundler-1.6.2/lib/bundler/runtime.rb:1) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) [jruby.jar:]
    at RUBY.require(C:/Program Files/TOWER ONE/TARMAC/deployment/jruby/lib/ruby/gems/shared/gems/bundler-1.6.2/lib/bundler/runtime.rb:76)   at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) [jruby.jar:]
    at RUBY.require(C:/Program Files/TOWER ONE/TARMAC/deployment/jruby/lib/ruby/gems/shared/gems/bundler-1.6.2/lib/bundler/runtime.rb:72)   at RUBY.require(C:/Program Files/TOWER ONE/TARMAC/deployment/jruby/lib/ruby/gems/shared/gems/bundler-1.6.2/lib/bundler/runtime.rb:61)   at RUBY.require(C:/Program Files/TOWER ONE/TARMAC/deployment/jruby/lib/ruby/gems/shared/gems/bundler-1.6.2/lib/bundler.rb:132)  at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) [jruby.jar:]
    at RUBY.(root)(C:/Program Files/TOWER ONE/TARMAC/config/application.rb:9)   at org.jruby.RubyKernel.load(org/jruby/RubyKernel.java:1081) [jruby.jar:]
    at RUBY.(root)(C:/Program Files/TOWER ONE/TARMAC/config/environment.rb:1)   at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065) [jruby.jar:]
    at RUBY.(root)(C:/Program Files/TOWER ONE/TARMAC/config/environment.rb:2)

I've also reproduced this error with JRuby 1.7.11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants