Login page is getting reloaded

After entering credentials on the login page and clicking on "Login", the page reloads instead of logging the user in. Internet Explorer shows a small exclamation mark icon indicating there were errors on the page.

Symptoms

The login page does not fully render or redirects to itself and there is an IE exclamation point icon at the lower left hand corner of the screen, which when clicked, shows multiple missing JS and JSP files. When attempting to directly access JS files from the browser, the user is directed back to the login page, which can be partially rendered.

If the IE exclamation point is clicked the following (or similar) JavaScript errors are displayed in a window:

Message: Syntax error
Line: 22
Char: 5
Code: 0
URI: http://appsvr.domain.com:7507/utils/enterLogin.jsp

Message: Syntax error
Line: 22
Char: 5
Code: 0
URI: http://appsvr.domain.com:7507/utils/enterLogin.jsp

Message: Syntax error
Line: 22
Char: 5
Code: 0
URI: http://appsvr.domain.com:7507/utils/enterLogin.jsp

Message: 'is_minor' is undefined
Line: 193
Char: 1
Code: 0
URI: http://appsvr.domain.com:7507/utils/enterLogin.jsp

Message: 'bLoginAllowed' is undefined
Line: 213
Char: 1
Code: 0
URI: http://appsvr.domain.com:7507/utils/enterLogin.jsp

Message: 'dojo' is undefined
Line: 224
Char: 5
Code: 0
URI: http://appsvr.domain.com:7507/utils/enterLogin.jsp

Message: Object expected
Line: 144
Char: 2
Code: 0
URI: http://appsvr.domain.com:7507/utils/enterLogin.jsp

Causes

Certain enabled WebSphere Application Server security settings can cause this behavior.

Diagnosing the problem

Enter the application server's WebSphere Application Server Admin console and check whether either of the following settings are enabled (checked):
  1. Application servers > pimAppSvr_* > Security > Security domain > Application security > Enable application security
  2. Security > Global security > Custom properties > com.ibm.ws.security.addHttpOnlyAttributeToCookies

Resolving the problem

Try changing one or more settings under "Diagnosing the problem" to be unavailable (cleared), save in the console and then restart the application cleanly.