OrientDB service fails to start after clean install of CA TDM Portal - "error finding main method in class"
search cancel

OrientDB service fails to start after clean install of CA TDM Portal - "error finding main method in class"

book

Article ID: 221912

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

 

After trying to make our new java plugin for encryption keys work with this latest version, a clean installation of the CA TDM portal was required. But now the OrientDB service fails to start and always gives this error:

INFO|wrapper|21-08-05 13:38:59|start delay: 0
INFO|wrapper|21-08-05 13:38:59|started process with pid 4468
INFO|4468/0|21-08-05 13:38:59|error finding main method in class: com.orientechnologies.orient.server.OServerMain : com.orientechnologies.orient.server.OServerMain
INFO|4468/0|21-08-05 13:38:59|java.lang.ClassNotFoundException: com.orientechnologies.orient.server.OServerMain
INFO|4468/0|21-08-05 13:38:59|no java main method found -> aborting
INFO|4468/0|21-08-05 13:38:59| at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
INFO|4468/0|21-08-05 13:38:59| at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
INFO|4468/0|21-08-05 13:38:59| at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
INFO|4468/0|21-08-05 13:38:59| at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
INFO|4468/0|21-08-05 13:38:59| at org.rzo.yajsw.app.WrapperManagerImpl.init(WrapperManagerImpl.java:335)
INFO|4468/0|21-08-05 13:38:59| at org.rzo.yajsw.app.WrapperManagerProxy.getWrapperManager(WrapperManagerProxy.java:53)
INFO|4468/0|21-08-05 13:38:59| at org.rzo.yajsw.app.AbstractWrapperJVMMain$1.run(AbstractWrapperJVMMain.java:65)
INFO|4468/0|21-08-05 13:38:59| at java.security.AccessController.doPrivileged(Native Method)
INFO|4468/0|21-08-05 13:38:59| at org.rzo.yajsw.app.AbstractWrapperJVMMain.preExecute(AbstractWrapperJVMMain.java:57)
INFO|4468/0|21-08-05 13:38:59| at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:41)
INFO|wrapper|21-08-05 13:39:00|restart process due to default exit code rule
INFO|wrapper|21-08-05 13:39:00|restart internal RUNNING controller killed restart handler
INFO|wrapper|21-08-05 13:39:00|stopping process with pid/timeout 4468 315000
INFO|wrapper|21-08-05 13:39:01|process exit code: 999

 

Environment

 

TDM Portal 4.9.1+

Cause

 

The client had manually set system environment variables on the target machine.
The system environment variables had path statements with incorrect case.

Currently, TDM uses a third-party application; a yajsw wrapper that is case sensitive.

Resolution


Because this is a thrid-party application, TDM is not able to control this behavior. When making changes to the default locations, make sure that the system environment variables are created by the installer. When making manual changes to the system environment variables, make sure that the changes use the correct case.

Additional Information

 

Examples of custom changes to the TDM environment varibales, causing the OrientDB service to fail to start

CATDMWEB_HOME: D:\APPS\CA\CA Test Data Manager Portal\
ORIENTDB_HOME: D:\APPS\CA\CA Test Data Manager Portal\orientdb\

- Service OrientDB OK
CATDMWEB_HOME: D:\Apps\CA\CA Test Data Manager Portal\
ORIENTDB_HOME: D:\Apps\CA\CA Test Data Manager Portal\orientdb\

NOTE: in TDM 4.10, and above, the ending \ MUST be removed  from the CATDMWEB_HOME to have orientDB start

In TDM 4.10 and above, the default variable settings:

CATDMWEB_APPDATA     C:\ProgramData\CA\CA Test Data Manager Portal
CATDMWEB_HOME          C:\Program Files|CA\CA Test Data Manager Portal
ORIENTDB_HOME            C:\Program Files|CA\CA Test Data Manager Portal\orientdb\
TDM_HOME                       C:\Program Files|CA\CA Test Data Manager Portal
TDM_PORTAL_URL           https://<hostname>:8443