users@glassfish.java.net

Re: i cant find sun-web.xml

From: Ludovic Champenois <ludovic.champenois_at_oracle.com>
Date: Mon, 18 Jul 2011 09:25:57 +0200

On 7/18/11 8:59 AM, forums_at_java.net wrote:
> Hi there,
>
> I using
>
> * netbean 7.0
> * glassfish 3.1
> * JavaEE6
>
> I configured on glassfish JDBCRealm as follows
> *JAAS Context:* jdbcRealm
> *JNDI:* jdbc/zantel
> *User Table:* users
> *User Name* Column: user_name
> *Password Column:* user_pass
> *Group Table:* user_roles
> *Group Name Column:* role_name
> *Assign Groups:*admin,normal
> *Database User:*
> *Database Password:*
> *Digest Algorithm:* MD5
>
> Connection pooling/resource is done and tested.
>
> I was using tomcat but tomcat doesnt support javaEE6, so i have to
> change my
> project from tomcat to glassfish.. i cant see sun-web.xml what should
> i do?

For the latest GlassFish 3.1, you can now use the glassfish-web.xml file
instead (and NetBeans does that by default)...
Of course, you could still use the old name, and need to adapt the
schema name.
Ludo
>
> My Question, i need to add security setting in sun-web.xml but cant
> find it.
>
> I have attach my screens
>
>
> --
>
> [Message sent by forum member 'abubakargurnah']
>
> View Post: http://forums.java.net/node/823353
>
>
>