I am trying to view log4j files for the WARs that I deployed on Websphere. My Websphere is in a docker container with Ubuntu base image. I gave the -Dlogs-path=/home/agilisserver in my JVM arguments on the Admin console. But I cannot see the logs in the specified location. In fact, the folder agilisserver itself is not getting created in /home directory. Somehow I see the logs on a Windows system, but not on Linux (Ubuntu). Please help.
            Asked
            
        
        
            Active
            
        
            Viewed 81 times
        
    0
            
            
        - 
                    Websphere is running under `root` user, `agilisserver` user or what? – Nikolai Shevchenko Mar 28 '18 at 15:45
 - 
                    solved. thank you :) – Nandita Dube Mar 29 '18 at 05:14
 - 
                    then you can post the solution, maybe it would be useful for somebody – Nikolai Shevchenko Mar 29 '18 at 05:15
 - 
                    I added 'USER root' in my Dockerfile and rebuilt the image :) – Nandita Dube Mar 29 '18 at 05:29