Вопрос

I have Jruby on rails application connected with DB2 C-Express. My problem is that the torquebox is not able to find the additional jar driver which I am using to connect the database and the application.

I have found that if you have torque box install you should add this jar in the

torquebox-current/jboss/server/default/lib

folder. The problem is that when I install the torque box following the official documentation I use the "First Steps with RVM" way and I have not got the folder mention above - I just have the torque box gem.

What's the way to point the torque box gem where the jar is?

Это было полезно?

Решение

After deep looking through the jboss and TorqueBox files I was not able to solve the issue. Fortunately, I've got some help from torque box - IRC Channel.

If you want to use db2 with WEBRICK you need to copy db2jcc.jar and db2jcc_license_cu.jar to jruby/lib (~/.rvm/rubies/jruby-*/lib) directory.

The good thing about TorqueBox is that

TorqueBox automatically adds any jar files under the applications lib/ directory to the classpath of your application

So, just copy these files into your application lib/ directory.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top