Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat configuration in IntelliJ IDEA

I'm using IntelliJ IDEA 11.0.2 and I have already configured tomcat instance (context.xml, server.xml, keystores, other properties files). I want to configure idea to use this tomcat server with all that settings (datasources, ssl connector) but I can't find how to do that in "Run/Debug Configurations" -> "Tomcat Server". Does anyone know how to do this "right" way without editing idea's files?

UPDATED:

Here is example of tomcat configuration in idea 11. Where could I point to use my custom server.xml, context.xml and other conf files? It doesn't use that files which are in %tomcat_home%/conf. Run/Debug Configurations

like image 662
Ivan Kaplin Avatar asked Mar 23 '12 09:03

Ivan Kaplin


People also ask

Where is config file of Tomcat?

By default, these files are located at TOMCAT-HOME/conf/server. xml and TOMCAT-HOME/conf/web.

What is the main configuration file of Tomcat?

The main Apache Tomcat configuration file is at /opt/bitnami/tomcat/conf/server. xml. Once Apache Tomcat starts, it will create several log files in the /opt/bitnami/tomcat/logs directory. The main log file is the catalina.


1 Answers

Hi you should do these steps:

Add you tomcat server "Setting" -> "Application Servers" -> "Add" -> "Tomcat Server" Then you setup your tomcat installation path. If you have your setting (datasources, ssl connector) in differend tomcat base you can set it there too. Here is example of configuration. Tomcat configuration

Setup you runner "Run/Debug Configurations" -> "Add New Configuration" -> "Tomcat Server" -> "Local" and in "Application Server" combobox select your Tomcat.

Is it ok this description for you?

like image 116
chalimartines Avatar answered Oct 04 '22 21:10

chalimartines