Could not find or load main class com.ca.OpenSpaceOnPremises.TakeBackupOpenSpace

book

Article ID: 224983

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager

Issue/Introduction

While following instruction for adding USS server to cluster :

On instruction:

Add a Server to the Cluster
Follow these steps:
Stop the Unified Self-Service services on node 1.
Create backup of node 1:
On Windows:
Navigate to the <uss-installation-directory>/bin folder and execute the TakeBackup.bat file.

the following error was seen:

D:\CA\Self Service\bin>TakeBackup.bat
Error: Could not find or load main class com.ca.OpenSpaceOnPremises.TakeBackupOpenSpace

Environment

Release : 17.2

Component : CA UNIFIED SELF-SERVICE FOR SERVICE MGMT

Resolution

The script TakeBackup.bat needs to point at a valid JRE or JDK to execute. If the one in your USS Tomcat folder has been removed, then it will fail. 

The file reads (for example)

SET JAVA_HOME=C:\Program Files\CA\Self Service\OSOP\tomcat-7.0.40\jre

SET PATH=C:\Program Files\CA\Self Service\OSOP\tomcat-7.0.40\jre\bin;%PATH%

Amending this to a valid JRE path will solve the problem.