users@glassfish.java.net

Re: Securing a Web Application in NetBeans 6.5 tutorial - deployment problem

From: <glassfish_at_javadesktop.org>
Date: Fri, 29 Aug 2008 11:36:33 PDT

Hi,

Can you remove [b]class-name=""[/b] attribute in "sun-web.xml" deployment descriptor, and try again?

The tutorial says:

You can also view and edit sun-web.xml in the XML editor by clicking Edit As XML in the top right corner of the Sun Web Application visual editor. If you open sun-web.xml in the XML editor, you can see that sun-web.xml has the following security role mapping information:
[code]
<security-role-mapping>
    <role-name>Admin</role-name>
    <principal-name>admin</principal-name>
</security-role-mapping>
<security-role-mapping>
    <role-name>User</role-name>
    <principal-name>user</principal-name>
</security-role-mapping>
[/code]


I hope it works for your tests.
[Message sent by forum member 'jmarine' (jmarine)]

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