ZENworks Reporting 5 (Jasper) does not allow blank password for SMTP during Install

  • 7014545
  • 11-Feb-2014
  • 15-Aug-2014

Environment

Novell ZENworks Configuration Management 11.2
Novell ZENworks Configuration Management 11.3

Situation

The installer for the reporting server will not allow for a blank password in the SMTP field.

Resolution

Workaround:

Note:  this will work only if the SMTP does not require authentications

  1. While installing, select configure SMTP settings later
  2. Once installation is done, stop ZEN Reporting Server
  3. Make changes in below file:
    Open : js.quartz.proprties from %ZRS_HOME%\js\apache-tomcat\webapps\jasperserver-pro\WEB-INF
    Give details for below:
    report.scheduler.mail.sender.host
    report.scheduler.mail.sender.port
    report.scheduler.mail.sender.username (eg: user@novell.com)
    report.scheduler.mail.sender.from
    report.scheduler.mail.sender.protocol (smtp)
  4. Save and close js.quartz.proprties.
  5. Open applicationContext-report-scheduling.xml from %ZRS_HOME%\js\apache-tomcat\webapps\jasperserver-pro\WEB-INF
  6. search for <prop key="mail.smtp.auth"> and change value from true to false
  7. Note:
    report.scheduler.mail.sender.username=
    report.scheduler.mail.sender.password=
    will be ignored if the setting in step 6 is set.  
  8. Save and close applicationContext-report-scheduling.xml
  9. Start ZEN Reporting Server
  10. Schedule a report
If the below error is seen for ssl, then do the following:

Modify applicationContext-report-scheduling.xml

to change

<prop key="mail.smtp.starttls.enable">true</prop>

to

<prop key="mail.smtp.starttls.enable">false</prop>


014-03-25 16:57:49,724 ERROR ReportExecutionJob,quartzScheduler_Worker-1:306 -
 javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target. Failed messages:
javax.mail.MessagingException: Can't send command to SMTP host;
  nested exception is:
 javax.net.ssl.SSLHandshakeEx

Status

Reported to Engineering