search cancel

wcc_config gives "java.io.FileNotFoundException: ..\..\wcc\log\application\cli\wcc_config.log (Access is denied)"

book

Article ID: 228551

calendar_today

Updated On:

Products

CA Workload Automation AE - Scheduler (AutoSys)

Issue/Introduction

When running following wcc_config command, I get following error message

wcc_config -u ejmcommander -p ejmcommander --dsiplaydb
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: ..\..\wcc\log\application\cli\wcc_config.log (Access is denied)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:133)
        at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
        at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
        at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
        at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
        at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842)
        at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
        at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:395)
        at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:403)
        at com.ca.wcc.config.command.cli.ConfigurationCommand.main(Unknown Source)
E190650 - Command Line error: Invalid syntax or unrecognized option  --dsiplaydb

Environment

Release : 12.0

Component :

Resolution

Run the command prompt "run as administrator".
This will give you authorization to write into ..\..\wcc\log\application\cli directory when executing wcc_config utility.