Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FORM-BASED setup problem: Login.jsp cannot be rendered!!!

 
Binh Nguyen
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For reason, my login page cannot be rendered if I tried to access the proctedt URL, the browser keeps browsing non-stop !!!

this is my web.xml:
<security-constraint id="SecurityConstraint_1">
<web-resource-collection id="WebResourceCollection_1">
<web-resource-name>FN_Security</web-resource-name>
<url-pattern>/main/*</url-pattern>
<http-method>POST</http-method>
<http-method>GET</http-method>
</web-resource-collection>
<auth-constraint id="AuthConstraint_1">
<role-name>role-fn-user</role-name>
</auth-constraint>
</security-constraint>

<login-config id="LoginConfig_1">
<auth-method>FORM</auth-method>
<realm-name>dbRealm</realm-name>
<form-login-config id="FormLoginConfig_1">
<form-login-page>/login.do</form-login-page>
<form-error-page>/loginerror.do</form-error-page>
</form-login-config>
</login-config>

<security-role id="SecurityRole_1">
<role-name>role-fn-user</role-name>
</security-role>
</web-app>

and in WebLogic Server:
we have another file: weblogic.xml in which we mapp the "role-fn-user" to the group that we defined for this role?
How could we do the same in WebSphere?
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic