10 Replies Latest reply on Nov 1, 2006 6:59 PM by Sohil Shah

    Deploying issue with SSO

    Nipun Batra Newbie

      Hi Sohil

      Thanks for your response.
      I copied following in the deployed folder of jboss

      jboss-federation-server-exploded.ear
      jboss-sso.sar

      but when I started the server I got following exception,

      There is one more thing whcih I would like to share is, In JBOSS SSO distributin I also found patches folder, whcih has patches for Jboss 4.0.4 Jboss 4.0.5

      The jboss vesrion I am using is 4.0.3



      14:46:12,000 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jbo
      ss.net.sockets.DefaultSocketFactory@ad093076
      14:46:20,031 ERROR [IdentityManager] org.jboss.security.idm.IdentityManager
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at org.jboss.security.idm.IdentityManager.loadLoginProviders(IdentityManager.java:275)
      at org.jboss.security.idm.IdentityManager.loadConfiguration(IdentityManager.java:238)
      at org.jboss.security.idm.IdentityManager.start(IdentityManager.java:193)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:960)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:428)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
      at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:428)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
      at org.jboss.Main.boot(Main.java:187)
      at org.jboss.Main$1.run(Main.java:438)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: org.jboss.security.idm.IdentityException: com.octetstring.jdbcLdap.jndi.SQLNamingException: Invalid Credentials
      at org.jboss.security.idm.ldap.LDAPIdentityProvider.restoreIdentities(LDAPIdentityProvider.java:1402)
      at org.jboss.security.idm.ldap.LDAPIdentityProvider.(LDAPIdentityProvider.java:123)
      ... 101 more
      Caused by: com.octetstring.jdbcLdap.jndi.SQLNamingException: Invalid Credentials
      at com.octetstring.jdbcLdap.jndi.SQLNamingException.fillInStackTrace(SQLNamingException.java:67)
      at java.lang.Throwable.(Throwable.java:181)
      at java.lang.Exception.(Exception.java:29)
      at java.sql.SQLException.(SQLException.java:98)
      at com.octetstring.jdbcLdap.jndi.SQLNamingException.(SQLNamingException.java:44)
      at com.octetstring.jdbcLdap.jndi.JndiLdapConnection.(JndiLdapConnection.java:363)
      at com.octetstring.jdbcLdap.sql.JdbcLdapDriver.connect(JdbcLdapDriver.java:96)
      at java.sql.DriverManager.getConnection(DriverManager.java:525)
      at java.sql.DriverManager.getConnection(DriverManager.java:171)
      at org.jboss.security.idm.ldap.LDAPIdentityProvider.getConnection(LDAPIdentityProvider.java:710)
      at org.jboss.security.idm.ldap.LDAPIdentityProvider.restoreIdentities(LDAPIdentityProvider.java:1355)
      ... 102 more
      14:46:20,156 INFO [IdentityManager] Configuration loading for the IdentityManager failed...........
      14:46:20,234 INFO [SSOManager] SSOProcessor org.jboss.security.saml.JBossSingleSignOn@16cbd97 was successfully registered.....
      14:46:20,234 INFO [SSOManager] SSOManager service successfully started...........
      46:30,468 INFO [Embedded] Catalina naming disabled
      46:33,859 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
      46:33,859 INFO [Catalina] Initialization processed in 469 ms
      46:33,859 INFO [StandardService] Starting service jboss.web
      46:33,875 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5
      46:33,921 INFO [StandardHost] XML validation disabled
      46:33,953 INFO [Catalina] Server startup in 94 ms
      46:34,140 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
      46:35,093 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=.../tmp/deploy/tmp46977jboss-ws4ee-exp.war/
      46:35,250 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
      46:35,531 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      46:38,328 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
      46:39,078 INFO [MailService] Mail Service bound to java:/Mail
      46:39,625 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
      46:39,734 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
      46:39,906 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar



      Thanks again for your help
      Nipun

        • 1. Re: Deploying issue with SSO
          Nipun Batra Newbie

          Just to add few more things here.

          I added my own class whcih implements LoginProvider and copied the jboss40.4 tomcat-util.jar to my jboss 4.0.3 instance,


          After restarting the server I got following exception (Basically ClassCastException)

          15:00:58,078 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
          15:00:58,656 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jb
          ss.net.sockets.DefaultSocketFactory@ad093076
          15:01:01,390 ERROR [IdentityManager] org.jboss.security.idm.IdentityManager

          java.lang.ClassCastException: com.coremetrics.sso.DemoLoginProvider
          at org.jboss.security.idm.IdentityManager.loadProvisioningProviders(IdentityManager.java:312)
          at org.jboss.security.idm.IdentityManager.loadConfiguration(IdentityManager.java:239)
          at org.jboss.security.idm.IdentityManager.start(IdentityManager.java:193)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:960)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:428)
          at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
          at $Proxy4.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
          at $Proxy9.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
          at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:428)
          at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
          at $Proxy4.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)

          • 2. Re: Deploying issue with SSO
            Nipun Batra Newbie

            Just to add few more things here.

            I added my own class whcih implements LoginProvider and copied the jboss40.4 tomcat-util.jar to my jboss 4.0.3 instance,


            After restarting the server I got following exception (Basically ClassCastException)

            15:00:58,078 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
            15:00:58,656 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jb
            ss.net.sockets.DefaultSocketFactory@ad093076
            15:01:01,390 ERROR [IdentityManager] org.jboss.security.idm.IdentityManager

            java.lang.ClassCastException: com.coremetrics.sso.DemoLoginProvider
            at org.jboss.security.idm.IdentityManager.loadProvisioningProviders(IdentityManager.java:312)
            at org.jboss.security.idm.IdentityManager.loadConfiguration(IdentityManager.java:239)
            at org.jboss.security.idm.IdentityManager.start(IdentityManager.java:193)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:960)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:428)
            at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy9.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:428)
            at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)

            • 3. Re: Deploying issue with SSO
              Sohil Shah Master

              Nipun-

              If you are using jboss 4.0.3 then you dont need to patch your tomcat.sar file with the tomcat-util.jar file. Its only for cookie processing issues in tomcat.sar in jboss-4.0.4 and jboss-4.0.5


              As far as your ClassCastException goes, just remove the

              <provisioning>
               <provider id="si:jboss-sso:ldap:provisioning" class="org.jboss.security.idm.ldap.LDAPIdentityProvider">
               <property name="connectionURL">
               jdbc:ldap://localhost:389/dc=jboss,dc=com?SEARCH_SCOPE:=subTreeScope&secure:=false&concat_atts:=true&size_limit:=10000000
               </property>
               <property name="username">cn=Admin,dc=jboss,dc=com</property>
               <property name="password">jbossrocks</property>
               <property name="identityOu">jbosssso</property>
               <property name="roleOu">role</property>
               </provider>
               </provisioning>
              


              configuration from the jboss-sso.sar/conf/sso.cfg.xml file.

              You only need to specify the login provider, not the provisioning provider at this point.

              ProvisioningProvider will be important for Federated Provisioning functions that are on the roadmap.

              Thanks
              Sohil

              • 4. Re: Deploying issue with SSO
                Nipun Batra Newbie

                Thanks for your response Sohil

                As you suggested I removed the entry of provisioning but I am not getting Null Pointer Exception



                This is how my sso-cfg file looks like

                <?xml version='1.0' encoding='ISO-8859-1'?>

                <jboss-sso>
                <!--
                identity management related configuration, this is the LDAP based module
                Technically, this can be a provider that can integrate with thirdparty identity systems like SiteMinder etc
                -->
                <identity-management>



                jdbc:ldap://localhost:389/dc=jboss,dc=com?SEARCH_SCOPE:=subTreeScope&amp;secure:=false&amp;concat_atts:=true&amp;size_limit:=10000000

                cn=Admin,dc=jboss,dc=com
                jbossrocks
                jbosssso
                role


                </identity-management>


                <!-- sso processor for SingleSignOn, the default JBossSingleSignOn processor uses OpenSAML-1.0,
                the next version of this processor will use the latest SAML specification
                -->
                <sso-processor>

                http://sd1nbatracore.coremetrics.com:8080/federate/trust

                </sso-processor>
                </jboss-sso>


                And this is my class DemoLoginProvider

                package com.coremetrics.sso;

                import java.security.Principal;
                import java.util.ArrayList;
                import java.util.Collection;
                import java.util.HashMap;
                import java.util.List;
                import java.util.Map;
                import java.util.Properties;

                import org.jboss.security.idm.Identity;
                import org.jboss.security.idm.IdentityException;
                import org.jboss.security.idm.LoginProvider;

                public class DemoLoginProvider implements LoginProvider {

                private String id = null;

                public DemoLoginProvider(String id,Properties properties)
                {
                this.id = id;
                }



                public Identity read(Principal principal) throws IdentityException{
                return this.read(principal.getName());
                }
                public Identity read(String username) throws IdentityException{
                Identity identity = new Identity();
                identity.setFullName("Nick");
                identity.setUserName("Nick");
                return identity;
                }

                public boolean exists(Principal principal) throws IdentityException{
                return this.exists(principal.getName());
                }
                public boolean exists(String username) throws IdentityException{
                if(username.equals("Nick"))
                return true;
                else
                return false;
                }

                public boolean login(Principal principal,byte[] password) throws IdentityException{
                return this.login(principal.getName(),password);
                }
                public boolean login(String username,byte[] password) throws IdentityException{
                if(username.equals("Nick")){
                return true;
                }
                else{
                return false;
                }
                }

                public Collection readAllRoles() throws IdentityException{
                List roleMap = new ArrayList();
                return roleMap;
                }

                public String getId() throws IdentityException{
                return this.id;
                }

                }





                Exception is


                15:31:13,984 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
                15:31:14,468 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jbo
                ss.net.sockets.DefaultSocketFactory@ad093076
                15:31:18,390 ERROR [IdentityManager] org.jboss.security.idm.IdentityManager
                java.lang.NullPointerException
                at org.jboss.security.idm.IdentityManager.loadProvisioningProviders(IdentityManager.java:286)
                at org.jboss.security.idm.IdentityManager.loadConfiguration(IdentityManager.java:239)
                at org.jboss.security.idm.IdentityManager.start(IdentityManager.java:193)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:960)
                at $Proxy0.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:428)
                at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy4.start(Unknown Source)
                at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy9.deploy(Unknown Source)

                • 5. Re: Deploying issue with SSO
                  Nipun Batra Newbie

                  It seems like sso-cfg.xml is not pasted correctly

                  Here it is


                  <jboss-sso>
                  <identity-management>



                  jdbc:ldap://localhost:389/dc=jboss,dc=com?SEARCH_SCOPE:=subTreeScope&amp;secure:=false&amp;concat_atts:=true&amp;size_limit:=10000000

                  cn=Admin,dc=jboss,dc=com
                  jbossrocks
                  jbosssso
                  role


                  </identity-management>


                  <!-- sso processor for SingleSignOn, the default JBossSingleSignOn processor uses OpenSAML-1.0,
                  the next version of this processor will use the latest SAML specification
                  -->
                  <sso-processor>

                  http://sd1nbatra.core.coremetrics.com:8080/federate/trust

                  </sso-processor>
                  </jboss-sso>

                  • 6. Re: Deploying issue with SSO
                    Nipun Batra Newbie

                    Again the same problem

                    I hope this time it will work < and > brackets are replaced by --


                    --?xml version='1.0' encoding='ISO-8859-1'?--

                    --jboss-sso--
                    --!--
                    identity management related configuration, this is the LDAP based module
                    Technically, this can be a provider that can integrate with thirdparty identity systems like SiteMinder etc
                    ----
                    --identity-management--
                    --login--
                    --provider id="si:jboss-sso:test:login" class="com.coremetrics.sso.DemoLoginProvider"--
                    --property name="connectionURL"--
                    jdbc:ldap://localhost:389/dc=jboss,dc=com?SEARCH_SCOPE:=subTreeScope&amp;secure:=false&amp;concat_atts:=true&amp;size_limit:=10000000
                    --/property--
                    --property name="username"--cn=Admin,dc=jboss,dc=com--/property--
                    --property name="password"--jbossrocks--/property--
                    --property name="identityOu"--jbosssso--/property--
                    --property name="roleOu"--role--/property--
                    --/provider--
                    --/login--
                    --/identity-management--


                    --!-- sso processor for SingleSignOn, the default JBossSingleSignOn processor uses OpenSAML-1.0,
                    the next version of this processor will use the latest SAML specification
                    ----
                    --sso-processor--
                    --processor class="org.jboss.security.saml.JBossSingleSignOn"--
                    --property name="trustServer"--http://sd1nbatra.core.coremetrics.com:8080/federate/trust--/property--
                    --/processor--
                    --/sso-processor--
                    --/jboss-sso--

                    • 7. Re: Deploying issue with SSO
                      Sohil Shah Master

                      Nipun try your sso.cfg.xml to be look something like this from provisioning tag perspective:

                      <?xml version='1.0' encoding='ISO-8859-1'?>
                      
                      <jboss-sso>
                       <!--
                       identity management related configuration, this is the LDAP based module
                       Technically, this can be a provider that can integrate with thirdparty identity systems like SiteMinder etc
                       -->
                       <identity-management>
                       <login>
                       <provider id="si:jboss-sso:ldap:login" class="org.jboss.security.idm.ldap.LDAPIdentityProvider">
                       <property name="connectionURL">
                       jdbc:ldap://localhost:389/dc=jboss,dc=com?SEARCH_SCOPE:=subTreeScope&amp;secure:=false&amp;concat_atts:=true&amp;size_limit:=10000000
                       </property>
                       <property name="username">cn=Admin,dc=jboss,dc=com</property>
                       <property name="password">jbossrocks</property>
                       <property name="identityOu">jbosssso</property>
                       <property name="roleOu">role</property>
                       </provider>
                       </login>
                       <provisioning>
                       </provisioning>
                       </identity-management>
                      
                      
                       <!-- sso processor for SingleSignOn, the default JBossSingleSignOn processor uses OpenSAML-1.0,
                       the next version of this processor will use the latest SAML specification
                       -->
                       <sso-processor>
                       <processor class="org.jboss.security.saml.JBossSingleSignOn">
                       <property name="trustServer">http://node1.jboss.com:8080/federate/trust</property>
                       </processor>
                       </sso-processor>
                      </jboss-sso>
                      


                      Thanks
                      Sohil

                      • 8. Re: Deploying issue with SSO
                        Sohil Shah Master

                        Basically the Provisioning tag should remain empty if there are no ProvisioningProviders to specify

                        • 9. Re: Deploying issue with SSO
                          Nipun Batra Newbie

                          Hi

                          Thanks your very much Sohil

                          Infact I just looked at the code (Identity Manager) and applied this and it worked, :-) I was about to reply and saw ur message :-)

                          thank you very much for your help.

                          Now I have one more question

                          I think I shd start a new thred for that.

                          Thanks Again
                          Nipun

                          • 10. Re: Deploying issue with SSO
                            Sohil Shah Master

                            Yes, looks like this could be a bug i need to fix ;)

                            Go ahead and ask on this thread itself