2 Replies Latest reply on Mar 22, 2010 2:32 AM by vijay b

    How to configure JBoss federeted SSO

    saleem khan Newbie

      Hi All,

      I have downloaded jboss-sso-1.0CR1 and jboss-4.2.2.GA.
      I am following the document from http://labs.jboss.com/wiki/StartFedSSO.

      Here are the steps to test your SSO Framework installation

      * Install jboss-sso-test.ear into the 'deploy' directory of the 'default' configuration
      * run -c default -b node1.jboss.com
      * Now create an exact same copy of 'default' configuration and name it 'default2'
      * run -c default2 -b node1.jboss.org (for cross domain test) or run -c default2 -b node2.jboss.com (for same domain test)
      * Point your web browser to:
      http://node1.jboss.com:8080/test

      I have deployed the jboss-sso.sar and jboss-federation-server.ear in the server/default/deploy directory. I start the server run -c default -b 'qualified domain name' and the test war is accessible. Then
      what i need to put in place of 'node2.jboss.com '.

      I want to test the SSO using JBoss federated SSO.
      Is there any detailed document releted with this.

      Thanks
      Sleem Khan

        • 1. Re: How to configure JBoss federeted SSO
          vijay b Newbie

          in command prompt am getting this error

          please tell me what i need to do

           

           

           

          eReal mode=Manual requiredState=Real
          org.jboss.deployers.spi.DeploymentException: Error deploying booking-sso.jar: Ex
          ception while processing container metadata for EJB: BookingListAction in unit:
          booking-sso.jar
                  at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
                  at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
                  at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internal
          Deploy(AbstractVFSRealDeployer.java:45)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(
          AbstractRealDeployer.java:50)
                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer
          Wrapper.java:171)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(Deployer
          sImpl.java:1439)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
          rst(DeployersImpl.java:1157)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
          rst(DeployersImpl.java:1210)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers
          Impl.java:1098)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
          ctControllerContext.java:348)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
          oller.java:1631)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
          ctController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
          actController.java:1082)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
          actController.java:984)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
          oller.java:774)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
          oller.java:540)
                  at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(B
          eanMetaDataDeployer.java:121)
                  at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(B
          eanMetaDataDeployer.java:51)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.i
          nternalDeploy(AbstractSimpleRealDeployer.java:62)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(
          AbstractRealDeployer.java:50)
                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer
          Wrapper.java:171)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(Deployer
          sImpl.java:1439)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
          rst(DeployersImpl.java:1157)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
          rst(DeployersImpl.java:1178)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers
          Impl.java:1098)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
          ctControllerContext.java:348)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
          oller.java:1631)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
          ctController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
          actController.java:1082)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
          actController.java:984)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
          ller.java:822)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
          ller.java:553)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.process(Deployers
          Impl.java:781)
                  at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeploye
          rImpl.java:702)
                  at org.jboss.system.server.profileservice.repository.MainDeployerAdapter
          .process(MainDeployerAdapter.java:117)
                  at org.jboss.system.server.profileservice.repository.ProfileDeployAction
          .install(ProfileDeployAction.java:70)
                  at org.jboss.system.server.profileservice.repository.AbstractProfileActi
          on.install(AbstractProfileAction.java:53)
                  at org.jboss.system.server.profileservice.repository.AbstractProfileServ
          ice.install(AbstractProfileService.java:361)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
          ctControllerContext.java:348)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
          oller.java:1631)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
          ctController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
          actController.java:1082)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
          actController.java:984)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
          ller.java:822)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
          ller.java:553)
                  at org.jboss.system.server.profileservice.repository.AbstractProfileServ
          ice.activateProfile(AbstractProfileService.java:306)
                  at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(
          ProfileServiceBootstrap.java:271)
                  at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:
          461)
                  at org.jboss.Main.boot(Main.java:221)
                  at org.jboss.Main$1.run(Main.java:556)
                  at java.lang.Thread.run(Thread.java:619)
          Caused by: java.lang.Exception: Exception while processing container metadata fo
          r EJB: BookingListAction in unit: booking-sso.jar
                  at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:549)
                  at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:189)
                  ... 50 more
          Caused by: java.lang.IllegalArgumentException: Container jboss.j2ee:jar=booking-
          sso.jar,name=BookingListAction,service=EJB3 failed to resolve persistence unit n
          ull
                  at org.jboss.injection.PersistenceUnitHandler.addPUDependency(Persistenc
          eUnitHandler.java:135)
                  at org.jboss.injection.PersistenceContextHandler.loadXml(PersistenceCont
          extHandler.java:76)
                  at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:588)
                  at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deploym
          ent.java:418)
                  at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:527)
                  ... 51 more
          Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit nam
          ed 'null' in AbstractVFSDeploymentContext@10513507{vfszip:/E:/NewFolder/jboss-5.
          1.0.GA/server/default2/deploy/jboss-sso.sar/booking-sso.jar/}
                  at org.jboss.jpa.resolvers.BasePersistenceUnitDependencyResolver.resolve
          PersistenceUnitSupplier(BasePersistenceUnitDependencyResolver.java:107)
                  at org.jboss.ejb3.Ejb3Deployment.resolvePersistenceUnitSupplier(Ejb3Depl
          oyment.java:770)
                  at org.jboss.ejb3.EJBContainer.resolvePersistenceUnitSupplier(EJBContain
          er.java:1428)
                  at org.jboss.injection.PersistenceUnitHandler.addPUDependency(Persistenc
          eUnitHandler.java:130)
                  ... 55 more
          03:32:40,335 INFO  [RARDeployment] Required license terms exist, view vfszip:/E:
          /NewFolder/jboss-5.1.0.GA/server/default2/deploy/jboss-local-jdbc.rar/META-INF/r
          a.xml
          03:32:40,460 INFO  [RARDeployment] Required license terms exist, view vfszip:/E:
          /NewFolder/jboss-5.1.0.GA/server/default2/deploy/jboss-xa-jdbc.rar/META-INF/ra.x
          ml
          03:32:40,554 INFO  [RARDeployment] Required license terms exist, view vfszip:/E:
          /NewFolder/jboss-5.1.0.GA/server/default2/deploy/jms-ra.rar/META-INF/ra.xml
          03:32:40,648 INFO  [RARDeployment] Required license terms exist, view vfszip:/E:
          /NewFolder/jboss-5.1.0.GA/server/default2/deploy/mail-ra.rar/META-INF/ra.xml
          03:32:40,726 INFO  [RARDeployment] Required license terms exist, view vfszip:/E:
          /NewFolder/jboss-5.1.0.GA/server/default2/deploy/quartz-ra.rar/META-INF/ra.xml
          03:32:40,945 INFO  [SimpleThreadPool] Job execution threads will use class loade
          r of thread: main
          03:32:41,007 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
          03:32:41,007 INFO  [RAMJobStore] RAMJobStore initialized.
          03:32:41,007 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzSchedule
          r' initialized from default resource file in Quartz package: 'quartz.properties'

           

           

          03:32:41,007 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
          03:32:41,007 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUS
          TERED started.
          03:32:42,117 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
          oss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
          03:32:43,882 INFO  [ServerPeer] JBoss Messaging 1.4.3.GA server [0] started
          03:32:44,070 INFO  [ConnectionFactoryJNDIMapper] supportsFailover attribute is t
          rue on connection factory: jboss.messaging.connectionfactory:service=ClusteredCo
          nnectionFactory but post office is non clustered. So connection factory will *no
          t* support failover
          03:32:44,070 INFO  [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute
          is true on connection factory: jboss.messaging.connectionfactory:service=Cluste
          redConnectionFactory but post office is non clustered. So connection factory wil
          l *not* support load balancing
          03:32:44,242 INFO  [ConnectionFactory] Connector bisocket://node1.jboss.org:4457
          has leasing enabled, lease period 10000 milliseconds
          03:32:44,242 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.Co
          nnectionFactory@1ee3c8d started
          03:32:44,273 INFO  [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pa
          geSize=2000, downCacheSize=2000
          03:32:44,289 INFO  [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=20
          0000, pageSize=2000, downCacheSize=2000
          03:32:44,289 INFO  [ConnectionFactory] Connector bisocket://node1.jboss.org:4457
          has leasing enabled, lease period 10000 milliseconds
          03:32:44,289 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.Co
          nnectionFactory@163468 started
          03:32:44,289 INFO  [ConnectionFactory] Connector bisocket://node1.jboss.org:4457
          has leasing enabled, lease period 10000 milliseconds
          03:32:44,289 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.Co
          nnectionFactory@16d10b7 started
          03:32:44,586 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
          oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
          03:32:44,820 INFO  [JBossASKernel] Created KernelDeployment for: profileservice-
          secured.jar
          03:32:44,836 INFO  [JBossASKernel] installing bean: jboss.j2ee:jar=profileservic
          e-secured.jar,name=SecureProfileService,service=EJB3
          03:32:44,836 INFO  [JBossASKernel]   with dependencies:
          03:32:44,836 INFO  [JBossASKernel]   and demands:
          03:32:44,836 INFO  [JBossASKernel]      jndi:SecureManagementView/remote-org.jbo
          ss.deployers.spi.management.ManagementView
          03:32:44,836 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService
          03:32:44,836 INFO  [JBossASKernel]   and supplies:
          03:32:44,836 INFO  [JBossASKernel]      Class:org.jboss.profileservice.spi.Profi
          leService
          03:32:44,836 INFO  [JBossASKernel]      jndi:SecureProfileService/remote
          03:32:44,836 INFO  [JBossASKernel]      jndi:SecureProfileService/remote-org.jbo
          ss.profileservice.spi.ProfileService
          03:32:44,836 INFO  [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secu
          red.jar,name=SecureProfileService,service=EJB3) to KernelDeployment of: profiles
          ervice-secured.jar
          03:32:44,851 INFO  [JBossASKernel] installing bean: jboss.j2ee:jar=profileservic
          e-secured.jar,name=SecureDeploymentManager,service=EJB3
          03:32:44,851 INFO  [JBossASKernel]   with dependencies:
          03:32:44,851 INFO  [JBossASKernel]   and demands:
          03:32:44,851 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService
          03:32:44,851 INFO  [JBossASKernel]   and supplies:
          03:32:44,851 INFO  [JBossASKernel]      jndi:SecureDeploymentManager/remote-org.
          jboss.deployers.spi.management.deploy.DeploymentManager
          03:32:44,851 INFO  [JBossASKernel]      Class:org.jboss.deployers.spi.management
          .deploy.DeploymentManager
          03:32:44,851 INFO  [JBossASKernel]      jndi:SecureDeploymentManager/remote
          03:32:44,851 INFO  [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secu
          red.jar,name=SecureDeploymentManager,service=EJB3) to KernelDeployment of: profi
          leservice-secured.jar
          03:32:44,851 INFO  [JBossASKernel] installing bean: jboss.j2ee:jar=profileservic
          e-secured.jar,name=SecureManagementView,service=EJB3
          03:32:44,867 INFO  [JBossASKernel]   with dependencies:
          03:32:44,867 INFO  [JBossASKernel]   and demands:
          03:32:44,867 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService
          03:32:44,867 INFO  [JBossASKernel]   and supplies:
          03:32:44,867 INFO  [JBossASKernel]      jndi:SecureManagementView/remote-org.jbo
          ss.deployers.spi.management.ManagementView
          03:32:44,867 INFO  [JBossASKernel]      Class:org.jboss.deployers.spi.management
          .ManagementView
          03:32:44,867 INFO  [JBossASKernel]      jndi:SecureManagementView/remote
          03:32:44,867 INFO  [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secu
          red.jar,name=SecureManagementView,service=EJB3) to KernelDeployment of: profiles
          ervice-secured.jar
          03:32:44,929 INFO  [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@14584ce{na
          me=jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=E
          JB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties
          =[container] constructor=null autowireCandidate=true}
          03:32:44,929 INFO  [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@523a4f{nam
          e=jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service
          =EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properti
          es=[container] constructor=null autowireCandidate=true}
          03:32:44,945 INFO  [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@a50417{nam
          e=jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJ
          B3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=
          [container] constructor=null autowireCandidate=true}
          03:32:45,648 INFO  [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice
          -secured.jar,name=SecureDeploymentManager,service=EJB3
          03:32:45,664 INFO  [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.Secu
          reDeploymentManager ejbName: SecureDeploymentManager
          03:32:45,789 INFO  [JndiSessionRegistrarBase] Binding the following Entries in G
          lobal JNDI:

           

                  SecureDeploymentManager/remote - EJB3.x Default Remote Business Interfac
          e
                  SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy
          .DeploymentManager - EJB3.x Remote Business Interface

           

          03:32:46,117 INFO  [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice
          -secured.jar,name=SecureManagementView,service=EJB3
          03:32:46,117 INFO  [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.Secu
          reManagementView ejbName: SecureManagementView
          03:32:46,148 INFO  [JndiSessionRegistrarBase] Binding the following Entries in G
          lobal JNDI:

           

                  SecureManagementView/remote - EJB3.x Default Remote Business Interface
                  SecureManagementView/remote-org.jboss.deployers.spi.management.Managemen
          tView - EJB3.x Remote Business Interface

           

          03:32:46,461 INFO  [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice
          -secured.jar,name=SecureProfileService,service=EJB3
          03:32:46,476 INFO  [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.Secu
          reProfileServiceBean ejbName: SecureProfileService
          03:32:46,508 INFO  [JndiSessionRegistrarBase] Binding the following Entries in G
          lobal JNDI:

           

                  SecureProfileService/remote - EJB3.x Default Remote Business Interface
                  SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService
          - EJB3.x Remote Business Interface

           

          03:32:47,180 INFO  [TomcatDeployment] deploy, ctxPath=/admin-console
          03:32:47,445 INFO  [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/
          admin-console'
          03:32:53,977 INFO  [TomcatDeployment] deploy, ctxPath=/
          03:32:54,102 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console
          03:32:54,258 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of
          incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

           

          *** DEPLOYMENTS MISSING DEPLOYERS: Name

           

          vfsfile:/E:/NewFolder/jboss-5.1.0.GA/server/default2/deploy/jboss-federation-ser
          ver-exploded.ear/

           

          DEPLOYMENTS IN ERROR:
            Deployment "vfsfile:/E:/NewFolder/jboss-5.1.0.GA/server/default2/deploy/jboss-
          sso.sar/" is in error due to the following reason(s): java.lang.IllegalArgumentE
          xception: Can't find a persistence unit named 'null' in AbstractVFSDeploymentCon
          text@10513507{vfszip:/E:/NewFolder/jboss-5.1.0.GA/server/default2/deploy/jboss-s
          so.sar/booking-sso.jar/}

           

          03:32:54,305 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-node1.jboss
          .org%2F127.0.1.1-8080
          03:32:54,414 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-node1.jboss.org%
          2F127.0.1.1-8009
          03:32:54,446 INFO  [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=
          JBoss_5_1_0_GA date=200905221053)] Started in 1m:38s:694ms

          • 2. Re: How to configure JBoss federeted SSO
            vijay b Newbie

            can u tell me login and password