ClassNotFoundException when using wcc_monitor.sh to export views

Document ID : KB000016451
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

I get java ClassNotFoundException when using wcc_monitor.sh tool to export CA WCC views.

How to resolve this error?

 

Environment:
CA WCC 11.x on UNIX
Answer:

The 'root' user isn't necessary to execute the wcc_monitor.sh script, however if the WCC installation is owned by "root", then the script writes to a log file under the <WCC_path>\log\application\cli directory, so the log writing may fail.

Please verify if the script is being executed from $CA_WCC_INSTALL_LOCATION\bin directory.

The user executing the wcc_monitor.sh must be part of the "Commander" group.

Finally please check for the following file:

ls -l ${CA_WCC_INSTALL_LOCATION}/lib/Safe-*.jar

Depending on the version of WCC, it should return a Safe-8.4.xxx.jar file.
Example:
# ls -l ${CA_WCC_INSTALL_LOCATION}/lib/Safe-*.jar
-rwxrwxr-x. 1 root root 825652 May 15 2012 /opt/CA/WorkloadCC/lib/Safe-8.4.411.jar

The default is 755 for all libraries.

Ensure that the file has 665 (or 775) permissions. Change it to 777 if required and then retry the wcc_config.sh export.

If that still does not work, then please raise a case with CA Support.