I installed Tomcat using this guide: https://help.ubuntu.com/13.04/serverguide/tomcat.html
When I successfully run it from the console, but when I try to run it using Intellij Idea error occurs: "Error running Tomcat : Can't find directory '/usr/share/tomcat7/conf'"
Application server configuration in Idea:
Tomcat Home: /usr/share/tomcat7 Tomcat Base: /var/lib/tomcat7
If you're not creating a new project from scratch and instead have an existing project that runs on Tomcat, you can configure IntelliJ IDEA Ultimate to connect to your existing Tomcat installation.
Finding cause. Most common issue with Tomcat note starting is that Java is not configured properly, user trying to start Tomcat does not have permissions to do so, or another program is using port 8080 on that server.
We're going to create a small web application that runs on Tomcat to demonstrate the integration in IntelliJ IDEA Ultimate: From the Welcome Screen select New Project. If you have an existing project open, click File > New.
In my case, creating a soft link and changing the access permission solved the problem
cd /usr/share/tomcat7 ln -s /etc/tomcat7 conf chmod -R 655 /etc/tomcat7/
I have replied to the similar question here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With