Skip to content


Subversion checkout URL

You can clone with
Download ZIP


jruby-ehcache 1.2.0 missing ehcache/active_support_store #3

crawlik opened this Issue · 6 comments

4 participants


Looks like whole active_support_store directory is missing in 1.2.0 release. Call stack below...

$ rails s
Mar 15, 2012 4:34:54 PM sun.reflect.NativeMethodAccessorImpl invoke0
INFO: Using Ehcache version 2.4.6
LoadError: no such file to load -- ehcache/active_support_store
require at org/jruby/
(root) at /home/alex/.rvm/gems/jruby-1.6.2/gems/jruby-ehcache-1.2.0/lib/ehcache.rb:25
require at org/jruby/
require at /home/alex/.rvm/gems/jruby-1.6.2/gems/jruby-ehcache-1.2.0/lib/ehcache.rb:68
each at org/jruby/
require at /home/alex/.rvm/gems/jruby-1.6.2/gems/bundler-1.0.22/lib/bundler/runtime.rb:66
each at org/jruby/
require at /home/alex/.rvm/gems/jruby-1.6.2/gems/bundler-1.0.22/lib/bundler/runtime.rb:55
require at /home/alex/.rvm/gems/jruby-1.6.2/gems/bundler-1.0.22/lib/bundler.rb:122
(root) at /home/alex/projects/vulcan/reporting/config/application.rb:14
require at org/jruby/
(root) at /home/alex/projects/vulcan/reporting/config/application.rb:28
tap at org/jruby/
(root) at /home/alex/.rvm/gems/jruby-1.6.2/gems/railties-3.0.9/lib/rails/commands.rb:27
require at org/jruby/
(root) at script/rails:10


Hi, we're looking into this issue and we'll have a fix ready soon.


Hi @crawlik!

You're are right. The jruby-ehcache gem does not contain the active support directory. That directory is found in the rails specific gems:

  • jruby-ehcache-rails2
  • jruby-ehcache-rails3

I made some changes to the way the gems are constructed and how jruby-ehcache behaves when in a rails project. Check here:

You can see the bit that is causing you trouble. My guess is you have jruby-ehcache in your project and not the rails ehcache gem. Can you get going if you just add the jruby-ehcache-rails3 gem?

In the meantime, we should probably have the code detect if the rails specific gem is available and only try to include the directory if it is there. @jvoegele Any thoughts?


Hi @elskwid

Thanks for looking into the issue. Adding jruby-ehcache-rails3 to Gemfile fixed the issue. However I noticed that just having jruby-ehcache-rails3 is not enough, both gems need to be in Gemfile. And I wonder wouldn't it be more convenient to have jruby-ehcache-rails* gem in RoR and jruby-ehcache in non-RoR projects? What do you think?

@dylanz dylanz referenced this issue from a commit
Dylan Stamat Removing Jeweler and using straight Bundler instead. Also tidied up a…
… dependency issue so jruby-ehcache can be used on its own. Installing the jruby-ehcache-rails* gems will ensure jruby-ehcache is installed as well. This references issue #3.

Gents! Did these recent changes fix the issues you were running into?


Looks like it did. Use gem 'jruby-ehcache-rails3', :require=>'ehcache' in your Gemfile


@crawlik Excellent, thanks for confirming. I also added Gemfile instructions to the README, to make sure 'ehcache' gets defined there explicitly. Thanks again!

@dylanz dylanz closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.