在Glassfish中,Derby Pool ping失败并出现java.net.ConnectException [英] Derby Pool ping fails with java.net.ConnectException in Glassfish

查看:724
本文介绍了在Glassfish中,Derby Pool ping失败并出现java.net.ConnectException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在Ubuntu 14.04上安装了Glassfish 4.1并尝试ping了DerbyPool但是它失败了java.net.ConnectException。

I`m just installed a Glassfish 4.1 on Ubuntu 14.04 and trying to ping DerbyPool but it fails with java.net.ConnectException.


DerbyPool的Ping连接池失败。连接不能分配
,因为:java.net.ConnectException:在端口1527上连接到
服务器localhost时出错,并显示消息Connection refused。请
查看server.log以获取更多详细信息。

Ping Connection Pool failed for DerbyPool. Connection could not be allocated because: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused. Please check the server.log for more details.

server.log:

server.log:


[2015-01-02T20:51:12.361 + 0200] [glassfish 4.1] [警告]
[test.connection.pool.failed]
[javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service]
[tid:_ThreadID = 42 _ThreadName = admin-listener(4)] [timeMillis:
1420224672361] [levelValue: 900 [[RAR8054:异常,而
为池[DerbyPool]创建非池化[测试]连接,
无法分配连接,因为:java.net.ConnectException:
连接到服务器时出错1572端口的localhost,消息
连接被拒绝。]]

[2015-01-02T20:51:12.361+0200] [glassfish 4.1] [WARNING] [test.connection.pool.failed] [javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service] [tid: _ThreadID=42 _ThreadName=admin-listener(4)] [timeMillis: 1420224672361] [levelValue: 900] [[ RAR8054: Exception while creating an unpooled [test] connection for pool [ DerbyPool ], Connection could not be allocated because: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused.]]

[2015-01-02T20:51:12.366 + 0200] [glassfish 4.1] [SEVERE] []
[org.glassfish.admingui] [tid:_ThreadID = 40
_ThreadName = admin-listener(2)] [timeMillis:1420224672366] [levelValue:1000] [[RestResponse.getResponse()给出失败。
endpoint =
'http:// localhost :4848 / management / domain / resources / ping-connection-pool.json';
attrs ='{id = DerbyPool}']]

[2015-01-02T20:51:12.366+0200] [glassfish 4.1] [SEVERE] [] [org.glassfish.admingui] [tid: _ThreadID=40 _ThreadName=admin-listener(2)] [timeMillis: 1420224672366] [levelValue: 1000] [[ RestResponse.getResponse() gives FAILURE. endpoint = 'http://localhost:4848/management/domain/resources/ping-connection-pool.json'; attrs = '{id=DerbyPool}']]

使用Glassfish 4.1和另一台计算机发生同样的问题安装了Ubuntu 14.04。

The same problem is occurring on another computer with Glassfish 4.1 and Ubuntu 14.04 installed on it.

推荐答案

我猜你没有启动Derby服务器。

I guess you didn't start the Derby server.

要启动它,请转到命令行并导航到一个文件夹,您可以在其中运行 asadmin (可能类似于 / glassfish / bin )并运行以下命令:

To start it, go to the command line and navigate to a folder where you can run asadmin (probably something like /glassfish/bin) and run the following:

asadmin start-database

然后再次尝试ping。

Then try pinging again.

这篇关于在Glassfish中,Derby Pool ping失败并出现java.net.ConnectException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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