Derby pool pool error with java.net.ConnectException in Glassfish

I just installed Glassfish 4.1 on Ubuntu 14.04 and tried to execute the ping DerbyPool command, but it is not with java.net.ConnectException.

Ping connection pool failed for DerbyPool. A connection cannot be allocated because: java.net.ConnectException: error connecting to localhost server on port 1527 with the Connection message refused. please check server.log for more details.

server.log:

[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 uncooled connection [test] for the pool [DerbyPool], The connection cannot be allocated because: java.net.ConnectException: Error connecting to localhost server on port 1527 with the 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 () gives FAILURE. endpoint = 'HTTP: // localhost: 4848 / management / domain / resources / ping connection-pool.json'; attrs = '{id = DerbyPool}']]

The same thing happens on another computer with Glassfish 4.1 and Ubuntu 14.04 installed on it.

+4
source share
1 answer

I think you did not start the Derby server.

, , asadmin (, - /glassfish/bin) :

asadmin start-database

.

+11

Source: https://habr.com/ru/post/1569750/


All Articles