Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

connection to mysql problem

Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I tried to make a ping from glassfish to mysql. here is the error :
Cannot open file:F:\glassfish-5.0\glassfish5\glassfish\domains\domain1/config/keystore.jks [Keystore was tampered with, or password was incorrect]

I changed master password,tried different resource type,set allow permission to all users but without result.Ive access to de same database from tomcat.
I dont create another domain in glassfish yet(using de defualt one,domain1)

I really searched every aspect of dis problem,still got an error >.<

my glassfish ver is 5.0
- Resource Type:javax.sql.DataSource
- Datasource Classname:com.mysql.cj.jdbc.MysqlDataSource

mysql ver is 8.0.13

I spend two days for dis ,where is my problem?


I dont have dis problem on mysql driver 5.1
so I think my problem is related to new packages came from in mysql driver 8.

porblem solved.
add useSSL property and set to false(default is true).

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


me the error persists even if I add use SSL. someone can help me? here is the error:
Caused by: com.mysql.cj.exceptions.SSLParamsException: Cannot open file:F:\glassfish-4.1.1\glassfish4\glassfish\domains\domain1/config/keystore.jks [Keystore was tampered with, or password was incorrect]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at com.mysql.cj.exceptions.ExceptionFactory.createException(
at com.mysql.cj.exceptions.ExceptionFactory.createException(
at com.mysql.cj.exceptions.ExceptionFactory.createException(
at com.mysql.cj.protocol.ExportControlled.getSSLContext(
at com.mysql.cj.protocol.ExportControlled.performTlsHandshake(
at com.mysql.cj.protocol.StandardSocketFactory.performTlsHandshake(
at com.mysql.cj.protocol.a.NativeSocketConnection.performTlsHandshake(
at com.mysql.cj.protocol.a.NativeProtocol.negotiateSSLConnection(
at com.mysql.cj.protocol.a.NativeAuthenticationProvider.connect(
at com.mysql.cj.protocol.a.NativeProtocol.connect(
at com.mysql.cj.NativeSession.connect(
at com.mysql.cj.jdbc.ConnectionImpl.connectOneTryOnly(
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(
... 81 more
Caused by: Keystore was tampered with, or password was incorrect
at com.mysql.cj.protocol.ExportControlled.getSSLContext(
... 90 more
Caused by: Password verification failed
... 95 more
Error Code: 0

I work under netb 8.2
glassfish server 4.1.1
mysql connect 8 / j

Is there a solution to this?
Thank you in advance.


cuma elvis
Good heavens! What have you done! Here, try to fix it with this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic