Subject | Re: [Firebird-Java] Type 2 Driver |
---|---|
Author | Luca Lafranchi |
Post date | 2003-06-05T11:01:44Z |
Ok, now I've seen it:
- if I use the firebirdsql_embeded.jar from
"firebirdembededforjava_JDK14_RC1_01.zip" everything goes well;
- if I use the firebirdsql_withtype2changes.jar it attempts to build a
network connection and fails;
- forward and backward slash can be both used.
Thanks for the help
Luca
Ryan Baldwin wrote:
- if I use the firebirdsql_embeded.jar from
"firebirdembededforjava_JDK14_RC1_01.zip" everything goes well;
- if I use the firebirdsql_withtype2changes.jar it attempts to build a
network connection and fails;
- forward and backward slash can be both used.
Thanks for the help
Luca
Ryan Baldwin wrote:
> 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/
>
>
>
>
>
> 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/
>
>