My development environment has changed again. We have gone from
ROR/MySQL to JRoR/Oracle -> JRoR/JBoss/Oracle. Now we have to make it
run under JRoR/JBoss/MySQL. The app runs stand alone JRoR/MySQL with the
JDBC drivers. I am using Warbler to build the War file. I am using JRuby
1.2. Installed Gems are:
*** LOCAL GEMS ***
actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
ActiveRecord-JDBC (0.5)
activerecord-jdbc-adapter (0.9)
activerecord-jdbcmysql-adapter (0.9)
activeresource (2.2.2)
activesupport (2.2.2)
jdbc-mysql (5.0.4)
jruby-openssl (0.5)
net-sftp (2.0.2)
net-ssh (2.0.11)
parseexcel (0.5.2)
rails (2.2.2)
rake (0.8.6)
rspec (1.2.0)
rubyzip (0.9.1)
rufus-scheduler (2.0.1)
sources (0.0.1)
tzinfo (0.3.13)
warbler (0.9.12)
I realize that most are not the latest, but they are the combination
that work from db:migrate thru running live so far. I have also
mysql-connector-java-5.0.8-bin.jar in several places, including
jruby\lib.
After deplopying the app, I get the following dump to the browser screen
when I try to access the home page:
MissingSourceFile in UsersController#login
no such file to load – mysql
RAILS_ROOT:
C:\Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF
Application Trace | Framework Trace | Full Trace
/C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-complete-1.2.0.jar/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' /C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-complete-1.2.0.jar/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:155:in
require' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activesupport-2.2.2/lib/active_support/core_ext/kernel/requires.rb:7:in
require_library_or_gem’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activesupport-2.2.2/lib/active_support/core_ext/kernel/reporting.rb:11:in
silence_warnings' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activesupport-2.2.2/lib/active_support/core_ext/kernel/requires.rb:5:in
require_library_or_gem’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/mysql_adapter.rb:63:in
mysql_connection' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in
new_connection’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in
checkout_new_connection' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in
checkout’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in
loop' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in
checkout’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in
checkout' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in
connection’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/SubInfo.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in
retrieve_connection' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in
retrieve_connection’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:113:in
connection' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/query_cache.rb:8:in
cache’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:12:in
perform_action_with_caching' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in
process’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in
process_with_filters' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in
process_with_session_management_support’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in
process' :1 /C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-complete-1.2.0.jar/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require’
/C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-complete-1.2.0.jar/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' /C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-complete-1.2.0.jar/monitor.rb:191:in
mon_synchronize’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:183:in
handle_request' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in
dispatch_unlocked’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in
dispatch' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in
dispatch’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in
dispatch_cgi' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in
dispatch’
/C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/adapter/rails.rb:37:in
serve_rails' /C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/adapter/rails.rb:44:in
call’
/C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-rack-0.9.3.jar/jruby/rack/rails.rb:145:in
call' /C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/handler/servlet.rb:17:in
call’
/C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-complete-1.2.0.jar/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' /C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-complete-1.2.0.jar/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:155:in
require' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activesupport-2.2.2/lib/active_support/core_ext/kernel/requires.rb:7:in
require_library_or_gem’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activesupport-2.2.2/lib/active_support/core_ext/kernel/reporting.rb:11:in
silence_warnings' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activesupport-2.2.2/lib/active_support/core_ext/kernel/requires.rb:5:in
require_library_or_gem’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/mysql_adapter.rb:63:in
mysql_connection' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in
new_connection’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in
checkout_new_connection' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in
checkout’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in
loop' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in
checkout’
/C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-complete-1.2.0.jar/monitor.rb:191:in
mon_synchronize' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:183:in
checkout’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:98:in
connection' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in
retrieve_connection’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:121:in
retrieve_connection' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:113:in
connection’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/activerecord-2.2.2/lib/active_record/query_cache.rb:8:in
cache' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/caching/sql_cache.rb:12:in
perform_action_with_caching’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:524:in
process' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/filters.rb:606:in
process_with_filters’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/session_management.rb:134:in
process_with_session_management_support' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:392:in
process’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:183:in
handle_request' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in
dispatch_unlocked’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in
dispatch' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in
dispatch’
C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in
dispatch_cgi' C:/Development/jboss-5.0.1.GA/server/default/tmp/as102t/Sub.war/WEB-INF/gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in
dispatch’
/C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/adapter/rails.rb:37:in
serve_rails' /C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/adapter/rails.rb:44:in
call’
/C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-rack-0.9.3.jar/jruby/rack/rails.rb:145:in
call' /C:/Development/jboss-5.0.1.GA/server/default/deploy/Sub.war/WEB-INF/lib/jruby-rack-0.9.3.jar/rack/handler/servlet.rb:17:in
call’
:1
This error occurred while loading the following files:
mysql
The mysql-ds.xml in C:\Development\jboss-5.0.1.GA\server\default looks
like this:
I have tried every combination things I can think of. I even
uninstalled/re-installed/switched version of the jdbc gems. I have
checked that Warbler is getting all the gems into the War file.
Any hints/clues/working examples would be GREAT!!!
Thanks,
Norm