Running GlassFish in Mac OS X

Disclaimer first. This information is about software that is currently under ACTIVE DEVELOPMENT. By the time you read it, it may not be accurate.

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.

Tags:

Comments:

Hello Mr Kraemer,

I am trying to install GlassFish on a solaris machine, it gives the exactly same error message as you have put it here. I tried to add the -Dderby.storage.fileSyncTransactionLog=true in the asadmin file, but it still pops up the same error message. I am wondering do you how to solve it?

Thanks a lot,
Wei

Posted by Wei on September 21, 2007 at 04:49 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About


Vince Kraemer writes the entries in this blog.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
News
Blogroll

No bookmarks in folder

automarks