Type |
Bug
|
Priority |
Major
|
Assignee | |
RedmineID |
5859
|
Version |
tigase-server-7.1.1
|
Spent time |
2h 30m
|
Issue Votes (0)
Watchers (0)
Type |
Bug
|
Priority |
Major
|
Assignee | |
RedmineID |
5859
|
Version |
tigase-server-7.1.1
|
Spent time |
2h 30m
|
I use Docker with Tigase to build my instance and when I call DBSchemaLoader to initialize/upgrade my schema, I also add -adminJID/-adminJIDpass to automatically create an admin account if it doesn't exist. I know I could extend my Docker scripts to connect to the database preemptively, but it would be good if the DBSchemaLoader would just issue a warning and skip creation of the admin account because it already exists, instead of just throwing an error:
Although the exception is somewhat strange... MySQL for Java is indeed in the classpath (otherwise connection wouldn't have worked, besides the stacktrace clearly shows mysql driver packages). Honestly I don't understand what it's complaining about. It can't find the exception class however a few lines later the exception class is in java.sql and it's been present since Java 1.6.