Installing OpenSSO Enterprise 8.0 on GlassFish v3 Prelude Release
By dgolds on Dec 10, 2008
I've been building some training for OpenSSO Enterprise 8.0, and I want to use GlassFish v3 Prelude Release as my OpenSSO web container for this training.
So I pulled down the GlassFish release, installed it, deployed OpenSSO, started up the OpenSSO console, and logged in. But instead of seeing the console main page, the login page appeared a second time, with the user name and password fields blanked out.
The issue has to do with cookie handling. Dennis noted it in his blog entry here.Well, it turns out getting OpenSSO Enterprise 8.0 to run on this release of GlassFish is a snap - if you know the workaround. Here are the steps for Solaris OS:
- Obtain the GlassFish v3 Prelude Release from https://glassfish.dev.java.net.
- Run the glassfish-v3-prelude-unix.sh command (which is what you obtained when you downloaded GlassFish). Specify installation options as needed. The rest of these instructions assume that you specified /opt/glassfish as your installation directory.
- Start the domain administration server: /opt/glassfish/bin/asadmin start-domain domain1
- Start a browser, then start the GlassFish administration console (http://zone04.example.com:4848) and log in to the console.
- Click Application Server (in the left window pane), then the JVM Settings tab, then the JVM Options tab.
- Click the Add JVM Option button. A new line opens up.
- Add the following option: -Dcom.iplanet.am.cookie.c66Encode=true (this is the workaround).
- Change the -client option to -server, and change the -Xmx512m option to at least -Xmx1024m (as documented in the OpenSSO Installation and Configuration Guide.
- Log out of the GlassFish admin console.
- Restart the GlassFish DAS:
- /opt/glassfish/bin/asadmin stop-domain domain1
- /opt/glassfish/bin/asadmin start-domain domain1
- Deploy the OpenSSO web application and configure it.
- Start the OpenSSO console and log in. This should take you to the console's main page.