Subject | Re: [Firebird-Java] Connecting to Firebird embedded via Jaybird |
---|---|
Author | Roman Rokytskyy |
Post date | 2005-08-23T17:58:50Z |
> 1. Putting the necessary stuff (Firebird embedded files: fbembedd.dll,set FIREBIRD=%CATALINA_HOME%\embedded
> 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),
otherwise it will not find its config, UDF and INTL libs. firebird.msg is
not needed, since JayBird interprets the messages itself.
> 2. Renaming fbembedd.dll to fbclient.dllNot needed.
> 3. Including jaybird.dll into %CATALINA_HOME%\embeddbOk.
> 4. Modifying the startup script, so that 'java.library.path' points toIf you specify jdbc:firebirdsql:embedded: JDBC URL, it tries to find
> $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.
fbembed.dll, not the fbclient.dll or gds32.dll (the error message in 1.5.1
is incorrect). So, if you renamed fbembed.dll into fbclient.dll, you have to
use jdbc:firebirdsql:local: URL (which would work, but conceptually in
wrong).
Hope this helps.
Roman
P.S. Also we would be grateful if you can test JayBird 2.0.0 RC1 in the same
setup.