Installing OpenAM Release 9 on Tomcat 6.0.26 on Windows 7

So Oracle have moved away from Sun Access Manager towards the Oracle Access Manager roadmap. However, ForgeRock have taken over the product (only possible because of the Opensource nature of the product).

Anyways, let’s push on with installing OpenAM Release 9 onto Tomcat 6.0.26 on Windows 7.

Update – Check out:

for an install video.

First of all, download yourself a copy of Tomcat 6.0.26. Next, head over to the downloads page on ForgeRock and grab a copy of OpenAM.

To set up Tomcat, extract it to a folder. I picked C:\tomcat. We’ll need to edit C:\tomcat\bin\startup.bat and change the amount of memory available for Tomcat.  Add the line set CATALINA_OPTS=”-Xmx1024m” above the set “CURRENT_DIR=%cd%” line. This sets the maximum memory available to Tomcat as 1024MB. You’ll probably have to tell Tomcat where to find the Java Runtime Environment.

Click Start and right click on the Computer button and select properties. Then click Advanced System Settings. Finally click Environment Variables. Click the button for a new System Variable. The variable is called JRE_HOME and the value in my case is c:\Program Files\Java\jre6\.

We’ll need to add an administration user. Edit C:\tomcat\conf\tomcat-users.xml.

Add the following lines:

<role rolename=”manager” />
<user username=”admin” password=”admin” roles=”manager” />

Awesome. Now edit c:\windows\system32\drivers\etc\hosts in Notepad as a privileged user. Add a domain and your computer’s IP address. I added:

Now open up the command line and navigate to C:\tomcat\bin. Type startup and Tomcat should start. If things are going well, you should see this window. The last line should mention the server startup in X ms.

In your web browser, head to, obvious replacing my domain with your domain. You should see the Tomcat page if things are going well. Now navigate to, with the login being admin and the password admin.

Under WAR file to deploy navigate to openam_release9_20100207\opensso\deployable-war and select opensso.war. Then hit the Deploy button. It’ll take a while as the war file is uploaded through your browser into Tomcat. Tomcat has an auto-deploy function, Google it if you’re interested.

Eventually the application will be deployed. Navigate to

If things are going well, you should see the OpenSSO configuration options page.

Click Custom Configuration. Here are the settings I use:

  1. Default user password – password
  2. Server settings – I leave the default entries in there
  3. Configuration store – First instance, OpenSSO
  4. User data store – OpenSSO
  5. Site configuration – No (not being a load balancer)
  6. Default policy agent password – password2

Now click Create Configuration. Fingers crossed. I’ve had problems installing this, in the following order:

  1. Don’t use the version of Tomcat that comes with XAMPP. Didn’t work for me.
  2. Don’t use the nightly version of OpenAM. Didn’t work for me.
  3. Don’t use as the IP address of your domain. Didn’t work for me.

I had weird errors such as cookie domains not being valid host names, and other weird errors.

If things go well it should install. I get an error about a log file being NULL, but I don’t worry about it. Head to, which should now redirect you to Type amAdmin as the username, and password as the password, and you should be authenticated against your OpenAM install, and shown the Administration page. Congratulations!

Sun GlassFish Enterprise Server v3 Prelude – A first glance

I’m a big fan of Tomcat. It’s sweet. It’s pretty quick. A little lightweight on administration, but fairly simple to install (extract the zip), and Bob’s your father’s brother.

So Sun’s been working on application servers for quite some time now, and the latest incarnation is Glassfish. This article reviews GlassFish Enterprise Server v3 Prelude.

One of the great things about Sun’s software model is that the software is a free download. This is understandable because you really won’t get that far without Sun support in a production-like environment. First point of call is to download Glassfish.

It’s a pretty light download, 27Mb for the English Windows version.

Installing is a snap, just double click on the installer. You’ll need a Java JDK. If you’re doing any enterprise stuff with Sun products you’ll probably need a Java JDK.

The installer lets you pick the ports for the admin interface (4848 by default) and the http port (8080 by default). The interface neatly checks to see if those ports are free, and warns you if they’re not. You can choose to pick a username and password for the admin interface, or leave it as anonymous.

The rest of the installation went smoothly. After installation you have the option to fire up the server. Next port of call is heading to the admin interface (http://localhost:4848). There’s a bit of a delay while Glassfish installs the admin application on the server, but then you’re at the GUI admin screen.

There’s no way to restart the server from the GUI screen. You’ll need to head to the command line and type:

asadmin stop-domain

asadmin start-domain

I’m sure there are other methods of restarting the application server, but that’s what I’ve been doing. If you leave the domain off the command, it’ll default to domain1.

If you’re used to the Tomcat’s admin interface (which is sparse), then you’ll be in for a treat with Glassfish. It’s deep. There’s a lot to look at.

At only 27Mb, it’s a quick download. Give it a go and see how you feel.

Make $1500 in three hours GUARANTEED! My secret tip…

So I was sitting around at home, and I was thinking how can I make money easily?

Then I discovered … The Secretâ„¢.

Learn. Study. Become great at what you do in a specialised field that’s in high demand, and then you will make $500 an hour, not once, not twice, but every hour you work of every day.

Oh, just so this wasn’t a post baiting you without any substance, you can download Trial/Development versions of Siebel CRM, JD Edwards ERP, and other Oracle products from the Oracle E-Delivery Website.

Or download most of Sun’s products from the Sun website.

Learn these products, understand the business drivers behind their adoption in business, and specialise in that, rather than multi-level marketing. Trust me, you’ll easily make $1500 in three hours.