Running GlassFish in Mac OS X
By vbkraemer on Jul 02, 2005
When you download a GlassFish jar-ball and try to install it on Mac OS X, you may see output that looks like this when you follow the installation instructions (ant -f setup.xml):
Failed to create database 'XXXYYYZZZ/domains/domain1/lib/databases/ejbtimer', see the next
exception for details.
Basically, setup.xml exec's asasdmin to create an initial domain. One of the steps in creating the initial domain requires that asadmin start Derby, to create an ejbtimer database (as best I can tell).
Derby needs a special system property defined to execute under Mac OS X. Setup.xml and asadmin don't set the value of the property correctly. The property is derby.storage.fileSyncTransactionLog. It must have the value true.
The easiest thing to do, is edit bin/asadmin and add -Dderby.storage.fileSyncTransactionLog=true to the command that is executed.
Restarting the installation process `ant -f setup.xml` seems to execute sucessfully after that.