0 Replies Latest reply on Nov 22, 2013 2:15 AM by Shwetha Manjunatha

    Pickectlink in jboss 7.1.1 and jboss 4.2.3

    Shwetha Manjunatha Newbie

      Hi,

      Has any one implemented picket link idp.war in jboss 7.1.1 and sales.war in 4.2.3? deploying all wars for either jboss 7 or joss 4 works.I need to access idp in one server and sales(sp) in other server.Though i am able to get SAML response while trying across servers,i am encountering ClassCastException  as

      11:29:31,816 ERROR [SPRedirectFormAuthenticator] Processing Exception:

       

      java.lang.ClassCastException: org.picketlink.identity.federation.saml.v2.protocol.ResponseType cannot be cast to org.picketlink.identity.federation.saml.v1.protocol.SAML11ResponseType.

       

      Is it because of different pickeltlink jar files used in jboss 7 and jboss 4 servers?

      Here is the complete stack trace..

       

       

       

      11:00:52,578 INFO  [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 10s:704ms

      11:21:30,254 INFO  [[/sales-saml11]] REQUEST URI       =/sales-saml11/

      11:21:30,254 INFO  [[/sales-saml11]]           authType=null

      11:21:30,256 INFO  [[/sales-saml11]]  characterEncoding=null

      11:21:30,256 INFO  [[/sales-saml11]]      contentLength=-1

      11:21:30,256 INFO  [[/sales-saml11]]        contentType=null

      11:21:30,257 INFO  [[/sales-saml11]]        contextPath=/sales-saml11

      11:21:30,257 INFO  [[/sales-saml11]]             cookie=JSESSIONID=P8FjDmgOu57KL7t-v51eE+Bb.undefined

      11:21:30,257 INFO  [[/sales-saml11]]             cookie=JSESSIONIDSSO=4229F7E89B7B6361A542FD8F2E4CDB32

      11:21:30,259 INFO  [[/sales-saml11]]             header=host=localhost:7070

      11:21:30,259 INFO  [[/sales-saml11]]             header=connection=keep-alive

      11:21:30,260 INFO  [[/sales-saml11]]             header=accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8

      11:21:30,260 INFO  [[/sales-saml11]]             header=user-agent=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36

      11:21:30,260 INFO  [[/sales-saml11]]             header=accept-encoding=gzip,deflate,sdch

      11:21:30,261 INFO  [[/sales-saml11]]             header=accept-language=en-US,en;q=0.8

      11:21:30,261 INFO  [[/sales-saml11]]             header=cookie=JSESSIONID=P8FjDmgOu57KL7t-v51eE+Bb.undefined; JSESSIONIDSSO=4229F7E89B7B6361A542FD8F2E4CDB32

      11:21:30,261 INFO  [[/sales-saml11]]             locale=en_US

      11:21:30,262 INFO  [[/sales-saml11]]             method=GET

      11:21:30,262 INFO  [[/sales-saml11]]           pathInfo=null

      11:21:30,262 INFO  [[/sales-saml11]]           protocol=HTTP/1.1

      11:21:30,262 INFO  [[/sales-saml11]]        queryString=null

      11:21:30,263 INFO  [[/sales-saml11]]         remoteAddr=127.0.0.1

      11:21:30,267 INFO  [[/sales-saml11]]         remoteHost=127.0.0.1

      11:21:30,272 INFO  [[/sales-saml11]]         remoteUser=null

      11:21:30,274 INFO  [[/sales-saml11]] requestedSessionId=P8FjDmgOu57KL7t-v51eE+Bb.undefined

      11:21:30,282 INFO  [[/sales-saml11]]             scheme=http

      11:21:30,286 INFO  [[/sales-saml11]]         serverName=localhost

      11:21:30,289 INFO  [[/sales-saml11]]         serverPort=7070

      11:21:30,297 INFO  [[/sales-saml11]]        servletPath=/index.jsp

      11:21:30,300 INFO  [[/sales-saml11]]           isSecure=false

      11:21:30,304 INFO  [[/sales-saml11]] ---------------------------------------------------------------

      11:21:30,318 ERROR [SPRedirectFormAuthenticator] Falling back on local Form Authentication if available

      11:21:30,390 INFO  [[/sales-saml11]] ---------------------------------------------------------------

      11:21:30,390 INFO  [[/sales-saml11]]           authType=null

      11:21:30,391 INFO  [[/sales-saml11]]      contentLength=-1

      11:21:30,395 INFO  [[/sales-saml11]]        contentType=null

      11:21:30,399 INFO  [[/sales-saml11]]             cookie=JSESSIONIDSSO=4229F7E89B7B6361A542FD8F2E4CDB32; domain=null; path=null

      11:21:30,402 INFO  [[/sales-saml11]]             cookie=JSESSIONID=P8FjDmgOu57KL7t-v51eE+Bb.undefined; domain=null; path=/

      11:21:30,406 INFO  [[/sales-saml11]]             header=Set-Cookie=JSESSIONIDSSO=4229F7E89B7B6361A542FD8F2E4CDB32; Expires=Thu, 01-Jan-1970 00:00:10 GMT

      11:21:30,414 INFO  [[/sales-saml11]]             header=Set-Cookie=JSESSIONID=P8FjDmgOu57KL7t-v51eE+Bb.undefined; Path=/

      11:21:30,417 INFO  [[/sales-saml11]]             header=Pragma=no-cache

      11:21:30,421 INFO  [[/sales-saml11]]             header=Cache-Control=no-cache, no-store

      11:21:30,424 INFO  [[/sales-saml11]]             header=Expires=Thu, 01 Jan 1970 05:30:00 IST

      11:21:30,432 INFO  [[/sales-saml11]]             header=Set-Cookie=JSESSIONIDSSO=4229F7E89B7B6361A542FD8F2E4CDB32; Expires=Thu, 01-Jan-1970 00:00:10 GMT

      11:21:30,435 INFO  [[/sales-saml11]]             header=Set-Cookie=JSESSIONID=P8FjDmgOu57KL7t-v51eE+Bb.undefined; Path=/

      11:21:30,439 INFO  [[/sales-saml11]]             header=Location=http://localhost:8080/idp/?SAMLRequest=jVLJasMwEP0Vo2tRLHlJGhEb3IRSQxeTuL0WxZ40BllyNXKXv68Tt5BeQm7DzJt5C7NA2apOZL3b6zW894DO%2B2qVRnEcJKS3WhiJDQotW0DhKrHJHu5FMGGis8aZyigyrpwHS0SwrjGaeNlfuTQa%2BxbsBuxHU8Hz%2Bj4he%2Bc64fvKVFLtDToxYzPmo1SA9KCJc594%2BSoh%2Beq1ns8iyVlNr2W8o5GcA5VRNaVRGE23cRTMoZIDGLGHXKOT2iUkYDyknNMgKDkXARchm4Qxu2LxUBGv%2BPV00%2Bi60W%2FnPW1HEIq7sixo8bQpifcCFgdrA9GEkXRxkCyOCuxJsJdGlV6QxsI%2F4RgJO%2FE4HM1XhVFN9e1lSpnPpQXpICHO9kC8W2Nb6c7LOHSamu6OUOGs1NiAdsRPR8r%2Fb5P%2BAA%3D%3D

      11:21:30,446 INFO  [[/sales-saml11]]            message=null

      11:21:30,450 INFO  [[/sales-saml11]]         remoteUser=null

      11:21:30,454 INFO  [[/sales-saml11]]             status=302

      11:21:30,457 INFO  [[/sales-saml11]] ===============================================================

      11:25:38,018 INFO  [[/sales-saml11]] REQUEST URI       =/sales-saml11/

      11:25:38,018 INFO  [[/sales-saml11]]           authType=null

      11:25:38,019 INFO  [[/sales-saml11]]  characterEncoding=null

      11:25:38,019 INFO  [[/sales-saml11]]      contentLength=-1

      11:25:38,019 INFO  [[/sales-saml11]]        contentType=null

      11:25:38,020 INFO  [[/sales-saml11]]        contextPath=/sales-saml11

      11:25:38,020 INFO  [[/sales-saml11]]             cookie=JSESSIONIDSSO=4229F7E89B7B6361A542FD8F2E4CDB32

      11:25:38,021 INFO  [[/sales-saml11]]             cookie=JSESSIONID=P8FjDmgOu57KL7t-v51eE+Bb.undefined

      11:25:38,022 INFO  [[/sales-saml11]]             header=host=localhost:7070

      11:25:38,022 INFO  [[/sales-saml11]]             header=connection=keep-alive

      11:25:38,022 INFO  [[/sales-saml11]]             header=cache-control=max-age=0

      11:25:38,023 INFO  [[/sales-saml11]]             header=accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8

      11:25:38,023 INFO  [[/sales-saml11]]             header=user-agent=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.57 Safari/537.36

      11:25:38,024 INFO  [[/sales-saml11]]             header=referer=http://localhost:8080/idp/?SAMLRequest=jVLJasMwEP0Vo2tRLHlJGhEb3IRSQxeTuL0WxZ40BllyNXKXv68Tt5BeQm7DzJt5C7NA2apOZL3b6zW894DO%2B2qVRnEcJKS3WhiJDQotW0DhKrHJHu5FMGGis8aZyigyrpwHS0SwrjGaeNlfuTQa%2BxbsBuxHU8Hz%2Bj4he%2Bc64fvKVFLtDToxYzPmo1SA9KCJc594%2BSoh%2Beq1ns8iyVlNr2W8o5GcA5VRNaVRGE23cRTMoZIDGLGHXKOT2iUkYDyknNMgKDkXARchm4Qxu2LxUBGv%2BPV00%2Bi60W%2FnPW1HEIq7sixo8bQpifcCFgdrA9GEkXRxkCyOCuxJsJdGlV6QxsI%2F4RgJO%2FE4HM1XhVFN9e1lSpnPpQXpICHO9kC8W2Nb6c7LOHSamu6OUOGs1NiAdsRPR8r%2Fb5P%2BAA%3D%3D

      11:25:38,024 INFO  [[/sales-saml11]]             header=accept-encoding=gzip,deflate,sdch

      11:25:38,025 INFO  [[/sales-saml11]]             header=accept-language=en-US,en;q=0.8

      11:25:38,025 INFO  [[/sales-saml11]]             header=cookie=JSESSIONIDSSO=4229F7E89B7B6361A542FD8F2E4CDB32; JSESSIONID=P8FjDmgOu57KL7t-v51eE+Bb.undefined

      11:25:38,025 INFO  [[/sales-saml11]]             locale=en_US

      11:25:38,026 INFO  [[/sales-saml11]]             method=GET

      11:25:38,027 INFO  [[/sales-saml11]]          parameter=SAMLResponse=3VXbjtowEP2VyK+ViXNPLIi0XVQJaS8VrFZ9qxxnsqRK7Cg2gv37OoEgoMDSqi/tU+LxzJk5Zzz2WLG6augcVCOFAmtTV0LR3jhBq1ZQyVSpqGA1KKo5Xdw9PlB3RGjTSi25rNBByPUIphS0upQCWVNQuhSsW0zQUuuG2nYlOauWUmkakYjYilWgcIfqODayZtMJmk2/O1GQQZQBzoCH2GcFwXHs5jiP3ZBkIYAXJMZZDHxeZB+WJ5HPHJLjmAWFCUsAM78D8PwwC3w3Ac5MmFIrmAmlmdAT5BLHw46DXffFcagbUC8ahUnwiZg/gqxXaFVfvqGG0nFXKO0B2vQXQjGJiV3mjT22D/3GW+0XmumVOl7dyxysV1at4LqmqvemixXnoBSy022GY1B6Nyi/7dXNbdqJHhckzNwgwbkXZNhPggjHnHs4Cgo/8CISEte5Sb04+Vg964tsa6av19hZyhwXvSttOjClQWiUallzps/obDTKfgDXu9WTQZhN/2ayLeJxsnspirIL67R/BL2U+fVcvKYZsBZadBloyjT70yP+JPVnMEzgUoeioUPG81k8t3eFhvaMs+8ftnMOvGxK6Bp/yzQPx/Qcu5OtnQzGIy+7bXWdQnBY1e9QsIdRWeml6IYHakPH6pcfXAnhDuIQwdSrYaPPmO4rM2BzKNKrM8gp7/yM+av5rGWb72Q5C3Vm78i25zPUo3VbZisNFzes7jRP0FxW

      11:25:38,027 INFO  [[/sales-saml11]]           pathInfo=null

      11:25:38,028 INFO  [[/sales-saml11]]           protocol=HTTP/1.1

      11:25:38,028 INFO  [[/sales-saml11]]        queryString=SAMLResponse=3VXbjtowEP2VyK%2BViXNPLIi0XVQJaS8VrFZ9qxxnsqRK7Cg2gv37OoEgoMDSqi%2FtU%2BLxzJk5Zzz2WLG6augcVCOFAmtTV0LR3jhBq1ZQyVSpqGA1KKo5Xdw9PlB3RGjTSi25rNBByPUIphS0upQCWVNQuhSsW0zQUuuG2nYlOauWUmkakYjYilWgcIfqODayZtMJmk2%2FO1GQQZQBzoCH2GcFwXHs5jiP3ZBkIYAXJMZZDHxeZB%2BWJ5HPHJLjmAWFCUsAM78D8PwwC3w3Ac5MmFIrmAmlmdAT5BLHw46DXffFcagbUC8ahUnwiZg%2FgqxXaFVfvqGG0nFXKO0B2vQXQjGJiV3mjT22D%2F3GW%2B0XmumVOl7dyxysV1at4LqmqvemixXnoBSy022GY1B6Nyi%2F7dXNbdqJHhckzNwgwbkXZNhPggjHnHs4Cgo%2F8CISEte5Sb04%2BVg964tsa6av19hZyhwXvSttOjClQWiUallzps%2FobDTKfgDXu9WTQZhN%2F2ayLeJxsnspirIL67R%2FBL2U%2BfVcvKYZsBZadBloyjT70yP%2BJPVnMEzgUoeioUPG81k8t3eFhvaMs%2B8ftnMOvGxK6Bp%2FyzQPx%2FQcu5OtnQzGIy%2B7bXWdQnBY1e9QsIdRWeml6IYHakPH6pcfXAnhDuIQwdSrYaPPmO4rM2BzKNKrM8gp7%2FyM%2

      11:25:38,028 INFO  [[/sales-saml11]]         remoteAddr=127.0.0.1

      11:25:38,029 INFO  [[/sales-saml11]]         remoteHost=127.0.0.1

      11:25:38,029 INFO  [[/sales-saml11]]         remoteUser=null

      11:25:38,029 INFO  [[/sales-saml11]] requestedSessionId=P8FjDmgOu57KL7t-v51eE+Bb.undefined

      11:25:38,030 INFO  [[/sales-saml11]]             scheme=http

      11:25:38,030 INFO  [[/sales-saml11]]         serverName=localhost

      11:25:38,030 INFO  [[/sales-saml11]]         serverPort=7070

      11:25:38,031 INFO  [[/sales-saml11]]        servletPath=/index.jsp

      11:25:38,031 INFO  [[/sales-saml11]]           isSecure=false

      11:25:38,032 INFO  [[/sales-saml11]] ---------------------------------------------------------------

      11:25:38,068 ERROR [SPRedirectFormAuthenticator] Processing Exception:

      java.lang.ClassCastException: org.picketlink.identity.federation.saml.v2.protocol.ResponseType cannot be cast to org.picketlink.identity.federation.saml.v1.protocol.SAML11ResponseType

              at org.picketlink.identity.federation.bindings.tomcat.sp.SAML11SPRedirectFormAuthenticator.authenticate(SAML11SPRedirectFormAuthenticator.java:89)

              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)

              at org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:151)

              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.authenticator.SingleSignOn.invoke(SingleSignOn.java:420)

              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:662)

      11:25:38,068 ERROR [SPRedirectFormAuthenticator] Falling back on local Form Authentication if available

      11:25:38,083 ERROR [JBossSecurityMgrRealm] Error during authenticate

      javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: sp not bound]

              at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1215)

              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:758)

              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)

              at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:488)

              at org.picketlink.identity.federation.bindings.tomcat.sp.SPRedirectFormAuthenticator.handleSAMLResponse(SPRedirectFormAuthenticator.java:302)

              at org.picketlink.identity.federation.bindings.tomcat.sp.SPRedirectFormAuthenticator.authenticate(SPRedirectFormAuthenticator.java:153)

              at org.picketlink.identity.federation.bindings.tomcat.sp.SAML11SPRedirectFormAuthenticator.authenticate(SAML11SPRedirectFormAuthenticator.java:153)

              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)

              at org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:151)

              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.authenticator.SingleSignOn.invoke(SingleSignOn.java:420)

              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:662)

      Caused by: javax.naming.NameNotFoundException: sp not bound

              at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)

              at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)

              at org.jnp.server.NamingServer.getObject(NamingServer.java:543)