Home Configure local GlassFish for SSL on MySQL
Reply: 0

Configure local GlassFish for SSL on MySQL

mFeinstein
1#
mFeinstein Published in 2018-01-12 21:39:11Z

I have a local version of GlassFish 5.0 for debugging proposes. I am trying to fetch some data from my MySQL Database (which I know it works just fine because I can connect and use MySQL Workbench with that database) with HikariCP in a SSL connection, but I am getting the following error:

exception javax.servlet.ServletException: java.lang.IllegalStateException: Can't create a DataSource, please check your configs file or your connection.

root cause java.lang.IllegalStateException: Can't create a DataSource, please check your configs file or your connection.

root cause com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Cannot open file:C:\MyPAth\Java EE\Java EE SDK 8\glassfish5\glassfish\domains\domain1/config/keystore.jks [Keystore was tampered with, or password was incorrect]

root cause com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Cannot open file:C:\MyPath\Java EE\Java EE SDK 8\glassfish5\glassfish\domains\domain1/config/keystore.jks [Keystore was tampered with, or password was incorrect]

root cause java.io.IOException: Keystore was tampered with, or password was incorrect

root cause java.security.UnrecoverableKeyException: Password verification failed

I probably have to add my database certificate to GlassFish but I can't find how to do it or how this is related to the Keystore, so maybe there are other errors related to this.

I am pretty new to GlassFish, what's going on? How can I configure this to work?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.337237 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO