Wednesday, 8 September 2010

Installing Josso on Tomcat 6 and CentOS 5.5

Pre-req:
- Standard CentOS install
- Using root to run commands (but sudo should be used instead, provided /etc/sudoers has been edited to provide the user sudo access)

Tomcat 6 Setup:
cd /etc/yum.repos.d
wget 'http://www.jpackage.org/jpackage50.repo'
rpm -Uvh 'http://plone.lucidsolutions.co.nz/linux/centos/images/jpackage-utils-compat-el5-0.0.1-1.noarch.rpm'
yum update
yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps
service tomcat6 start

Josso Setup:
- Download josso-1.8.2.zip, and unzip
- From in the bin directory, run ./josso-gsh
- Then, from inside the josso console, run the following commands
gateway install --target /usr/share/tomcat6 --platform tc60
agent install --target /usr/share/tomcat6 --platform tc60
samples install --target /usr/share/tomcat6 --platform tc60
- Exit the josso console, with exit
- Restart tomcat, service tomcat6 restart

Checking Josso Install:
- Go to http://localhost:8080/partnerapp/
- Click on 'login' and use 'user1' and 'user1pwd' to test

Known issues:
java.lang.RuntimeException: Outbound relaying failed. No Principal found. Verify your SSO Agent Configuration!
This is caused due to the jaas.conf not being referenced, due to tomcat starting as a service, and the josso install not updating the correct file.
- Edit /etc/tomcat6/tomcat6.conf to include the following
JAVA_OPTS="$JAVA_OPTS -Djava.security.auth.login.config=$CATALINA_HOME/conf/jaas.conf"

Using a server other than localhost
The josso install is hard coded to use localhost
- Edit the references to localhost in /usr/share/tomcat6/lib/josso-agent-config.xml


2 comments:

  1. Thank you.. thank you so much
    I've been searching all over internet to solve the "known issues". Would you please post this to official josso forum, i think there are people who is struggling with this problem.

    ReplyDelete