-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Both the implementation and the documentation for using JAAS in Jetty
was written against the 4.2.x version of Jetty. Perhaps something has
been changed in Jetty 5. Are you using that version? At first sight it
looks to me to be a problem in Jetty but I haven't researched enough to
be sure. Try searching the Jetty mail archives first.

Also check the Jetty documentation for JAAS at
http://jetty.mortbay.org/jetty/plus/index.html (scroll to the bottom of
the page) if the Slide documentation on JAAS is still valid.

- --
Unico

Raman Sandhu wrote:
> Hi 
> 
>  
> 
> Issue with the configuration I have is not able to load login module. Even I
> did all the changes.
> 
>  
> 
> In web.xml I uncommented login config and security tags where auth method is
> basic.
> 
>   <auth-method>BASIC</auth-method>
> 
>   <realm-name>Slide DAV Server</realm-name>
> 
>  
> 
> In config.xml of jetty I mentioned 
> 
>  
> 
> <Call name="addWebApplication">
> 
>     <Arg>/slide</Arg>
> 
>     <Arg><SystemProperty name="jetty.home" default="."/>/slide</Arg>
> 
>     <Set name="Realm">
> 
>            <New class="org.mortbay.jaas.JAASUserRealm">
> 
>             <Set name="Name">Slide DAV Server</Set>
> 
>               <Set name="LoginModuleName">slide</Set>
> 
>            </New>
> 
>            
> 
>     </Set>
> 
> </Call>
> 
>  
> 
> And jaas.config is
> 
>  
> 
> slide{
> 
> org.apache.slide.jaas.spi.SlideLoginModule required debug="true"; 
> 
> namespace=slide;
> 
> };
> 
>  
> 
> I found one more thing if I change  <Set name="LoginModuleName">slide</Set>
> to some thing else no exception is coming.
> 
>  
> 
> Only error comes when I change <auth-method>BASIC</auth-method> to some
> thing else like FORM or DIGEST.
> 
>  
> 
> Thanks
> 
> Raman
> 
>  
> 
>  
> 
> -----Original Message-----
> From: Raman Sandhu [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, May 24, 2005 1:22 PM
> To: slide-user@jakarta.apache.org
> Subject: JAAS Configration
> 
>  
> 
> Hi 
> 
>  
> 
>  
> 
>  
> 
> I have integrated Slide with Jetty. I have followed all the steps given at
> 
> http://jakarta.apache.org/slide/howto-jaas.html.
> 
>  
> 
>  
> 
>  
> 
> Now I am getting following error.
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> HTTP ERROR: 500 org.mortbay.jaas.JAASUserRealm.authenticate.
> 
>  
> 
> 13:06:41.593 WARN!! GET /slide/ HTTP/1.1
> 
>  
> 
> java.lang.AbstractMethodError:
> 
> org.mortbay.jaas.JAASUserRealm.disassociate(Lorg/mortbay/http/UserPrincipal;
> 
> )V
> 
>  
> 
>             at org.mortbay.http.HttpContext.handle(HttpContext.java:1732)
> 
>  
> 
>             at org.mortbay.http.HttpServer.service(HttpServer.java:879)
> 
>  
> 
>             at
> 
> org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
> 
>  
> 
>             at
> 
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
> 
>  
> 
>             at
> 
> org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
> 
>  
> 
>             at
> 
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:196)
> 
>  
> 
>             at
> 
> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
> 
>  
> 
>             at
> 
> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:487)
> 
>  
> 
>  
> 
>  
> 
> 13:06:52.546 WARN!! Error for /slide/
> 
>  
> 
> java.lang.AbstractMethodError:
> 
> org.mortbay.jaas.JAASUserRealm.authenticate(Ljava/lang/String;Ljava/lang/Obj
> 
> ect;Lorg/mortbay/http/HttpRequest;)Lorg/mortbay/http/UserPrincipal;
> 
>  
> 
>             at
> 
> org.mortbay.http.BasicAuthenticator.authenticated(BasicAuthenticator.java:50
> 
> )
> 
>  
> 
>             at
> 
> org.mortbay.http.SecurityConstraint.check(SecurityConstraint.java:415)
> 
>  
> 
>             at
> 
> org.mortbay.http.HttpContext.checkSecurityConstraints(HttpContext.java:1518)
> 
>  
> 
>             at
> 
> org.mortbay.jetty.servlet.ServletHttpContext.checkSecurityConstraints(Servle
> 
> tHttpContext.java:134)
> 
>  
> 
>             at
> 
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
> 
> er.java:235)
> 
>  
> 
>             at
> 
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
> 
>  
> 
>             at org.mortbay.http.HttpContext.handle(HttpContext.java:1776)
> 
>  
> 
>             at
> 
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
> 
> .java:514)
> 
>  
> 
>             at org.mortbay.http.HttpContext.handle(HttpContext.java:1726)
> 
>  
> 
>             at org.mortbay.http.HttpServer.service(HttpServer.java:879)
> 
>  
> 
>             at
> 
> org.mortbay.http.HttpConnection.service(HttpConnection.java:790)
> 
>  
> 
>             at
> 
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:952)
> 
>  
> 
>             at
> 
> org.mortbay.http.HttpConnection.handle(HttpConnection.java:807)
> 
>  
> 
>             at
> 
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:196)
> 
>  
> 
>             at
> 
> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
> 
>  
> 
>             at
> 
> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:487)
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> thanks
> 
>  
> 
>  
> 
>  
> 
> Raman
> 
>  
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCk0L3cuec8tVNKAwRAsQ4AJ408CSzRRMouc0NO1a6fWDiOUksPgCePbtS
VQYgGO+C9U04+l+42svpMmg=
=vBnm
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to