Before You Deploy
Note that this is not currently a supported configuration. As Peter mentions in OPENAM-33, you might have problems in the Web Services parts of OpenAM.
Remove glassfish-full-profile and metro packages before deploying OpenAM 10.0.0. Do this either when you install GlassFish, or after you have stopped the server.
$ cd /path/to $ unzip ~/Downloads/glassfish-3.1.2.zip ... $ /path/to/glassfish3/bin/pkg uninstall glassfish-full-profile The software needed for this command (pkg) is not installed. ... Software successfully installed. You may now re-run this command (pkg). $ /path/to/glassfish3/bin/pkg uninstall glassfish-full-profile PHASE ACTIONS Removal Phase 19/19 $ /path/to/glassfish3/bin/pkg uninstall metro PHASE ACTIONS Removal Phase 36/36 $ /path/to/glassfish3/bin/asadmin start-domain domain1 Waiting for domain1 to start .... Successfully started the domain : domain1 domain Location: /path/to/glassfish3/glassfish/domains/domain1 Log File: /path/to/glassfish3/glassfish/domains/domain1/logs/server.log Admin Port: 4848 Command start-domain executed successfully.
- OpenAM needs an FQDN at configuration time.
To get started quickly, fake an FQDN on your laptop or desktop by giving the system an alias such as
desktop.example.com. If you have never done so before, it’s not too hard. See the Wikipedia entry on the
- In your browser, open the GlassFish admin console.
- Under Common Tasks > Deployment, select Deploy an Application.
- Deploy the OpenAM .war. (I usually rename this one to openam.war.)
- Browse to OpenAM and configure your server.
As mentioned in the Installation Guide, “OpenAM core services require a minimum JVM heap size of 1 GB, and a permanent generation size of 256 MB.”
$ /path/to/glassfish3/bin/asadmin stop-domain domain1 Waiting for the domain to stop ............ Command stop-domain executed successfully. $ cp glassfish3/glassfish/domains/domain1/config/domain.xml glassfish3/glassfish/domains/domain1/config/domain.orig $ vi glassfish3/glassfish/domains/domain1/config/domain.xml $ diff glassfish3/glassfish/domains/domain1/config/domain.xml glassfish3/glassfish/domains/domain1/config/domain.orig 153c153 < -XX:MaxPermSize=256m --- > -XX:MaxPermSize=192m 155c155 < -server --- > -client 163c163 < -Xmx1024m --- > -Xmx512m $ /path/to/glassfish3/bin/asadmin start-domain domain1 Waiting for domain1 to start ...................................... Successfully started the domain : domain1 domain Location: /path/to/glassfish3/glassfish/domains/domain1 Log File: /path/to/glassfish3/glassfish/domains/domain1/logs/server.log Admin Port: 4848 Command start-domain executed successfully.
After the restart, OpenAM should be ready to use.