Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run Tomcat from Intellij Idea

Tags:

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 
like image 431
user1691070 Avatar asked Aug 14 '13 21:08

user1691070


People also ask

Does Tomcat work with IntelliJ?

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.

Why is my Tomcat not starting?

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.

Does IntelliJ have embedded Tomcat?

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.


1 Answers

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

like image 119
Kayvan Tehrani Avatar answered Sep 19 '22 14:09

Kayvan Tehrani