Subject Re: [Firebird-Java] Using JayBird JDBC Drivers on Mac OS X Jaguar
Author David Jencks
here's a working connection string:

jdbc:firebirdsql:localhost/3050:/usr/java/jboss/co15/jboss-all/build/output/jboss-4.0.0alpha/server/default/data/tjdo.gdb

Note the nonstandard localhost/3050 part.

david jencks


On 2002.10.21 10:13:28 -0400 edwrenbeck wrote:
> 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.
>
>
>
> To unsubscribe from this group, send an email to:
> Firebird-Java-unsubscribe@yahoogroups.com
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
>