I am stuck with a problem for a very long time and i have hit a dead end with desperate need of a solution.
I have a web application which has to to be ported to WAR on Windows 7.The database I am using is Sqlit3.
Ruby Version :- ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]
JRuby Version :- jruby 9.0.5.0 (2.2.3) 2016-01-26 7bee00d Java HotSpot(TM) 64-Bit Server VM 24.45
-b08 on 1.7.0_45-b18 +jit [Windows 7-amd64]
Rails Version :- Rails 4.2.6
Before porting it to WAR ,these are the steps i do.These steps has worked in many Systems,But for few systems I am not able to get through,
1)I installed JRuby.
2)I installed rails on Jruby by running gem install rails -N
3)I removed the gem sqlite3 and add gem 'activerecord-jdbcsqlite3-adapter' (to make it java compatible)
After bundle install,
When I run rails c command ,
I get the below Exception,
*activerecord-jdbc-adapter is for use with JRuby only
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-jdbc-adapter-1
.3.20/lib/arjdbc/sqlite3/adapter.rb:1:in <top (required)>': undefined method
l
oad_java_part' for ArJdbc:Module (NoMethodError)
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-j
dbc-adapter-1.3.20/lib/arjdbc/sqlite3.rb:2:in require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-j
dbc-adapter-1.3.20/lib/arjdbc/sqlite3.rb:2:in
'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-j
dbcsqlite3-adapter-1.3.20/lib/activerecord-jdbcsqlite3-adapter.rb:3:in require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-j
dbcsqlite3-adapter-1.3.20/lib/activerecord-jdbcsqlite3-adapter.rb:3:in
'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:76:in require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:76:in
block (2 levels) in require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:72:in each'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:72:in
block in require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:61:in each'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/
lib/bundler/runtime.rb:61:in
require'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bundler-1.7.7/
lib/bundler.rb:133:in require'
from D:/srikanth-work/simple/config/application.rb:7:in
' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.2.6 /lib/rails/commands/commands_tasks.rb:78:in
require' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.2.6 /lib/rails/commands/commands_tasks.rb:78:in
block in server' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.2.6 /lib/rails/commands/commands_tasks.rb:75:intap' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.2.6 /lib/rails/commands/commands_tasks.rb:75:in
server' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.2.6 /lib/rails/commands/commands_tasks.rb:39:inrun_command!' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.2.6 /lib/rails/commands.rb:17:in
' from bin/rails:4:inrequire' from bin/rails:4:in
'*
Any suggestion would be really helpful