本文介绍了在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.

server.log:

server.log:

[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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 15:32
查看更多