Subject | RE: [Firebird-Java] Type 2 Driver |
---|---|
Author | Ryan Baldwin |
Post date | 2003-06-05T10:39:33Z |
Hi,
I have just re-tested this using DriverManager and it is working for me. The
strange thing is that using the embeded stuff from
'firebirdembededforjava_JDK14_RC1_01.zip' it should not be attempt to make a
network connection to any host - its hard coded to ignore hostname/ip
address part of the url.
My sugestions are:
1) Make sure that 'firebirdsql_embeded.jar' is on your class path and that
the original firebirdsql*.jar has been taken off your class path. I have a
feeling this is the most likley cause of your problem. You will probarbly
still need the mini-*.jar files.
2) My connection string looks like
'jdbc:firebirdsql://loopback/C:\blah\blah\blah.FDB'. Notice the path
seperators are different. I dont know(but dont think) if this will make any
difference - it seems windows is usually happy with either - at least win2k
etc.
I hope this helps you out. Please let us know how you get on.
Thanks
Ryan
-----Original Message-----
From: Luca Lafranchi [mailto:luca.lafranchi@...]
Sent: 05 June 2003 10:54
To: Firebird-Java@yahoogroups.com
Subject: [Firebird-Java] Type 2 Driver
Hi :)
I'm trying to use the type 2 driver against the embedded 1.5 server, but
I'm stuck at the basics: I get no connection. I'm using the
"DriverManger.getConnection(...)" mechanism. As written in the
readme.txt file, I must use the loopback address, so that my connection
string looks like "jdbc:firebirdsql://127.0.0.1/c:/path/to/db/db.gdb".
What I get is:
Cannot connect to this database:
jdbc:firebirdsql://127.0.0.1/c:/path/to/db/db.gdb
org.firebirdsql.jdbc.FBSQLException: Resource Exception. Unable to
complete network request to host "127.0.0.1".
I also tried setting the port, but nothing changed.
I copied the dlls in JDK/bin, JRE/bin, my project's root directory under
JBuilder, but nothing...
Any hints?
Environment is Win2000Pro, I'm using the
firebirdsql_withtype2changes.jar, with the dlls from
firebirdembededforjava_JDK14_RC1_01.zip, which are both on the file
section of the yahoo group.
TIA
Luca
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/
I have just re-tested this using DriverManager and it is working for me. The
strange thing is that using the embeded stuff from
'firebirdembededforjava_JDK14_RC1_01.zip' it should not be attempt to make a
network connection to any host - its hard coded to ignore hostname/ip
address part of the url.
My sugestions are:
1) Make sure that 'firebirdsql_embeded.jar' is on your class path and that
the original firebirdsql*.jar has been taken off your class path. I have a
feeling this is the most likley cause of your problem. You will probarbly
still need the mini-*.jar files.
2) My connection string looks like
'jdbc:firebirdsql://loopback/C:\blah\blah\blah.FDB'. Notice the path
seperators are different. I dont know(but dont think) if this will make any
difference - it seems windows is usually happy with either - at least win2k
etc.
I hope this helps you out. Please let us know how you get on.
Thanks
Ryan
-----Original Message-----
From: Luca Lafranchi [mailto:luca.lafranchi@...]
Sent: 05 June 2003 10:54
To: Firebird-Java@yahoogroups.com
Subject: [Firebird-Java] Type 2 Driver
Hi :)
I'm trying to use the type 2 driver against the embedded 1.5 server, but
I'm stuck at the basics: I get no connection. I'm using the
"DriverManger.getConnection(...)" mechanism. As written in the
readme.txt file, I must use the loopback address, so that my connection
string looks like "jdbc:firebirdsql://127.0.0.1/c:/path/to/db/db.gdb".
What I get is:
Cannot connect to this database:
jdbc:firebirdsql://127.0.0.1/c:/path/to/db/db.gdb
org.firebirdsql.jdbc.FBSQLException: Resource Exception. Unable to
complete network request to host "127.0.0.1".
I also tried setting the port, but nothing changed.
I copied the dlls in JDK/bin, JRE/bin, my project's root directory under
JBuilder, but nothing...
Any hints?
Environment is Win2000Pro, I'm using the
firebirdsql_withtype2changes.jar, with the dlls from
firebirdembededforjava_JDK14_RC1_01.zip, which are both on the file
section of the yahoo group.
TIA
Luca
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/