Failed to start WSTOMSTC as PROC - java.lang.RuntimeException: default directory must be absolute
search cancel

Failed to start WSTOMSTC as PROC - java.lang.RuntimeException: default directory must be absolute

book

Article ID: 267260

calendar_today

Updated On:

Products

Endevor

Issue/Introduction

Started Endevor Web Services WSTOMSTC as started task (PROC), ENF is unable to spawn the Endevor spawn task WSEWSSTC. 

Found following error in the WSTOMSTC log:

 SEVERE: StandardWrapper.Throwable
 java.lang.NoClassDefFoundError: java.nio.file.FileSystems$DefaultFileSystemHolder (initialization failure)
     at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:107)
     at java.nio.file.FileSystems.getDefault(FileSystems.java:187)

..

 Caused by: java.lang.RuntimeException: default directory must be absolute

Environment

Release : 18.1

Cause

WSTOMSTC log shows:

12.23.45 STC08553  IEF695I START WSTOMSTC WITH JOBNAME WSTOMSTC IS ASSIGNED TO USER WSTOMSTC, GROUP STCGROUP

INFO: Command line argument: -Duser.dir=.

WSTOMSTC proc runs under USER WSTOMSTC, '.' is the relative path (means current directory) - WSTOMSTC user does not have an absolute path to home dir (PWD) or the home dir path is invalid. 

WSTOMSTC was unable to connect to ENF due to the above error,  thus no WSEWSSTC (Endevor spawn task) got submitted by ENF.  

Resolution

Make sure WSTOMSTC user ID OMVS home dir (user.dir) is valid and have absolute path. - for example, use $TOMCAT_HOME_DIR value defined in WSTOMINS as the WSTOMSTC user ID's home dir. 

Then restart WSTOMSTC.