Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Service Provider information for the driver [JDBC140] #182

Closed
firebird-automations opened this issue May 17, 2009 · 5 comments
Closed

Comments

@firebird-automations
Copy link

Submitted by: @mrotteveel

Assigned to: Roman Rokytskyy (rrokytskyy)

Since JDBC 4.0 Java uses the Service Provider mechanism for locating java.sql.Driver implementations (removing the need of using Class.forName(...) to explicitly load drivers). Jaybird currently does not provide the required Service Provider information.

See JDBC 4.0 specification paragraph 9.2.1:
"The DriverManager.getConnection method has been enhanced to support the Java Standard Edition Service Provider mechanism. JDBC 4.0 Drivers must include the file META-INF/services/java.sql.Driver. This file contains the name of the JDBC driver's implementation of java.sql.Driver."

Solution:
Add a file META-INF/services/java.sql.Driver containing one line:
org.firebirdsql.jdbc.FBDriver

Commits: 6f469c5

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

description: Since JDBC 4.0 Java uses the Service Provider mechanism for locating java.sql.Driver implementations (removing the need of using Class.forName(...) to explicitly load drivers). Jaybird currently does not provide the required Service Provider information.

See JDBC 4.0 specification paragraph 9.2.1:
"The DriverManager.getConnection method has been enhanced to support the Java Standard Edition Service Provider mechanism. JDBC 4.0 Drivers must include the file META-INF/services/java.sql.Driver. This file contains the name of the JDBC driver's implementation of java.sql.Driver."

Solution:
Add a file META-INF/services/java.sql.Driver containing one line:
org.firebirdsql.FBDriver

=>

Since JDBC 4.0 Java uses the Service Provider mechanism for locating java.sql.Driver implementations (removing the need of using Class.forName(...) to explicitly load drivers). Jaybird currently does not provide the required Service Provider information.

See JDBC 4.0 specification paragraph 9.2.1:
"The DriverManager.getConnection method has been enhanced to support the Java Standard Edition Service Provider mechanism. JDBC 4.0 Drivers must include the file META-INF/services/java.sql.Driver. This file contains the name of the JDBC driver's implementation of java.sql.Driver."

Solution:
Add a file META-INF/services/java.sql.Driver containing one line:
org.firebirdsql.jdbc.FBDriver

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

timeestimate: 0 [ 0 ]

timeoriginalestimate: 0 [ 0 ]

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

Fix Version: Jaybird 2.2 [ 10053 ]

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant