Ruby on rails 使用JRuby运行Rails应用程序时显示“LoadError”

Ruby on rails 使用JRuby运行Rails应用程序时显示“LoadError”,ruby-on-rails,jruby,Ruby On Rails,Jruby,我的rails应用程序在Ruby 1.8.7中运行良好。现在我想用JRuby测试我的rails应用程序。但是JRuby告诉我它不能自动加载某些文件,但是这些文件正确地存在于路径中 LoadError (Expected E:/youwenti/app/models/article/reference_aspect.rb to define Article::ReferenceAspect): app/models/article.rb:6:in `Article' app/models

我的rails应用程序在Ruby 1.8.7中运行良好。现在我想用JRuby测试我的rails应用程序。但是JRuby告诉我它不能自动加载某些文件,但是这些文件正确地存在于路径中

LoadError (Expected E:/youwenti/app/models/article/reference_aspect.rb to define
 Article::ReferenceAspect):
  app/models/article.rb:6:in `Article'
  app/models/article.rb:3:in `(root)'
  org/jruby/RubyKernel.java:1058:in `load'
  org/jruby/RubyKernel.java:2080:in `send'
  app/models/article.rb:99:in `latest'
  app/controllers/groups_controller.rb:36:in `show'
  app/controllers/groups_controller.rb:21:in `index'
  org/jruby/RubyKernel.java:2076:in `send'
  org/jruby/RubyKernel.java:2076:in `send'
  compass (0.11.7) lib/compass/app_integration/rails/actionpack2/action_controll
er.rb:7:in `process_with_compass'
  org/jruby/RubyProc.java:270:in `call'
  org/jruby/RubyProc.java:220:in `call'
  sass (3.1.15) rails/./lib/sass/plugin/rack.rb:54:in `call'
  org/jruby/RubyArray.java:1615:in `each'
  org/jruby/RubyArray.java:1615:in `each'
  org/jruby/RubyProc.java:270:in `call'
  org/jruby/RubyProc.java:224:in `call'
我已经在E:/youwenti/app/models/Article/reference_aspect.rb中定义了Article::referencespect。如何解决这个问题

Rails版本是2.3.14

JRuby版本是

jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (Java HotSpot(TM) Client VM 1.7.0_02) [Windows XP-x86-java]