Error: "HTTP 404 - /jasperserver-pro" After Starting Apache Service for JasperSoft When Configuring with LDAP Authentication

Document ID : KB000005405
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

The following error appears in jasperserver.log after configuring LDAP authentication in JasperReports and starting Apache Tomcat for JasperServer:

ERROR ContextLoader,localhost-startStop-1:331 - Context initialization failed
java.lang.RuntimeException: KeystoreManager.init was never called or there are errors instantiating an instance.
at com.jaspersoft.jasperserver.crypto.KeystoreManager.getInstance(KeystoreManager.java:186)
at com.jaspersoft.jasperserver.api.common.properties.DecryptingPropertyPlaceholderConfigurer.convertPropertyValue(DecryptingPropertyPlaceholderConfigurer.java:65)
at org.springframework.beans.factory.config.PropertyResourceConfigurer.convertProperty(PropertyResourceConfigurer.java:121)

Environment:
JasperReports 6.2JasperReports 6.3
Cause:

The application is not finding the key files (jrsks and .jrsksp) causing the issue to occur.

Resolution:

1) Stop Apache Tomcat Services for JasperReports

2) Go to Configure Tomcat (All Program > Apache Tomcat > Configure Tomcat) > Java tab

3) Add the following at the end:

-Duser.home=<home path of the user who run the js-ant gen-config command>

Example :
-Duser.home=C:\Users\Administrator

This is because the application is searching for the .jrsks and .jrsksp files located in Users\<Username>

4) Start Apache Tomcat Services and log into JasperReports using LDAP credentials

Additional Information:

Configure CABI JasperReportsĀ® Server r6.2.0 to use LDAP

https://docops.ca.com/ca-service-management/14-1/en/integrating/cabi-jasperreports-server-r6-2-0-for-ca-service-management/configure-cabi-jasperreports-server-r6-2-0-for-ca-service-management#ConfigureCABIJasperReports%C2%AEServerr6.2.0forCAServiceManagement-Step7.2(Optional):ConfigureCABIJasperReports%C2%AEServerr6.2.0touseLDAP

Ā