OpenSSO Build 2 and Glassfish: Ready to Go

Today I installed Glassfish, Sun's open source application server, and OpenSSO Build 2, Sun's open source access manager server. I used a machine running Solaris 10. Glassfish uses either JDK 1.5 or 1.6 so I added /usr/jdk/instances/jdk1.5.0/bin to the path property in my .profile file. Additionally, I set my JAVA_HOME to /usr/jdk/instances/jdk1.5.0. Seven months back, I installed Glassfish and it was pretty easy although there were some caveats. Today, there were no caveats. Deploying the OpenSSO WAR, as has been the case, was a cool drink of water.
  1. Using a browser, download glassfish-installer-v2-b58g.jar from https://glassfish.dev.java.net/downloads/v2-b58g.html.
  2. Using the command line, extract the file using:

    java -Xmx256m -jar glassfish-installer-v2-b58g.jar

    This created a glassfish directory with everything inside. I liked this. So many times I have extracted a JAR to find files flying all over the place.
  3. Change into the glassfish directory.
  4. Run the following commands:

    chmod -R +x lib/ant/bin

    lib/ant/bin/ant -f setup.xml
  5. After a successful build, change to the root directory and start the default domain:

    glassfish/bin/asadmin start-domain domain1
  6. Using a browser, verify the server is running by accessing http://machine.domain:8080.

    You should get a Server Running page.
  7. Login to Glassfish as admin (PW: adminadmin) by accessing the console at https://machine.domain:4848.
  8. Back on the command line, make an opensso directory and change into it.
  9. Using a browser, download Build 2. (This latest stable build will be at this location next week.)
  10. Back on the command line, unzip the zip.
  11. In the Glassfish console, click Web Applications on the left side.
  12. On the right side, click Deploy..., browse for opensso.war, and click OK.

    The WAR will be deployed.
  13. When finished, click Launch.

    The following screen is displayed.

  14. I chose Simple which, in turn, displayed this screen:

  15. Enter the default amAdmin password: admin123 and press Configure.

    The configuration screen is displayed. I clicked View Process Log and watched:

  16. I was too excited to wait five seconds so I clicked to get the login page at http://machine.domain:8080, typed in my credentials and was ready to go...as Republica was, back in the day.

    This is the overseas version, not the US remix with ridiculous overdubbed guitars that sounds like Paris Hilton's wonky left eye looks.
Comments:

Ah - "Ready To Go" - Republica - nice slide of BritPop, Michael :-) BTW - do you do last.fm? http://www.last.fm/user/metadaddy/

Posted by Pat Patterson on November 30, 2007 at 01:39 AM PST #

Hadn't tried that website but I just registered an account so I'll check it out. I like live365.com also.

Posted by DocTeger on November 30, 2007 at 02:57 AM PST #

Hi,

Can you please send me an example on how to config a stand alone client that works with opensso server that installed on glassfish.

Thanks in advance!!

Eliad Dahan.

Posted by Eliad Dahan on December 11, 2007 at 08:13 PM PST #

Sample files are included with the Client SDK. These demonstrate how to write stand-alone and web applications. Check out this entry on the Client SDK and samples.
(http://blogs.sun.com/docteger/entry/help_client_sdk_samples)
You might also find some helpful info in the Access Manager 7.1 Developer's Guide (http://docs.sun.com/app/docs/doc/819-4675/6n6qfk0n9?a=view) although this refers not to OpenSSO but the previous Sun-productized release.

Posted by DocTeger on December 11, 2007 at 09:48 PM PST #

Did you try famadm with build 2 ? because of bootstrap instead of AMConfig.properties, I'm not able to setup famadm correctly.

Abdi

Posted by Abdi Mohammadi on December 14, 2007 at 01:47 AM PST #

I haven't tried famadm yet. You might want to send your questions to the users@opensso.dev.java.net mailing list and see if someone else has had the same issue.

Posted by DocTeger on December 16, 2007 at 10:35 PM PST #

Post a Comment:
Comments are closed for this entry.
About

docteger

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today