0 Replies Latest reply on Apr 14, 2008 7:18 AM by Nandhakumar K

    Josso doubt

    Nandhakumar K Newbie

      Hi I am using Jboss with josso.

      My doubt is, whether the JOSSO can be used with JSP pages only, ot can it be ued with the servlet class files also,...?

      I mean, i have some servlet class files under the packages. when i gave the <url-pattern> at the web.xml file as /* and build it.

      Then the Josso auth takes place, but after that i get a blank browser and the following error in the console .

      12:34:25,592 INFO [SSO_AUDIT] Mon Apr 14 12:34:25 IST 2008 - sso-user - info -
      user1 - authenticationSuccess=success - remoteHost=192.168.10.10,authScheme=ba
      sic-authentication,ssoSessionId=62EEA9A789A654794D515DF3828513BC
      12:34:31,642 ERROR [CoyoteAdapter] An exception or error occurred in the contain
      er during the request processing
      java.lang.ClassCastException: org.jnp.interfaces.NamingContext
       at org.josso.jb42.agent.JBossCatalinaRealm.prepareENC(JBossCatalinaRealm
      .java:282)
       at org.josso.jb42.agent.JBossCatalinaRealm.hasRole(JBossCatalinaRealm.ja
      va:199)
       at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.hasResourcePermis
      sion(JBossSecurityMgrRealm.java:243)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
      torBase.java:506)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:102)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
      onnectionValve.java:157)
       at org.josso.tc55.agent.SSOAgentValve.invoke(SSOAgentValve.java:541)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:262)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ss(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
      6)
       at java.lang.Thread.run(Thread.java:595)



      So please tell me how to use josso with servlet classes,...

      Thanks,
      Nandhu.