Subject | Connecting to Firebird embedded via Jaybird |
---|---|
Author | Marcus Rau |
Post date | 2005-08-23T12:58:59Z |
Hello,
I'm trying to embed Firebird 1.5.2 into Tomcat 5.0 (using JDK 1.4.2 on
Win XP).
That's what I did up to now:
1. Putting the necessary stuff (Firebird embedded files: fbembedd.dll,
ib_util.dll, firebird.conf, firebird.msg, the UDF and INTL
subdirectories with it's contents) to the directory
%CATALINA_HOME%\embeddb within tomcat installation dir, right as
described in the related documentation (README_embedded.txt from
distribution package),
2. Renaming fbembedd.dll to fbclient.dll
3. Including jaybird.dll into %CATALINA_HOME%\embeddb
4. Modifying the startup script, so that 'java.library.path' points to
$CATALINA_HOME\embeddb
That's what I'm encountering, if I try to connect via Jaybird 1.5.5:
java.lang.RuntimeException - Failed to initilize jaybird native library.
This is most likley due to a failure to load the firebird client library.
at
org.firebirdsql.ngds.GDS_Impl.attemptToLoadAClientLibraryFromList(GDS_Impl.java:135)
at org.firebirdsql.ngds.GDS_Impl.<init>(GDS_Impl.java:84)
at org.firebirdsql.gds.GDSFactory.createGDSForType(GDSFactory.java:65)
at org.firebirdsql.gds.GDSFactory.getGDSForType(GDSFactory.java:48)
at
org.firebirdsql.jca.FBManagedConnectionFactory.<init>(FBManagedConnectionFactory.java:127)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:121)
.........
An older version of Jaybird (1.5.1) behaves similar and tells me: ...
Could not find or load the GDS32.dll ...
Whether renaming the 'fbembedd.dll' to 'GDS32.dll' nor trying to export
%PATH% pointing to the libdir instead of setting 'java.library.home'
improves the situation.
What's wrong?
Regards
Marcus Rau
I'm trying to embed Firebird 1.5.2 into Tomcat 5.0 (using JDK 1.4.2 on
Win XP).
That's what I did up to now:
1. Putting the necessary stuff (Firebird embedded files: fbembedd.dll,
ib_util.dll, firebird.conf, firebird.msg, the UDF and INTL
subdirectories with it's contents) to the directory
%CATALINA_HOME%\embeddb within tomcat installation dir, right as
described in the related documentation (README_embedded.txt from
distribution package),
2. Renaming fbembedd.dll to fbclient.dll
3. Including jaybird.dll into %CATALINA_HOME%\embeddb
4. Modifying the startup script, so that 'java.library.path' points to
$CATALINA_HOME\embeddb
That's what I'm encountering, if I try to connect via Jaybird 1.5.5:
java.lang.RuntimeException - Failed to initilize jaybird native library.
This is most likley due to a failure to load the firebird client library.
at
org.firebirdsql.ngds.GDS_Impl.attemptToLoadAClientLibraryFromList(GDS_Impl.java:135)
at org.firebirdsql.ngds.GDS_Impl.<init>(GDS_Impl.java:84)
at org.firebirdsql.gds.GDSFactory.createGDSForType(GDSFactory.java:65)
at org.firebirdsql.gds.GDSFactory.getGDSForType(GDSFactory.java:48)
at
org.firebirdsql.jca.FBManagedConnectionFactory.<init>(FBManagedConnectionFactory.java:127)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:121)
.........
An older version of Jaybird (1.5.1) behaves similar and tells me: ...
Could not find or load the GDS32.dll ...
Whether renaming the 'fbembedd.dll' to 'GDS32.dll' nor trying to export
%PATH% pointing to the libdir instead of setting 'java.library.home'
improves the situation.
What's wrong?
Regards
Marcus Rau