The Open Road

« OpenSSO Deployment... | Main | Changing Default... »

http://blogs.sun.com/openroad/date/20081210 Wednesday December 10, 2008

Installing OpenSSO Enterprise 8.0 on GlassFish v3 Prelude Release

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:
  1. Obtain the GlassFish v3 Prelude Release from https://glassfish.dev.java.net.

  2. 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.

  3. Start the domain administration server: /opt/glassfish/bin/asadmin start-domain domain1

  4. Start a browser, then start the GlassFish administration console (http://zone04.example.com:4848) and log in to the console.

  5. Click Application Server (in the left window pane), then the JVM Settings tab, then the JVM Options tab.

  6. Click the Add JVM Option button. A new line opens up.

  7. Add the following option: -Dcom.iplanet.am.cookie.c66Encode=true (this is the workaround).

  8. Change the -client option to -server, and change the -Xmx512m option to at least -Xmx1024m (as documented in the OpenSSO Installation and Configuration Guide.

  9. Log out of the GlassFish admin console.

  10. Restart the GlassFish DAS:
      /opt/glassfish/bin/asadmin stop-domain domain1
      /opt/glassfish/bin/asadmin start-domain domain1

  11. Deploy the OpenSSO web application and configure it.

  12. Start the OpenSSO console and log in. This should take you to the console's main page.

Comments:

Very cool. Will try this out :-)!

Posted by Sidharth on December 10, 2008 at 11:48 AM PST #

[Trackback] It's been a while since the last tab sweep - lots of news since then, such as the OpenSSO Enterprise 8.0 release , that's kept me busy both here on the blog and 'in real life' (if there is such a thing any more!). Anyway, here are some of the titbit...

Posted by Superpatterns on December 12, 2008 at 07:32 PM PST #

Howdy, this is a good find, but I've tried the above idea and still get redirected back to the login page. Any other suggestions?? Thanks!

Posted by Willie Wuo on April 14, 2009 at 04:22 PM PDT #

Thanks David for you help. As per your email, I'm experiencing this problem with glassfish v2. and not on v3 prelude

Posted by Willie Wuo on April 15, 2009 at 08:01 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.