IntelliJ needs to copy tomcat/conf directory to project directory

Hrishikesh Choudhari picture Hrishikesh Choudhari · May 7, 2013 · Viewed 34.7k times · Source

I have a freshly installed Tomcat 7 server, and I'm trying to make IntelliJ deploy a HelloWorld Spring MVC app to Tomcat.

My Tomcat home is /usr/share/tomcat7 and Tomcat base is /var/lib/tomcat7

However, when I try to run the project, IntelliJ throws an error saying:

Error running Tomcat : Error copying configuration files from /var/lib/tomcat7/conf to /home/adonis/.IntelliJIdea12/system/tomcat/Tomcat__SpringMVCApp/conf : /var/lib/tomcat7/conf/tomcat-users.xml (Permission denied)

Here is a screenshot - http://i.imgur.com/CQ3z0e1.png

Any permissions I need to set up?

Answer

Rodrigo Hime picture Rodrigo Hime · Aug 27, 2014

Try chmod -R 777 /var/lib/tomcat7/conf/, it works to me.