i using ireport jasper report. backend database in firebird. trying configure ireport firebird couldn't succeed. have added firebird jar file in classpath of ireport gui. after add firebird in services of ireport. services window shows me firebird driver. after when right-click on driver , connect using selected got window in have put credentials.
user nmae: sysdba password : masterkey jdbc url: jdbc:firebirdsql:localhost/3050:c:\users\waqas\desktop\mobilestore.fdb
when click on ok button. ireport goes connecting database mode , after long time didn't response. still connecting firebird.
i assuming have firebird installed , firebird running service. user account running firebird service not have access user profile , therefor unable open database file in c:\users\waqas\desktop\mobilestore.fdb
. put file in location accessible users (or user linked firebird service), c:\databases\
.
that said, expect scenario result in error immediately, might different problem.
edit
you indicate in comments, receive java.lang.classnotfoundexception: org.firebirdsql.jdbc.fbdriver
. means did not add jaybird jdbc driver classpath of ireport.
you can download jaybird (firebird jdbc) driver http://www.firebirdsql.org/en/jdbc-driver/
i don't use ireport myself, according this tutorial can add driver under tools > options > ireport, tab classpath. need add jaybird-full-2.2.3.jar
, or jaybird-2.2.3.jar
, connector-api-1.5.jar
(from lib folder in jaybird zip).
edit 2
i have downloaded ireport , tried myself. there 2 ways of making database connection firebird ireport, both work me:
database jdbc connection
the first option database jdbc connection, requires driver on classpath:
- go tools, options, ireport, classpath , add
jaybird-full-2.2.3.jar
- click on create datasource icon on welcome tab
- select database jdbc connection , click next
- give datasource name
- for jdbc driver enter
org.firebirdsql.jdbc.fbdriver
- for url enter jdbc url database (eg
jdbc:firebirdsql://localhost/d:/data/db/employee.fdb
) - enter username , password
a click on test should show "connection test successful!". can use database connection.
netbeans database jdbc connection
the other method of connecting netbeans database jdbc connection
- go window, services
- expand databases service
- right click on drivers, new driver
- under driver file(s) add
jaybird-full-2.2.3.jar
- driver class , name filled in automatically; click ok
- right click new firebird (jca/jdbc driver) entry , select connect using
- enter username , password, , jdbc url, click ok
- click create datasource icon
- select netbeans database jdbc connection
- enter name , select connection dropdown
Comments
Post a Comment