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:
- Open the
default_master.properites
file. - 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)
- Set
encrypt=true
- Set
propsToEncrypt=dbPassword
,sysPassword - In command line go to
%JASPER_HOME%\buildomatic
- Run
js-ant refresh-config
This will replace the password value with the encrypted format. - Get the encrypted value of the dbPassword property and use that in the
context.xml
- Revert the value of the dbPassword with the PostgreSQL database password.
- Change
encrypt.done=true
toencrypt=true
- Run step 5 and 6 again to fix the PostgreSQL password.