Subject | ODCB JayBird doesn't work |
---|---|
Author | tomas_fischer99 |
Post date | 2007-10-02T19:46:46Z |
Hi,
I'm trying to connect to a Firebird database via JayBird.
Unfortunately, it doesn't work:
I ran the DriverExample.java from the example folder in JayBird.
It fails with an error message, that the firebird client library can't
be found (see below).
The libjaybird.so is located in Eclipse's build path. The Firebird
client libraries are also present (Debian SID)
libfbclient.so.1 (libc6) => /usr/lib/libfbclient.so.1
Other database access, e.g. with FlameRobin works fine.
I've no idea what's going wrong. It would be great, if someone could help.
Best regards,
Tomas
exception stack:
Firebird JCA-JDBC driver version 2.0 registered with driver manager.
org.firebirdsql.gds.impl.jni.InternalError:
FirebirdApiBinding::Initialize - Could not find or load the firebird
client library.
at org.firebirdsql.gds.impl.jni.JniGDSImpl.nativeInitilize(Native Method)
at
org.firebirdsql.gds.impl.jni.JniGDSImpl.attemptToLoadAClientLibraryFromList(JniGDSImpl.java:85)
at org.firebirdsql.gds.impl.jni.LocalGDSImpl.<init>(LocalGDSImpl.java:29)
at org.firebirdsql.gds.impl.jni.LocalGDSImpl.<init>(LocalGDSImpl.java:19)
at
org.firebirdsql.gds.impl.jni.LocalGDSFactoryPlugin.getGDS(LocalGDSFactoryPlugin.java:40)
at org.firebirdsql.gds.impl.GDSFactory.getGDSForType(GDSFactory.java:219)
at
org.firebirdsql.jca.FBManagedConnectionFactory.getGDS(FBManagedConnectionFactory.java:110)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:125)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at database.DriverExample.main(DriverExample.java:225)
I'm trying to connect to a Firebird database via JayBird.
Unfortunately, it doesn't work:
I ran the DriverExample.java from the example folder in JayBird.
It fails with an error message, that the firebird client library can't
be found (see below).
The libjaybird.so is located in Eclipse's build path. The Firebird
client libraries are also present (Debian SID)
> ldconfig -p | grep fbclientlibfbclient.so.2 (libc6) => /usr/lib/libfbclient.so.2
libfbclient.so.1 (libc6) => /usr/lib/libfbclient.so.1
Other database access, e.g. with FlameRobin works fine.
I've no idea what's going wrong. It would be great, if someone could help.
Best regards,
Tomas
exception stack:
Firebird JCA-JDBC driver version 2.0 registered with driver manager.
org.firebirdsql.gds.impl.jni.InternalError:
FirebirdApiBinding::Initialize - Could not find or load the firebird
client library.
at org.firebirdsql.gds.impl.jni.JniGDSImpl.nativeInitilize(Native Method)
at
org.firebirdsql.gds.impl.jni.JniGDSImpl.attemptToLoadAClientLibraryFromList(JniGDSImpl.java:85)
at org.firebirdsql.gds.impl.jni.LocalGDSImpl.<init>(LocalGDSImpl.java:29)
at org.firebirdsql.gds.impl.jni.LocalGDSImpl.<init>(LocalGDSImpl.java:19)
at
org.firebirdsql.gds.impl.jni.LocalGDSFactoryPlugin.getGDS(LocalGDSFactoryPlugin.java:40)
at org.firebirdsql.gds.impl.GDSFactory.getGDSForType(GDSFactory.java:219)
at
org.firebirdsql.jca.FBManagedConnectionFactory.getGDS(FBManagedConnectionFactory.java:110)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:125)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at database.DriverExample.main(DriverExample.java:225)