users@glassfish.java.net

Re: Can login, but roles are not assigned

From: Harsha R A <Harsha.Ra_at_Sun.COM>
Date: Wed, 21 Nov 2007 16:26:10 +0530

Can you also make sure the contents of sun-web.xml in all the locations
are same or similar.

I tried the same scenario a (i.e. web app with auth constraint in
glassfish cluster and jdbc realm) and it worked fine.

You can also set the logging level for security to FINEST and send the
log file contents.

Also be aware of a bug in admin gui
(https://glassfish.dev.java.net/issues/show_bug.cgi?id=3604) because of
which modifications to jdbc realm are not handled well and so should
be done when the cluster has been stopped.

Thanks
Harsha

glassfish_at_javadesktop.org wrote, On Wednesday 21 November 2007 02:55 AM:
> Here's are the results of 'locate sun-web.xml' on both instance machines:
>
> Machine 1, instance 1, has the DAS:
> /opt/glassfish/domains/domain1/applications/j2ee-modules/Stag/WEB-INF/sun-web.xml
> /opt/glassfish/domains/domain1/generated/xml/j2ee-modules/Stag/WEB-INF/sun-web.xml
> /opt/glassfish/nodeagents/g1-a1/g1-i1/applications/j2ee-modules/Stag/WEB-INF/sun-web.xml
> /opt/glassfish/nodeagents/g1-a1/g1-i1/generated/xml/j2ee-modules/Stag/WEB-INF/sun-web.xml
>
> Machine 2, instance 2, no DAS:
> /opt/glassfish/nodeagents/g2-a1/g2-i1/applications/j2ee-modules/Stag/WEB-INF/sun-web.xml
> /opt/glassfish/nodeagents/g2-a1/g2-i1/generated/xml/j2ee-modules/Stag/WEB-INF/sun-web.xml
>
> There were other sun-web.xml references (for things like the admin gui) but I didn't paste those in. So it seems to be present.... Thanks for help, any other ideas?
> [Message sent by forum member 'rwillie6' (rwillie6)]
>
> http://forums.java.net/jive/thread.jspa?messageID=246391
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>