The Open Road

« Previous month (Nov 2008) | Main | Next month (Jan 2009) »

http://blogs.sun.com/openroad/date/20081225 Thursday December 25, 2008

A Great Gift for January 20, 2009

Today, time to blog about something fun.

Shortly after the recent elections, I came across a new book, Feisty First Ladies (and other unforgettable White House Women) by Autumn Stephens.

I love history, and this little volume puts a fun and somewhat irreverent spin on the wives, mistresses, mothers, and other women who have left their own imprint on our nation's history by virtue of their personalities - or lack thereof.

The book includes essays on:

  • All of the wives of all the presidents who have been married (can you name the one President who was never married?)
  • Women who served as the White House hostesses during periods in which the President was unmarried
  • Other women who influenced presidential politics in some interesting ways

Feisty First Ladies has a lot of fun information to share with your friends. For example:

  • In a letter to her sister, Martha Washington described being first lady as "being more like a state prisoner than anything else."
  • Rachel Jackson was simultaneously married to two men for a short period. Andrew Jackson's opponent, John Quincy Adams, smeared her during the election of 1828 as an adulteress, a bigamist, and an American Jezebel.
  • Mary Lincoln stopped in New York to order 16 fancy frocks - at the height of the Civil War. The unpopular wife of Honest Abe is quoted as saying "I intend to wear what I please."
  • It is rumored that Florence Harding, bent on saving her husband from the humiliation of the Teapot Dome scandal and other cabinet corruption, did Warren in. No autopsy was ever performed, and she torched as many of his presidential papers as she could get her hands on.
  • Nancy Reagan, aka "the iron butterfly" and "the Evita of Santa Barbara," is quoted as saying "I'd never wear a crown. It would mess up my hair."
  • After her $150,000+ post-nomination shopping spree, the Huffington Post described Sarah Palin as a "Neiman Marxist."
  • Michelle Obama was assigned as as advisor to summer associate Barack when he did his internship out of law school. She refused offer after offer of a date with him, finally relenting after a month to go out for dinner and a movie (for the record - Do The Right Thing by Spike Lee).

A great read in advance of the upcoming Obama inauguration. I noticed it's already available at Amazon.

http://blogs.sun.com/openroad/date/20081222 Monday December 22, 2008

Changing Default GlassFish v3 Prelude Port Numbers 4848, 8080, and 8181

When you create courses, you sometimes do crazy things like installing multiple GlassFish domain administration servers (DAS) in a single host.

When you install GlassFish, it gives you default port numbers of of 4848 (for administration), 8080 (for the HTTP listener), and 8181 (for the HTTPS listener). But what do you do if you want to change them?

I got a few ideas googling "asadmin port number" and the like but couldn't really find a good example. So, I figured out how you do it and thought I would post an example in case anyone finds themselves in the same predicament as I did today.

Here are some examples that work in GlassFish v3 Prelude:

  1. To change the HTTP port to 10080:

    asadmin set server.http-service.http-listener.http-listener-1.port=10080

  2. To change the HTTPS port to 10443:

    asadmin set server.http-service.http-listener.http-listener-2.port=10443

  3. To change the administration server port to 14848:

    asadmin set server.http-service.http-listener.admin-listener.port=14848

It's handy to know you can grep for server properties in GlassFish v3 Prelude as follows:

asadmin get server | grep listener

shows all the properties with the text "listener" in them.

In GlassFish v3 Prelude, you can set port numbers for administration and the HTTP listener in the installer - but not for the HTTPS listener. You might find yourself needing to explicitly specify the administration port in your asadmin command. For example:

asadmin set --port 14848 server.http-service.http-listener.http-listener-2.port=10443

For GlassFish v2, use the asadmin get command as described here.

Hope this is helpful to someone.

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.


Valid HTML! Valid CSS!

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