I finally managed to deploy my web service on to ec2 with tomcat 7 installed. It works perfectly fine on localhost but is receiving errors on ec2. I think it is because my code generates an xml file which it then tries to parse. I think perhaps permissions need to be set on the directory so when the file is created it can be read by my code. Could anyone help me set this rule please?
Secondly, to try and diagnose this error I tried to cd into the logs directory in tomcat. I received permission denied. I tried to run chmod on the directory but I still get permission denied. Can anyone help me set this up please?
EDIT: I have been tearing my hair out over this and have ran out of stuff to try. I tried to drop the instance and make a new one so I don't think it is to do with how I created it.
EDIT 2: I have managed to get into my logs folder by doing sudo su cd logs. That solution will do for now. Would still appericiate help with the first issue.
Thanks, Matt