Subject Re: [Firebird-Java] JayBird and FireBird locations
Author Alec Swan
Sorry for not providing more details about our deployment environment.

We are trying to use JayBird 2.1.6 to connect to Firebird 2.1.2 in embedded
mode on Windows XP SP2.

* Firebird embedded version was extracted to a folder.
* The folder containing fbembed.dll was put on the java.library.path
* jaybird21.dll was copied to the same folder as fbembed.dll
* RootDirectory was set to point to the same folder in firebird.conf
* firebird.conf and jaybird-full-2.1.6.jar are on the Java classpath of the
application

It looks like we have followed all the instructions from the JayBird
documentation link you sent. However, we are still getting an exception
shown at the bottom.

What are we missing?

Thanks.

[java] com.nextpage.common.exception.SystemFailureException: Failed to
init
ilize Jaybird native library. This is most likley due to a failure to load
the firebird client library.
[java] at
com.nextpage.dbs.common.FirebirdEnvironmentFileConfiguratorIm
pl.beforeStarted(FirebirdEnvironmentFileConfiguratorImpl.java:76)
[java] at
com.nextpage.common.infrastructure.lifecycle.LifecycleImpl.st
art(LifecycleImpl.java:136)
[java] at
com.nextpage.common.infrastructure.layer.LayerImpl.startServi
ces(LayerImpl.java:567)
[java] at
com.nextpage.common.infrastructure.layer.LayerImpl.beforeStar
ted(LayerImpl.java:360)
[java] at
com.nextpage.common.infrastructure.lifecycle.LifecycleImpl.st
art(LifecycleImpl.java:136)
[java] at
com.nextpage.client.domain.persistence.UpgradeFramework.start
MinimalPersistenceLayer(UpgradeFramework.java:659)
[java] at
com.nextpage.client.domain.persistence.UpgradeFramework.initi
alizeSchemaInformation(UpgradeFramework.java:681)
[java] at
com.nextpage.client.domain.persistence.UpgradeFramework.isUpg
radeNecessary(UpgradeFramework.java:237)
[java] at
com.nextpage.client.domain.persistence.UpgradeFramework.isUpg
radeRequired(UpgradeFramework.java:110)
[java] at com.nextpage.client.ui.Main.executeUpgrade(Main.java:240)
[java] at com.nextpage.client.ui.Main.start(Main.java:316)
[java] at com.nextpage.client.ui.Main.access$300(Main.java:66)
[java] at com.nextpage.client.ui.Main$2$1.run(Main.java:184)
[java] at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
209)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
[java] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDisp
atchThread.java:269)
[java] at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatc
hThread.java:184)
[java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
atchThread.java:174)
[java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:169)
[java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:161)
[java] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:122
)


On Fri, Sep 25, 2009 at 12:08 AM, Roman Rokytskyy <roman@...>wrote:

>
>
> > Can anybody explain or point to a document which describes how to
> configure
> > JayBird and Firebird without setting any environment variables?
>
> http://jaybirdwiki.firebirdsql.org/jaybird/doku.php?id=config:driver_config
>
> Seems that you're trying to use either embedded server or local (IPC)
> connections to Firebird. If that is not what you want to do, you used
> wrong JDBC URL (see wiki page).
>
> If that's correct, then you also have to put fbclient.dll or fbembed.dll
> into the path. If that was done as well, then, very likely, you have
> issues with the Firebird client library or embedded server itself
> (library dependencies, config files). In this case you should check your
> Firebird config first, e.g. with isql.
>
> Roman
>
>


[Non-text portions of this message have been removed]