Bug#917819: jameica: MySQL not usable #2

Markus Koschany apo at debian.org
Sun Dec 30 17:50:35 GMT 2018


Control: tags -1 patch
Control: reassign -1 hibiscus

Hi,

Am 30.12.18 um 18:33 schrieb Christian Weiske:
> Package: jameica
> Version: 2.8.2+dfsg-6
> Severity: normal
> 
> Dear Maintainer,
> 
> I would like to use Jameica/Hibiscus with my MySQL server because I have a central
> hibiscusserver instance running in my home server.
> 
> In bug #908618 you already fixed this issue by adding libmysql-java as
> dependency.
> Unfortunately, commit cd956753 changed this to libmariadb-java, which does not
> seem to be supported by Hibiscus itself (the wiki only mentions MySQL, and
> has no entries about mariadb).
> 
> So now when trying to use
> 
>> database.driver=de.willuhn.jameica.hbci.server.DBSupportMySqlImpl
> 
> in .config/jameica/cfg/de.willuhn.jameica.hbci.rmi.HBCIDBService.properties,
> I get an error:
> 
>> java.lang.ClassNotFoundException: loader.jameica:
>>  class not found: com.mysql.jdbc.Driver
> 
> I guess until Hibiscus itself brings support for libmariadb-java,
> this package needs to depend on libmysql-java.

Thanks for reporting.

libmariadb-java is a drop-in replacement for libmysql-java. The error is
caused because in hibiscus the driver class is hardcoded:

src/de/willuhn/jameica/hbci/server/DBSupportMySqlImpl.java

private final static String DRIVER = "com.mysql.jdbc.Driver";

This must be changed in hibiscus to

private final static String DRIVER = "org.mariadb.jdbc.Driver";

Regards,

Markus


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-maintainers/attachments/20181230/b92b04b8/attachment.sig>


More information about the pkg-java-maintainers mailing list