arthurblake/log4jdbc

No JDBC4 driver definition

GoogleCodeExporter opened this issue · 3 comments

For automatic loading of JDBC drivers, it required for the file 
'\META-INF\services\java.sql.Driver' to be in the jar file with the classname 
of the driver.

This file is not present.

Add file: \META-INF\services\java.sql.Driver
content: net.sf.log4jdbc.DriverSpy

Original issue reported on code.google.com by sphaverd...@gmail.com on 23 Sep 2011 at 2:41

As you said, It is quite easy to work around. But the real problem is to find 
out that this is the problem :)
Please try to fix it as soon as possible because 

Original comment by ahmad.ka...@gmail.com on 3 Feb 2013 at 4:23

  • Added labels: ****
  • Removed labels: ****
I agree it's technically an issue.

I've known about this for some time-- but in practice it's easy to work around.

Will get around to fixing it later...

Original comment by arthur.b...@gmail.com on 22 Mar 2012 at 1:31

  • Added labels: Priority-Low
  • Removed labels: Priority-Medium

If people want this, they can take a look at my fork: https://github.com/Jurrie/log4jdbc It's based on https://github.com/hohonuuli/log4jdbc which already includes various improvements (like Maven support, and the java.sql.Driver file as well). Also, there's initial XA and pooled datasource support in https://github.com/Jurrie/log4jdbc/tree/feature/Add_XA_support - based on https://github.com/arthurblake/log4jdbc/blob/wiki/DataSourceExampleForWebSphere.md