Hi all!,
I am experiencing strange behavior and I think that is because there are some misconfiguration in payara realms configuration, but I can’t found my error.
My small application works ok in development mode, but when I upload to a production environment something rare happens, I connect with user and password, redirect to principal menu and when I try to enter some option of menu, again the application redirect to login form.
This behaviour doesn’t happen in my local server and that I don’t understand.
Here my web.xml configurarion:
<login-config>
<auth-method>FORM</auth-method>
<realm-name>LecturaRealm</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/error.jsp</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>usuario</role-name>
</security-role>
<security-constraint>
<display-name>Privado</display-name>
<web-resource-collection>
<web-resource-name>Area Protegida</web-resource-name>
<description/>
<url-pattern>/privado/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<description/>
<role-name>usuario</role-name>
</auth-constraint>
</security-constraint>
I am using Payara Server 5.2022 (community), Java 1.8
Database Users and Group are correct!
I appreciate any help!
thanks in advance!