IntelliJ needs to copy tomcat/conf directory to project directory

前端 未结 6 1186
面向向阳花
面向向阳花 2020-12-09 08:02

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

6条回答
  •  再見小時候
    2020-12-09 08:48

    I had the same problem and these steps helped me to Start my tomcat7 from Intellij :

    I have Linux Mint 17,and Tomcat 7 which is installed using apt-get

    CATALINA_HOME in /usr/share/tomcat7 and CATALINA_BASE in /var/lib/tomcat7

    1- First I created a soft link which references /etc/tomcat7

    cd /usr/share/tomcat7
    ln -s /etc/tomcat7 conf
    

    2- Then you have to change the access permissions of /etc/tomcat7

    sudo chmod -R 655 /etc/tomcat7/
    

    That's it.

提交回复
热议问题