"Error 500: java.lang.IllegalStateException: Nonce value is not set"" Web Viewer 12.1 Build 238
search cancel

"Error 500: java.lang.IllegalStateException: Nonce value is not set"" Web Viewer 12.1 Build 238

book

Article ID: 271701

calendar_today

Updated On:

Products

Output Management Web Viewer

Issue/Introduction

Testing newest build 238 on one of our sandboxes (WebSphere server) 

Update was made as usual: 

  1. OMVS Installation to get ear file
  2. Installation from WAS console 

After updating ear file in WAS console, instead of logon screen I get error message:
Error 500: java.lang.IllegalStateException: Nonce value is not set.

All standard troubleshooting methods failed: recycle WAS task, delete cookies etc. 
Downloaded build 237 and everything worked perfectly fine.

Environment

  • Output Management Web Viewer 12.1
  • IBM WebSphere Application Server

Cause

This is a known issue with 12.1.6.238 Web Viewer and WebSphere

Resolution

To resolve the WebSphere IBM issue for LU10338 Enable Content Security Policy (CSP) by default for Web Viewer 12.1

There is a WebSphere Server custom property that needs to be set in order for the server to recognize the filters that were added to web.xml for the CSP changes.  

Perform the following for all of your WebSphere servers to resolve this IBM issue:

  1. From the WebSphere Integrated Solutions Console go to: Servers->Server Types-><server>->Web Container->Custom Properties
  2. If it does not already exist, add:
    Name:  com.ibm.ws.webcontainer.mapFiltersToAsterisk
    Value:  true
  3. Restart the Web Viewer 12.1 application.

The application should now work as expected.

Additional Information

The documented information on this IBM fix:

This IBM technote: PK57083: FILTER MAPPINGS OF AN ASTERISK BEHAVES DIFFERENTLY THAN THE SERVLET MAPPINGS OF THE SAME. states the original (and still default) WAS behavior for filter mapping value '*' does not align with general "expectations".

IBM supports a WebContainer custom property to enable the expected behavior: com.ibm.ws.webcontainer.mapFiltersToAsterisk