2012/8/8 David kerber <dcker...@verizon.net>: > I use SQLA12, though on windows rather than Linux, and I think you have the > wrong value for your driver clause. I think you need > "ianywhere.ml.jdbcodbc.IDriver", rather than the file name. > > The driver file should usually be in your WEB-INF/lib directory. > > I'd also suggest using the sybase newsgroups rather than tomcat for this. >
1. A native library (.so/.dll) cannot be in WEB-INF/lib, because it can be loaded int JVM only once, and web applications can be restarted, undeployed etc. 2. Call System.getProperty("java.library.path"); and print its value. > > On 8/8/2012 9:06 AM, CHRISTOS STAVRINOU wrote: >> >> Problem with tomcat 7 and java ld_library_path under centos 6 using >> IANYWHERE JDBC DRIVER >> >> At what path I must copy the file dbjodbc12.so? What is the correct >> configuration? >> >> How I can configure the java.library.path under under centos 6 and >> tomcat 7 in order to fix the problem? >> >> Please help me. If you have any answers please email me to >> stavr...@gmail.com >> >> Thanks in advance >> >> The connection string is as follows: >> >> "jdbc:ianywhere:driver=libdbodbc12.so;ENG=host;DBN=database" >> But when running the program, I get the following exception (with the >> relevant stack trace) - >> Exception in thread "main" java.lang.UnsatisfiedLinkError: no >> dbjodbc12 in java.library.path >> at >> java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) >> at java.lang.Runtime.loadLibrary0(Runtime.java:823) >> at java.lang.System.loadLibrary(System.java:1030) >> at >> ianywhere.ml.jdbcodbc.IDriver.try_load(IDriver.java:247) >> at >> ianywhere.ml.jdbcodbc.IDriver.<clinit>(IDriver.java:216) >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Class.java:169) >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org