javax.faces.FacesException error after config errors - 12.1 Web Viewer
search cancel

javax.faces.FacesException error after config errors - 12.1 Web Viewer

book

Article ID: 240642

calendar_today

Updated On:

Products

Output Management Web Viewer

Issue/Introduction

After making some config changes to move to a new DB2, we're getting a JAVA error instead of the logon page. The error message displaying is javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: 'com.ca.erm.webviewer.entity.JPAResourceBean'.. class com.ca.erm.webviewer.entity.JPAResourceBean : java.lang.NumberFormatException: For input string: "om" 

I reviewed WVProfile.properties member and it looks correct to me. But, obviously something is incorrect. Uploaded screenshots and member.

Errors running ConfigTool as well.

Testing connection...

Loaded: db2jcc4.jar
Exception in thread "main" java.lang.NumberFormatException: For input string: "om"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:76)
        at java.lang.Integer.parseInt(Integer.java:592)
        at com.ca.omgmt.drascci.util.OmBinData.toBytearray(OmBinData.java:95)
        at com.ca.erm.webviewer.installer.ConfigureWV.checkDB(ConfigureWV.java:1482)
        at com.ca.erm.webviewer.installer.ConfigureWV.main(ConfigureWV.java:3990)

Environment

Release : 12.1

Component : OUTPUT MANAGEMENT WEB VIEWER FOR ALL PLATFORMS

Resolution

Largely, the errors occurred because the customer attempted to point to the new DB2 DB by editing their WVProfile.properties file parameters. Once they used the Web Viewer ConfigTool to make the parameter value changes, the problem was resolved. The bottom-line recommendation is to use the Web Viewer ConfigTool to make changes to WVProfile.properties configuration file (or the CCIClient.properties configuration file for that matter) instead of trying to edit the file.

 

Additional Information

The DB password ( PERSISTENCE.JDBCPassword) is encrypted in WVProfile.properties. While an encrypted value may be copied to a different WVProfile.properties file, only the ConfigTool can encrypt the password in the first place.