为什么在尝试创建连接池时服务器记录它无法打开keystore.jks? [英] Why does the server log that it can not open keystore.jks when I try to create a connection pool?

查看:163
本文介绍了为什么在尝试创建连接池时服务器记录它无法打开keystore.jks?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我无法在GlassFish 5.0中创建JDBC连接池?我想连接到MySQL服务器。我通过指南创建了连接池,但是没有任何作用。

Why am I not able to create a JDBC Connection Pool in GlassFish 5.0? I want connect to MySQL server. I created connection pool by guide, but nothing is working.

我使用了资源类型: java.sql.DataSource

驱动程序类名称: com.mysql.cj.jdbc.MysqlDataSource

I used Resource type: java.sql.DataSource
Driver class name: com.mysql.cj.jdbc.MysqlDataSource


[2018-07-17T15: 45:15.500 + 0300] [glassfish 5.0] [警告]
[test.connection.pool.failed
[javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service]
[tid:_ThreadID = 45 _ThreadName = admin-listener(4)] [timeMillis:
1531831515500] [levelValue:900] [[RAR8054:异常,而
为池创建了非池化的[test]连接[池],无法分配连接
,原因是:无法打开
文件:/Library/glassfish5.0/glassfish/domains/domain1/config/keystore.jks
[Keystore was notified ,或者密码不正确]]]

[2018-07-17T15:45:15.500+0300] [glassfish 5.0] [WARNING] [test.connection.pool.failed [javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service] [tid: _ThreadID=45 _ThreadName=admin-listener(4)] [timeMillis: 1531831515500] [levelValue: 900] [[ RAR8054: Exception while creating an unpooled [test] connection for pool [ pool ], Connection could not be allocated because: Cannot open file:/Library/glassfish5.0/glassfish/domains/domain1/config/keystore.jks [Keystore was tampered with, or password was incorrect]]]


推荐答案

keystore.jks是创建安全文件所必需的连接。该错误似乎是密钥库密码与GlassFish的主密码(默认情况下为 changeit )不匹配。

The keystore.jks is needed for creating secure connections. The error looks like the keystore password does not match GlassFish's master password (which is, by default, changeit).

在不了解更多环境的情况下,最好重新开始一个新域。通过StackOverflow调试此类异常以查找问题并解决问题将非常困难。

Without knowing a lot more about the environment, it may be best to begin again with a new domain. Debugging this kind of exception to find the problem and fix it would be very difficult through StackOverflow.

但是,在删除当前域之前,最好创建一个全新的GlassFish域,并尝试创建连接池,然后再执行其他操作,只是确保从头开始确实可以解决问题。如果是这样,则可以继续进行更改,以在GlassFish上运行您的应用。

Before you delete your current domain, however, it would be a good idea to create a brand new GlassFish domain and try to create the connection pool before doing anything else, just to make sure that starting fresh will indeed solve the problem. If it does, then you can proceed with making the changes needed to run your app on GlassFish.

这篇关于为什么在尝试创建连接池时服务器记录它无法打开keystore.jks?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆