users@glassfish.java.net

[gf-users] Issues starting database on OS X without internet connectivity

From: Petr Hadraba <hadrabap_at_gmail.com>
Date: Sun, 4 Jan 2015 16:46:06 +0100

Hello all,

I'm facing strange behavior of asadmin start-database command. Everything works well when I'm connected to the internet. But when I'm offline, the command just hangs for 20 minutes or so and then suddenly fails with message

Petrs-MacBook-Pro:bin petr$ ./asadmin start-database
Starting database in Network Server mode on host 0.0.0.0 and port 1527.
Unable to start database. Please check log in /Applications/NetBeans/glassfish-4.1/glassfish/databases/derby.log.
Command start-database failed.
Petrs-MacBook-Pro:bin petr$ echo $?
1

It looks like the database is finally up and running, but the asadmin tool is unable to communicate with it.

Here is my configuration:

OS:
Mac OS X 10.7.5

Java:
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
(with 1527 policy patch)

GlassFish:
GlassFish 4.1

Derby:
Apache Derby - 10.10.2.0 - (1582446) (GlassFish bundled one)

I've been playing a bit with firewall, but no luck.

Do you have any ideas what might be wrong in my setup?

Thanks in advance.

With best regards,

PETR