Solved: JRoR, Goldspike + NetWeaver
I finally managed to get a database backed JRuby on Rails application to run smoothly on SAP NetWeaver '04 (J2EE1.4 + JDK1.4).
What I needed to do to get it working was:
- Adding the MySQL jar file to war.rb (thanks to Raphaël for leading me in that direction)
- Moving my code to an empty rails application (perhaps something went wrong with the goldspike plugin?)
- Creating the war file using goldspike
- Building jruby.jar for myself
- Deleting jruby-complete-1.0.jar from the war file, and adding my own jruby.jar together with a couple of other dependent jar files (seems to be the ones from retroweaver).
- Packaging and deploying the war file to the NetWeaver Application Server
Note: I tried to just build jruby-complete.jar, but for some reason it didn't work (I got a NoClassDefFoundError: null in line 715 of Ruby.java). That's why I built jruby.jar instead.
So I actually have my first JRuby on Rails application running on SAP NetWeaver 2004 now! :-)
I'm all joy.
The SQL Server issue still remains, but is of less importance.
technorati tags:jruby, RoR, ruby, rails, goldspike, jdk 1.4, jdk14, sap, netweaver, solved, solution, issue, problem, trouble