JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-5337

No such file to load -- rack when booting JRuby 1.6.0RC1 Rails app in Tomcat

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.6RC1
    • Fix Version/s: JRuby 1.6RC3
    • Labels:
      None
    • Environment:
      Windows Server 2008, Tomcat 6.0, Rails 3.0.3, JRuby 1.6.0RC1
    • Number of attachments :
      0

      Description

      When deploying a WAR into Tomcat with bundled jruby-jars 1.6.0.rc1 and rack 1.0.5 (which gets bundled automatically with JRuby 1.6.0RC1), I get the following message in the browser when requesting the app in the browser:

      Application initialization failed: no such file to load – rack
      from /C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/work/Catalina/localhost/_/loader/vendor/rack.rb:7:in `(root)'
      from org/jruby/RubyKernel.java:1041:in `require'
      from /C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/work/Catalina/localhost/_/loader/vendor/rack.rb:28:in `boot!'
      from /C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/work/Catalina/localhost/_/loader/jruby/rack/boot/rack.rb:10:in `(class Rack)'
      from /C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/work/Catalina/localhost/_/loader/jruby/rack/boot/rack.rb:8:in `(root)'
      from org/jruby/RubyKernel.java:1066:in `load'
      from /C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/work/Catalina/localhost/_/loader/jruby/rack/boot/rack.rb:1:in `(root)'

      It seems that this error existed quite a while ago and is now present again in JRuby 1.6.0RC1?

        Issue Links

          Activity

          Hide
          Robert Glaser added a comment -

          Also getting the same error with jruby-jars 1.6.2.rc2 and jruby-rack 1.0.6 (final).

          Show
          Robert Glaser added a comment - Also getting the same error with jruby-jars 1.6.2.rc2 and jruby-rack 1.0.6 (final).
          Hide
          Nick Sieger added a comment -

          Hopefully this is fixed once and for all in 196873c.

          Show
          Nick Sieger added a comment - Hopefully this is fixed once and for all in 196873c.
          Hide
          David Lee added a comment -

          Nick, I just recompiled jruby (rvm install jruby-head), built the new jruby-jars, installed jruby-rack 1.0.6 final, made sure Gemfile was using the proper versions... everything is working perfectly now. My issue was specifically tied to the spaces and it works perfectly now. Thank you for the update and work. Looking forward to JRuby 1.6.0 final.

          Show
          David Lee added a comment - Nick, I just recompiled jruby (rvm install jruby-head), built the new jruby-jars, installed jruby-rack 1.0.6 final, made sure Gemfile was using the proper versions... everything is working perfectly now. My issue was specifically tied to the spaces and it works perfectly now. Thank you for the update and work. Looking forward to JRuby 1.6.0 final.
          Hide
          lucas dicioccio added a comment -

          I confirm it works with my setup as well on MacOS: (cf.
          https://github.com/lucasdicioccio/windows-jar-issue-with-spaces )
          Will try on Windows later and re-comment.

          Show
          lucas dicioccio added a comment - I confirm it works with my setup as well on MacOS: (cf. https://github.com/lucasdicioccio/windows-jar-issue-with-spaces ) Will try on Windows later and re-comment.
          Hide
          lucas dicioccio added a comment -

          Verified on WindowsXP, it works well. I've tried with path with spaces and accents. Thanks a lot !

          Show
          lucas dicioccio added a comment - Verified on WindowsXP, it works well. I've tried with path with spaces and accents. Thanks a lot !

            People

            • Assignee:
              Nick Sieger
              Reporter:
              Robert Glaser
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: