문제

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