softlab Posted February 2, 2016 Posted February 2, 2016 Hi. I'm softlab on Johnny. My web application uses log4j to trace errors and writes them in a subfolder of the application. In the application I have a function that reads that file, but it gets always an error. How can I read that log file? Thanks
wolstech Posted February 2, 2016 Posted February 2, 2016 Check the permissions on the folder. For testing, you can CHMOD the folder to 777 using the FTP client. If you cannot see the folder (if it's inside a .war, you might not be able to), see if you can set the program to write to a log in a folder that you can access (e.g. make a folder like /home/softlab/javalogs, then have the log written there and set the permissions on that folder). If the permissions already are this way, the problem is broken code in your application, as we don't actively block the reading of any files within your account. Of course, java wars may work entirely differently than other things in your account. I'm not terribly familiar with java deployments.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now