Generate a Ciphertext Password for the JNDI Datasource

This section describes the steps to manually generate a password and copy it to %JASPER_HOME%\apache-tomcat\webapps\jasperserver-pro\META-INF\context.xml.

To generate a ciphertext password:

  1. Open the default_master.properites file.
  2. Set the value of RiskVision Reportuser Password to the dbPassword property (dbPassword is for the PostgreSQL database but for a workaround to generate RiskVision password we can use the dbPassword temporarily)
  3. Set encrypt=true
  4. Set propsToEncrypt=dbPassword,sysPassword
  5. In command line go to %JASPER_HOME%\buildomatic
  6. Run js-ant refresh-config This will replace the password value with the encrypted format.
  7. Get the encrypted value of the dbPassword property and use that in the context.xml
  8. Revert the value of the dbPassword with the PostgreSQL database password. 
  9. Change encrypt.done=true to encrypt=true
  10. Run step 5 and 6 again to fix the PostgreSQL password.