Tuesday, March 26, 2013

Josso 1.8.6 + Tomcat 7.0 setup

The setup itself is quite straight forward.
1. Install the Gateway
Refer to http://www.josso.org/confluence/display/JOSSO1/Install+JOSSO+Gateway+-+Tomcat+7.0
Details:
Start Josso Deployment Console and type :
gateway install --target d:/apache-tomcat-7.0.37 --platform tc70

2. Install the Agent
Refer to www.josso.org/confluence/display/JOSSO1/Setup+JOSSO+Agent+-+Tomcat+7.0
Details:
On Josso Deployment Console type :
agent install --target d:/apache-tomcat-7.0.37 --platform tc70

3. Install the sample
Refer to http://www.josso.org/confluence/display/JOSSO1/Quick+Start
Details:
On Josso Deployment Console type :
samples install --target d:/apache-tomcat-7.0.37 --platform tc70

4. Start tomcat

5. Open web browser and access to http://localhost:8080/partnerapp
Try to login (see josso-credentials.xml in tomcat/lib folder for the username and passwd)


If you get the following error message :
HTTP 500 Outbound relaying failed. No Principal found. Verify your SSO Agent Configuration!

java.lang.RuntimeException: Outbound relaying failed. No Principal found. Verify your SSO Agent Configuration!
org.josso.tc70.agent.SSOAgentValve.invoke(SSOAgentValve.java:549)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:619) 

for windows:
- Edit  setenv.bat in tomcat/bin folder to include the following
set JAVA_OPTS= -Djava.security.auth.login.config=c:/kus/softwares/apache-tomcat-7.0.37/conf/jaas.conf

or for centos:
( Refer to http://russdavidson.blogspot.com/2010/09/installing-josso-on-tomcat-6-and-centos.html )
- Edit /etc/tomcat6/tomcat6.conf to include the following
JAVA_OPTS="$JAVA_OPTS -Djava.security.auth.login.config=$CATALINA_HOME/conf/jaas.conf"



0 Comments:

Post a Comment

<< Home