users@glassfish.java.net

Re: Glassfish + Metro web service + Custom realm

From: <glassfish_at_javadesktop.org>
Date: Tue, 03 Aug 2010 13:34:58 PDT

Hello dpandrews!

I think you should add web.xml file to your project. In NetBeans 6:
New... -> Standard Deployment Descriptor (web.xml)

And add login-config section to this file:

<web-app>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <login-config>
        <auth-method>BASIC</auth-method>
        <realm-name>CustomRealm</realm-name>
    </login-config>
</web-app>

Please try, and let me know the result! Thanks!
[Message sent by forum member 'ladislav_gredi']

http://forums.java.net/jive/thread.jspa?messageID=479264