Install mysql-connector-java if mysql is set as the db
Remove "sessionVariables=storage_engine=InnoDB" from JDBC URL because it's broken

See https://confluence.atlassian.com/display/JIRAKB/%27NullPointerException+at+com.mysql.jdbc.ConnectionImpl.getServerCharacterEncoding%27+Error+When+Using+MySQL+Driver+v5.1.16
Parameterize the lockfile variable in the init script