websphere - CWWKE0054E error unable to open file

后端 未结 2 1544
囚心锁ツ
囚心锁ツ 2021-01-25 21:46

i am trying run the websphere liberty profile server from the command line. I am following the steps told here : https://developer.ibm.com/wasdev/downloads/liberty-profile-using

相关标签:
2条回答
  • 2021-01-25 22:25

    This error is related to the LOG_FILE environment variable that you have defined in your environment by some other program. To solve that, you have the following opions:

    • Remove LOG_FILE env variable, if it is no longer needed by your system
    • If you cant do that, override it via server.env file, that you can create in the wlp\usr\servers\serverName directory with the following content:

      LOG_FILE=console.log
      
    • As last resort (this is not recommended, will make your installation NOT SUPPORTED and in certain installations might get overwritten by updates) - modify the server.bat command line script - in the script find the following section:

      if not defined LOG_FILE (
          set X_LOG_FILE=console.log
        ) else (
          set X_LOG_FILE=!LOG_FILE!
        )
      

    And after the line set X_LOG_FILE=!LOG_FILE! just add another line that will override it with the default like this set X_LOG_FILE=console.log

    In general, I'd recommend second solution (with the server.env file), as it is the most portable and will work in any environment.

    0 讨论(0)
  • 2021-01-25 22:34

    I have the similar problem for IBM Support Assistant V5. After I deleted %LOG_FILE% from Environment Variables, it worked.

    0 讨论(0)
提交回复
热议问题