1 Reply Latest reply on Feb 5, 2009 7:58 AM by Boleslaw Dawidowicz

    JBoss 2.7.0.GA Integration with OpenSSO Under Linux

    Ratheesh Ravindran Nair Newbie

      Hi,

      I am having couple of issues in integrating JBoss Portal with OpenSSO under Linux, it will be great if somebody can throw some thoughts on this.

      I am integrating under the following environment,

      a) Red Hat Linux 5.2, X86_32
      b) JDK 1.5.0_14
      c) JBoss Portal Server 2.7.0.GA
      d) OpenSSO Enterprise 8.0 Build 6(2008-October-31 09:07) with Embedded repository
      e) MySQL 5.1 (for JBoss Portal repository)
      f) Apache Tomcat 6.0.1 (for OpenSSO deployment)

      The following configurations have been done in the box and its working fine,
      a) JBoss Portal running in port 8080 with MySQL as portal repository
      b) OpenSSO under Apache Tomcat running in port 8081

      The following configuration have been done for integrating JBoss portal with OpenSSO, I am not sure whether this is correct since there are not enough official documentation on this part. Also JBoss Portal Server 2.7.0.GA have only an experimental support for OpenSSO.

      a) Modified $JBOSS_PORTAL_HOME/servers/ssor-appserver/deploy/jboss-portal.sar/portal-server.war/WEB-INF/context.xml file and uncommented the following section,


      b) Copied openssoclientsdk.jar file to $JBOSS_PORTAL_HOME/server/ssor-appserver/deploy/jboss-portal.sar/lib folder

      c) Modified port number in $TOMCAT_HOME/conf/server.xml as below,



      and commented out AJP connector


      d) Created a user "admin" under subject in openSSO (under top realm)

      While accessing JBoss portal through browser it throws some Java stack trace and but gets forwarded to OpenSSO login page which is desired behavior, but when I try to login through opensso, the redirection happens in a loop and stack traces are printed in the JBoss console in a loop (find below stack trace). Interestingly I dont get any stacktrace in Tomcat console (where openSSO is deployed).

      00:42:25,057 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 1m:16s:164ms

      00:42:43,612 INFO [STDOUT] amSDK:01/06/2009 12:42:43:611 AM PST: Thread[-1,5,jboss]

      Constructing a new instance of SSOTokenManager

      00:42:43,615 INFO [STDOUT] amSDK:01/06/2009 12:42:43:615 AM PST: Thread[,5,jboss]

      Obtained Grappa SSO Provider

      00:42:43,623 INFO [STDOUT] amSDK:01/06/2009 12:42:43:622 AM PST: Thread-1,5,jboss]

      Obtained DPRO SSO Provider

      00:42:43,661 INFO [STDOUT] amNaming:01/06/2009 12:42:43:661 AM PST: Thread[,jboss]

      ERROR: WebtopNaming.getServerId():noServerId

      00:42:43,694 INFO [STDOUT] amNaming:01/06/2009 12:42:43:693 AM PST: Thread[,jboss]

      ERROR: WebtopNaming.getServerId()

      java.lang.Exception: Cannot find server ID.

      at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:626)

      at com.iplanet.services.naming.WebtopNaming.getServerID(WebtopNaming.java:590)

      at com.iplanet.services.naming.WebtopNaming.getAMServerID(WebtopNaming.java:226)

      at com.iplanet.dpro.session.Session.(Session.java:311)

      at com.iplanet.sso.providers.dpro.SSOProviderImpl.createSSOToken(SSOProviderImpl.java:88)

      at com.iplanet.sso.SSOTokenManager.createSSOToken(SSOTokenManager.java:239)

      at org.jboss.portal.identity.sso.opensso.OpenSSOAuthenticationValve.getToken(OpenSSOAuthenticationValve.java:214)

      at org.jboss.portal.identity.sso.opensso.OpenSSOAuthenticationValve.invoke(OpenSSOAuthenticationValve.java:76)

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

      at java.lang.Thread.run(Thread.java:595)

      00:42:43,739 INFO [STDOUT] amSSOProvider:01/06/2009 12:42:43:739 AM PST: Thread[jboss]

      could not create SSOToken from HttpRequest

      com.iplanet.dpro.session.SessionException: Invalid session ID.

      at com.iplanet.dpro.session.Session.getSession(Session.java:970)

      at com.iplanet.sso.providers.dpro.SSOProviderImpl.createSSOToken(SSOProviderImpl.java:88)

      at com.iplanet.sso.SSOTokenManager.createSSOToken(SSOTokenManager.java:239)

      at org.jboss.portal.identity.sso.opensso.OpenSSOAuthenticationValve.getToken(OpenSSOAuthenticationValve.java:214)

      at org.jboss.portal.identity.sso.opensso.OpenSSOAuthenticationValve.invoke(OpenSSOAuthenticationValve.java:76)

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

      at java.lang.Thread.run(Thread.java:595)

      00:42:47,027 ERROR [STDERR] Jan 6, 2009 12:42:46 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

      INFO: Added Library from: jar:file:/usr/local/installed/jboss-portal-2.7.0.GA/server/ssor-appserver/deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml

      00:42:47,042 ERROR [STDERR] Jan 6, 2009 12:42:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

      INFO: Added Library from: jar:file:/usr/local/installed/jboss-portal-2.7.0.GA/server/ssor-appserver/deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml

      00:42:47,075 ERROR [STDERR] Jan 6, 2009 12:42:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

      INFO: Added Library from: jar:file:/usr/local/installed/jboss-portal-2.7.0.GA/server/ssor-appserver/deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml

      00:42:47,104 ERROR [STDERR] Jan 6, 2009 12:42:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

      INFO: Added Library from: jar:file:/usr/local/installed/jboss-portal-2.7.0.GA/server/ssor-appserver/deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml

      00:42:47,117 ERROR [STDERR] Jan 6, 2009 12:42:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

      INFO: Added Library from: jar:file:/usr/local/installed/jboss-portal-2.7.0.GA/server/ssor-appserver/deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml

      00:42:47,127 ERROR [STDERR] Jan 6, 2009 12:42:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

      INFO: Added Library from: jar:file:/usr/local/installed/jboss-portal-2.7.0.GA/server/ssor-appserver/deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib/portal-faces-lib.jar!/META-INF/portal.taglib.xml

      00:42:47,186 ERROR [STDERR] Jan 6, 2009 12:42:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

      INFO: Added Library from: jar:file:/usr/local/installed/jboss-portal-2.7.0.GA/server/ssor-appserver/deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/a4j.taglib.xml

      00:42:47,197 ERROR [STDERR] Jan 6, 2009 12:42:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

      INFO: Added Library from: jar:file:/usr/local/installed/jboss-portal-2.7.0.GA/server/ssor-appserver/deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/ajax4jsf.taglib.xml

      00:42:47,208 ERROR [STDERR] Jan 6, 2009 12:42:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

      INFO: Added Library from: jar:file:/usr/local/installed/jboss-portal-2.7.0.GA/server/ssor-appserver/deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/jsp.taglib.xml

      00:42:47,331 ERROR [STDERR] Jan 6, 2009 12:42:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

      INFO: Added Library from: jar:file:/usr/local/installed/jboss-portal-2.7.0.GA/server/ssor-appserver/deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/rich.taglib.xml

      00:42:47,346 ERROR [STDERR] Jan 6, 2009 12:42:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

      INFO: Added Library from: jar:file:/usr/local/installed/jboss-portal-2.7.0.GA/server/ssor-appserver/deploy/jboss-portal.sar/portal-identity.sar/portal-identity.war/WEB-INF/lib/richfaces-ui.jar!/META-INF/richfaces.taglib.xml

      00:43:03,331 INFO [STDOUT] amSSOProvider:01/06/2009 12:43:03:330 AM PST: Thread[h5,jboss]

      could not create SSOToken from HttpRequest

      com.iplanet.dpro.session.SessionException: Invalid session ID.

      at com.iplanet.dpro.session.Session.getSession(Session.java:970)

      at com.iplanet.sso.providers.dpro.SSOProviderImpl.createSSOToken(SSOProviderImpl.java:88)

      at com.iplanet.sso.SSOTokenManager.createSSOToken(SSOTokenManager.java:239)

      at org.jboss.portal.identity.sso.opensso.OpenSSOAuthenticationValve.getToken(OpenSSOAuthenticationValve.java:214)

      at org.jboss.portal.identity.sso.opensso.OpenSSOAuthenticationValve.invoke(OpenSSOAuthenticationValve.java:76)

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

      at java.lang.Thread.run(Thread.java:595)

      00:43:03,334 INFO [STDOUT] amSSOProvider:01/06/2009 12:43:03:333 AM PST: Thread[,jboss]

      could not create SSOToken from HttpRequest

      com.iplanet.dpro.session.SessionException: Invalid session ID.

      at com.iplanet.dpro.session.Session.getSession(Session.java:970)

      at com.iplanet.sso.providers.dpro.SSOProviderImpl.createSSOToken(SSOProviderImpl.java:88)

      at com.iplanet.sso.SSOTokenManager.createSSOToken(SSOTokenManager.java:239)

      at org.jboss.portal.identity.sso.opensso.OpenSSOAuthenticationValve.getToken(OpenSSOAuthenticationValve.java:214)

      at org.jboss.portal.identity.sso.opensso.OpenSSOAuthenticationValve.invoke(OpenSSOAuthenticationValve.java:76)

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

      at java.lang.Thread.run(Thread.java:595)

      00:43:03,620 INFO [STDOUT] amSSOProvider:01/06/2009 12:43:03:619


      thanks
      Ratheesh.R. Nair