I'm having the same problem here.
Using Litespeed in production mode.
It's intermitent and if I reload the page, it goes wothout errors...

I saw similar problems in Rails lists, but no answer.....

Anybody could solve this ??


Couple of suggestions that may fix your problem.

1. Make sure that you have no modules, classes defined by same name castle.rb.
2. If your module depends upon some of the external libraries, either
from RAILS_ROOT/lib directory or from standard ruby PATH, make sure
that you explicitly require that library in environment.rb file.