Getting the error, Could not initialize class com.itko.lisa.utils.ssl.VSESSLContext, when deploying an HTTPS VSM
search cancel

Getting the error, Could not initialize class com.itko.lisa.utils.ssl.VSESSLContext, when deploying an HTTPS VSM

book

Article ID: 93009

calendar_today

Updated On:

Products

CA Application Test CA Continuous Application Insight (PathFinder) Service Virtualization

Issue/Introduction

After enabling 'Use SSL to client' in the VSM and deploying it to the VSE, the VSM stops with the following exceptions:
 

============================================================================
| java.lang.NoClassDefFoundError: Could not initialize class com.itko.lisa.utils.ssl.VSESSLContext
============================================================================
| Step: Virtual HTTPS Listener
----------------------------------------------------------------------------
| Message: Could not initialize class com.itko.lisa.utils.ssl.VSESSLContext
----------------------------------------------------------------------------
| Trapped Exception: Could not initialize class com.itko.lisa.utils.ssl.VSESSLContext
| Trapped Message: java.lang.NoClassDefFoundError: Could not initialize class com.itko.lisa.utils.ssl.VSESSLContext
----------------------------------------------------------------------------
STACK TRACE java.lang.NoClassDefFoundError: Could not initialize class com.itko.lisa.utils.ssl.VSESSLContext
at com.itko.lisa.vse.stateful.protocol.http.HttpListenStep.getSSLContext(HttpListenStep.java:627)
at com.itko.lisa.vse.stateful.protocol.http.HttpListenStep.execute(HttpListenStep.java:462)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:984)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1297)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1198)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1183)
at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1124)
at com.itko.lisa.coordinator.Instance.run(Instance.java:208)
============================================================================

Environment

All supported DevTest releases.

Cause

When one of the SSL properties is not properly set in the properties files it can cause the VSE to have issues initializing the SSLContext class.

The issue can also happen if there are any corrupted files in vseDeploy/VSE_2013 folder.

Resolution

1. Open the local.properties file and search for SSL properties enabled.
Verify if the path and password, for the keystores provided are correct.



ssl.server.cert.path=C:/mycertpath/keystore.jks
ssl.server.cert.pass=passphrase
 


uncomment  the properties, restart the VSE and try deploying the HTTPS VSM.

Additional Information

For more information regarding the SSL properties, please refer to section "Local Properties File" then choose the "SSL Properties" link in the documentation of the DevTest release you are running.