Thank you Olaf! 777 was given as last resort to see if this is really file permissions issue.
Because of copy/paste and renaming to a dummy folder name, there was an extra space so please ignore. testuser is not an actual user but a repository for web files so tomcat user can access it. The reason why we did not keep www files in %tomcat% because during upgrades it gets wiped. Regards, Usha Customer Support Engineer [email protected] Captivate. Engage. On Tue, Apr 17, 2018 at 3:53 AM, Olaf Kock <[email protected]> wrote: > On 16.04.2018 22:06, Support wrote: > >> SEVERE: Error initializing static Resources >> >> java.lang.IllegalArgumentException: Document base >> /home/testuser/resources/Raptor >> does not exist or is not a readable directory >> > > A few things are slightly off of my expectations: > > But if you see below folder/permissions even after 777 it still says not a >> readable directory. >> > > it's quite bad practice to open up to 777 > > drwxr-xr-x. 4 root root 35 Apr 16 14:45 /home/ >> drwxrwxrwx. 3 root tomcat 23 Apr 16 13:26 /home/testuser >> drwxrwxrwx. 3 root tomcat 20 Apr 16 13:26 /home/ testuser/resources/ >> drwxrwxrwx. 7 root tomcat 170 Apr 16 13:27 /home/testuser >> /resources/Raptor/ >> > > If I change the document base to /user/share/tomcat/webapps this error goes >> > away. > > * There are weird spaces in the /home/ directories - I'm assuming this > comes from copy/paste and you rather mean those directories without the > spaces. But there's a small chance that you're hiding issues through > copy/paste/anonymize > * commonly, a directory /home/testuser would belong to a user named > "testuser", not to root. Is there a reason why it should be owned by root? > Is "testuser" an actual user account? > * What is the user account that tomcat is running under? What are the > permissions/owner on /usr/share/tomcat/webapps ? (note /usr/ vs /user/ - I > assume a typo in your statement) > > Olaf > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
