I try to use jboss-seam with a db2 database, the following error occurs
com.ibm.db2.jcc.a.SqlException: [jcc][10389][12245][3.52.95] while loading the native
library db2jcct2, java.lang.UnsatisfiedLinkError: no db2jcct2 in java.library.path
an error occurred ERRORCODE=-4472, SQLSTATE=null
I tried setting -Djava.library.path=/opt/IBM/db2/V9.5/lib64
as well as
-Djava.library.path=/opt/IBM/db2/V9.5/lib32
Both paths include libdb2jcct2.so
I also tried to set LD_LIBRARY_PATH
with no effect.
OS is MacOs
EDIT I also tried to use a JDBC4 driver , db2jcc4.jar since jdbc4 drivers shouldn't rely on native libs.