lzPack GlassFish installer on the Mac

First off, I'd like to give a big thanks to Julien Ponge for the GlassFish V2UR1 lzPack powered installer. Impressive. Works like a charm. I thought I'd blog about the Mac installer. The installer defaults to installation in the /Applications directory. If you choose to do this, odds are you will run into problems with not being able to create the domain directory during the configuration step due to a lack of permissions to write to the /Applications/GlassFish directory.

There are a couple of options.

 

  1. Continue installation in /Applications directory. The setup fails to create the domain, but you can create the domain after the fact and point to a user-writable directory as follows:

    # /Applications/GlassFish/bin/asadmin create-domain --domaindir /Users/jclingan/domains --adminport 4848 mydomain
    # /Applications/GlassFish/bin/asadmin start-domain --domaindir /Users/jclingan/domains

    Note /Users/jclingan/domains is a top-level directory for GlassFish domains, so a mydomain subdirectory will be placed under that directory. Most folks don't know about the --domaindir option so I thought this option might be useful to cover.

  2. Select a different install directory. Simply choose a subdirectory off of your home directory, such as /Users/jclingan/GlassFish. This is similar to what you would do with the jar installer and the permissions issue goes away entirely, resulting in a clean install.

Thanks, Julien, for the effort. A very welcome addition!

Comments:

Hi John,

Thanks a lot for this positive review ;-)

Which version of Mac OS X are you using? Also, which type of user account do you have?

I am asking this because I never ran into permission issues when installing to /Applications on my Mac (OS X 10.4).

Cheers

Posted by Julien Ponge on December 21, 2007 at 11:54 PM PST #

Post a Comment:
Comments are closed for this entry.
About

John Clingan

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