search cancel

Cannot load Keystore error when Virtual Service is deployed to VSE


Article ID: 6104


Updated On:


CA Application Test CA Continuous Application Insight (PathFinder)


When the virtual service is created and deployed it shows error in server console inspection view and goes to ended state. Below is the stack trace:

| java.lang.RuntimeException: Cannot load keystore file named /opt/CA/DevTest/DevTest-8.4-tmpdir/lads/A79833EA041A11E7ADBE00505620D39E/Debug/keystore.jks 
| Step: Virtual HTTPS Listener 15000 
| Message: Cannot load keystore file named /opt/CA/DevTest/DevTest-8.4-tmpdir/lads/A79833EA041A11E7ADBE00505620D39E/Debug/keystore.jks 
| Trapped Exception: Cannot load keystore file named /opt/CA/DevTest/DevTest-8.4-tmpdir/lads/A79833EA041A11E7ADBE00505620D39E/Debug/keystore.jks 
| Trapped Message: java.lang.RuntimeException: Cannot load keystore file named /opt/CA/DevTest/DevTest-8.4-tmpdir/lads/A79833EA041A11E7ADBE00505620D39E/Debug/keystore.jks 
java.lang.RuntimeException: Cannot load keystore file named /opt/CA/DevTest/DevTest-8.4-tmpdir/lads/A79833EA041A11E7ADBE00505620D39E/Debug/keystore.jks 
at com.itko.lisa.utils.ssl.VSESSLContext.getSSLContext( 
at com.itko.lisa.utils.ssl.VSESSLContext.getSSLServerContext( 
at com.itko.lisa.vse.stateful.protocol.http.HttpListenStep.getSSLContext( 
at com.itko.lisa.vse.stateful.protocol.http.HttpListenStep.execute( 
at com.itko.lisa.test.TestNode.executeNode( 
at com.itko.lisa.test.TestCase.execute( 
at com.itko.lisa.test.TestCase.execute( 
at com.itko.lisa.test.TestCase.executeNextNode( 
at com.itko.lisa.test.TestCase.executeTest( 


When a virtual service is deployed from workstation, a MAR is created that includes all the artifacts used in the Virtual Service. By default all the assets used within the project folder and its sub-directories are included. If there are any assets outside the project folder, they won't be included in the MAR file.

In this case the keystore that is used during virtual service recording is referred from a location outside project folder. Hence, while the MAR file is created during virtual service deployment, the keystore file being referred in the listen step of the VSM is not included in the MAR file resulting in the error complaining about keystore location.


This is not specific to one environment. It is a functionality usage problem.


To resolve the problem, move the keystore file into project folder and refer it correctly from the listen step of the Virtual Service Model. 

Delete existing virtual service from server console and redeploy the updated Virtual Service.