Uploaded image for project: 'TorqueBox'
  1. TorqueBox
  2. TORQUE-503

Unable to load bundled gems due to wrong vfs paths

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.1
    • Fix Version/s: 1.1.1
    • Component/s: VFS
    • Labels:

      Description

      I have a rails 3 app and all needed gems are installed into the /distro folder in the appbase. When Torquebox deploys this app it will fail because it can not load the files(see stacktrace below). The path in the error message is wrong - it should be "vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/zfl-0.1.12-java/lib/zfl/core/vendor/libs" instead of "vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1/8/gems/zfl-0/1/12-java/lib/zfl/core/vendor/libs". Seems like it was interpreted as a java resource path and therefore it fails. This error occurs when using a simple *.yml descriptor as well wehn using a bundled *.knob file. Any help is appreciated.

      Stacktrace:

      13:19:30,244 ERROR [org.torquebox.interp.core.RubyRuntimeFactoryImpl] Failed to initialize runtime: : org.jruby.exceptions.RaiseException: (LoadError) no such file to load – vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1/8/gems/zfl-0/1/12-java/lib/zfl/core/vendor/libs
      at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038) [:]
      at rubyjit.require_3E6CA858403268171F46C45451765CD50640768C.require(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239)
      at rubyjit.load_dependency_04443C3CFAC2D53B173F0FF308908A72BD893CCC.load_dependency(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225)
      at rubyjit.new_constants_in_5D30978A4C0A5CC39C38CC4138835D0922874561.new_constants_in(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:596)
      at rubyjit.new_constants_in_5D30978A4C0A5CC39C38CC4138835D0922874561.new_constants_in(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:595)
      at rubyjit.load_dependency_04443C3CFAC2D53B173F0FF308908A72BD893CCC.load_dependency(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225)
      at rubyjit.require_3E6CA858403268171F46C45451765CD50640768C.require(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239)
      at #<Class:0x14d7369fd>.(root)(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/zfl-0.1.12-java/lib/zfl/core.rb:38) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038) [:]
      at rubyjit.require_3E6CA858403268171F46C45451765CD50640768C.require(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239)
      at rubyjit.load_dependency_04443C3CFAC2D53B173F0FF308908A72BD893CCC.load_dependency(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225)
      at rubyjit.new_constants_in_5D30978A4C0A5CC39C38CC4138835D0922874561.new_constants_in(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:596)
      at rubyjit.new_constants_in_5D30978A4C0A5CC39C38CC4138835D0922874561.new_constants_in(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:595)
      at rubyjit.load_dependency_04443C3CFAC2D53B173F0FF308908A72BD893CCC.load_dependency(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225)
      at rubyjit.require_3E6CA858403268171F46C45451765CD50640768C.require(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239)
      at #<Class:0x14d7369fd>.(root)(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/zfl-0.1.12-java/lib/zfl/core.rb:5) at org.jruby.RubyKernel.load(org/jruby/RubyKernel.java:1063) [:]
      at #<Class:0x116a15a6e>.load(vfs:/home/wolle/svn/zeus/middleware/trunk/config/initializers/004_zfl.rb:235) at rubyjit.load_dependency_04443C3CFAC2D53B173F0FF308908A72BD893CCC.load_dependency(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225)
      at rubyjit.new_constants_in_5D30978A4C0A5CC39C38CC4138835D0922874561.new_constants_in(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:596)
      at rubyjit.new_constants_in_5D30978A4C0A5CC39C38CC4138835D0922874561.new_constants_in(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:595)
      at rubyjit.load_dependency_04443C3CFAC2D53B173F0FF308908A72BD893CCC.load_dependency(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225)
      at ActiveSupport::Dependencies::Loadable.load(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:235) at #<Class:0x116a15a6e>.Engine(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/railties-3.0.7/lib/rails/engine.rb:201)at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1603) [:]
      at #<Class:0x116a15a6e>.Engine(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/railties-3.0.7/lib/rails/engine.rb:200) at org.jruby.RubyKernel.instance_exec(org/jruby/RubyKernel.java:2078) [:]
      at Rails::Initializable::Initializer.run(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/railties-3.0.7/lib/rails/initializable.rb:25)at #<Class:0x116a15a6e>.run_initializers(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/railties-3.0.7/lib/rails/initializable.rb:50) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1603) [:]
      at Rails::Initializable.run_initializers(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/railties-3.0.7/lib/rails/initializable.rb:49)at Rails::Application.initialize!(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/railties-3.0.7/lib/rails/application.rb:134) at rubyjit.method_added_6B5113DF247F5018D8F5B019934F9377F00A1ADD.method_added(classpath:/org/torquebox/rails/core/boot.rb:79)
      at org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2092) [:]
      at #<Class:0x173400f7b>.method_missing(vfs:/home/wolle/svn/zeus/middleware/trunk/distro/jruby/1.8/gems/railties-3.0.7/lib/rails/application.rb:77) at #<Class:0x14d7369fd>.(root)(vfs:/home/wolle/svn/zeus/middleware/trunk/config/environment.rb:8) at org.jruby.RubyKernel.load(org/jruby/RubyKernel.java:1063) [:]
      at #<Class:0x14d7369fd>.(root)(vfs:/home/wolle/svn/zeus/middleware/trunk/config/environment.rb:98) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1038) [:]
      at rubyjit.require_BFDB9D6137549CC22CA0E10941FA24A08C18265C.require(/home/wolle/.rvm/rubies/jruby-1.6.3/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29)
      at #<Class:0x14d7369fd>.(root)(classpath:/org/torquebox/rails/core/boot.rb:3)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tcrawley Toby Crawley
                Reporter:
                wollsau Wolfgang Wedelich-John
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: