Error from 14.0 Web Viewer install; Could not create directory /${sys:CAWVHOME}/logs
search cancel

Error from 14.0 Web Viewer install; Could not create directory /${sys:CAWVHOME}/logs

book

Article ID: 380613

calendar_today

Updated On:

Products

Output Management Web Viewer

Issue/Introduction

Why is CAWVHOME not getting resolved?  .. hardcoding the path works fine but I prefer not to do that.

OFF StatusLogger Logging configured from /cai/CADeploy/webviewer/tomcat/CAWVHOME/config/log4j2.xml.                                   
ERROR StatusLogger Unable to create file ${sys:CAWVHOME}/logs/web-viewer.log                                                          
 java.io.IOException: Could not create directory /${sys:CAWVHOME}/logs                                                                
 at org.apache.logging.log4j.core.util.FileUtils.mkdir(FileUtils.java:128)                                                            
 at org.apache.logging.log4j.core.util.FileUtils.makeParentDirs(FileUtils.java:141)                                                   
 at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.jav  
a:734)                                                                                                                                
 at org.apache.logging.log4j.core.appender.rolling.RollingFileManager$RollingFileManagerFactory.createManager(RollingFileManager.jav  
a:718)                                                                                                                                

Version: 14.0.03 Build: 14.0.72 #a3712f05 2024-01-31 12:07:37

Environment

z/OS USS

Cause

The CAWVHOME variable must be defined as an environment (env:) variable and not a system (sys:) one. 

Resolution

replace ${sys:CAWVHOME} with ${env:CAWVHOME}