5 Replies Latest reply on Jul 17, 2012 9:14 AM by wiktorowski maximilien

    PicketLinkSTS cannot be cast to javax.servlet.Servlet

    Marcin Stański Newbie


      Hi,

       

      I'm trying to work with example:

      http://dl.dropbox.com/u/20060733/AS7-picketlinkenabled.zip

      taken from page:

      http://community.jboss.org/wiki/SAMLWebBrowserSSOOnJBossAS70

       

       

      Unfortunattely it seems that there is a problem with this configuration.

      I cannot invoke WSDL port of pocketlink-sts because of the exception:

       

      14:51:50,940 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/picketlink-sts].[PicketLinkSTS]] (http--127.0.0.1-8080-1) Allocate exception for servlet PicketLinkSTS: java.lang.ClassCastException: org.picketlink.identity.federation.core.wstrust.PicketLinkSTS cannot be cast to javax.servlet.Servlet

          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1156) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

          at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:952) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:188) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

          at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.0.Final.jar:7.0.0.Final]

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

       

      This problem is probably the same as discussed here:

      http://community.jboss.org/message/554404#554404

       

      Does anyone know the solution ?

      Thanks in advance

      Marcin