Subject Using JayBird JDBC Drivers on Mac OS X Jaguar
Author edwrenbeck
Hello all,

I am trying to use the JayBird JDBC drivers to connect to a locally
running Firebird database usng a servlet running on Tomcat.

The servlet just seems to hang when it attempts to connect to my
database. Most of my experience has been InterBase/InterClient on W32,
and I am a relative newbie to the Mac world, so please be patient with
my ignorance.

As put all of the jars in the common/lib dir in the Tomcat directory.
I have created the 'firebird' file in the xinetd.d dir, as seen posted
elsewhere. A port scan shows port 3050 is open. I have used the isql
utility to connect to the database and do some select statements.

Here is the java code that I am trying to run:


try {
//Class.forName("interbase.interclient.Driver").newInstance();
System.out.println("DatabaseTest::processRequest::Loading FBDriver
class");
Class.forName("org.firebirdsql.jdbc.FBDriver");
System.out.println("DatabaseTest::processRequest::Creating connection
to database");
//conn
=DriverManager.getConnection("jdbc:firebirdsql://l
ocalhost:3050/Work/FireBird/test.gdb",
"sysdba", "masterkey");
conn =
DriverManager.getConnection("jdbc:firebirdsql:loca
lhost/3050:/Work/FireBird/test.gdb",
"sysdba", "masterkey");
//conn =
DriverManager.getConnection("jdbc:firebirdsql://12
7.0.0.1:3050/Work/FireBird/test.gdb",
"sysdba", "masterkey");
System.out.println("DatabaseTest::processRequest::Connected to
database");
}

Here is what gets printed into catalina.out

DatabaseTest::processRequest::Version 7
DatabaseTest::processRequest::Loading FBDriver class
DatabaseTest::processRequest::Creating connection to database

As you can see, the class loader seems to find the class, but the
connect statement just hangs. I have tried using 'localhost',
'loopback', '127.0.0.1', and the actual ip of the box without success

Any help would be appreciated, Ed.