RAILS_ENV=production jruby -J-Xmx10240m -Xglobal.require.lock=true -rconfig/boot -rcommands/runner -e production "Physical::Utility ...
Took a couple of tries, but got a good pair:
LoadError: While processing family 23: Expected /var/www/apps/bpm_service/releases/20120329205747/lib/service_billing/individual_primary_care_service_billing_info.rb to define Se
rviceBilling::IndividualPrimaryCareServiceBillingInfo load_missing_constant at /var/www/apps/bpm_service/shared/bundle/jruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:426
const_missing_with_dependencies at /var/www/apps/bpm_service/shared/bundle/jruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80 load_missing_constant at /var/www/apps/bpm_service/shared/bundle/jruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:437
const_missing at /var/www/apps/bpm_service/shared/bundle/jruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:96
...
From a separate thread:
ArgumentError: While processing family 56: ServiceBilling is not missing constant PossibleEndDate!
load_missing_constant at /var/www/apps/bpm_service/shared/bundle/jruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:417
const_missing_with_dependencies at /var/www/apps/bpm_service/shared/bundle/jruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80
send at org/jruby/RubyKernel.java:2080
const_missing at /var/www/apps/bpm_service/shared/bundle/jruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:98
const_missing at /var/www/apps/bpm_service/shared/bundle/jruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:96
Unless I didn't pass the option in properly.
Note: adding lib to config.eager_load_paths takes care of the problem.
The fix for #3194 appears to be incomplete. I have updated to 1.6.7.2, and received the following greeting upon entering the threaded part of my application:
ArgumentError: While processing family 49: ServiceBilling is not missing constant IndividualBilling!
load_missing_constant at /var/www/apps/bpm_service/shared/bundle/jruby/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:417
Note that I was just as often seeing the error that Yehuda reported as this one on jruby versions through 1.6.5.