aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Hot Deployment in IntelliJ and Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Hot Deployment in IntelliJ and Tomcat" Watch "Hot Deployment in IntelliJ and Tomcat" New topic
Author

Hot Deployment in IntelliJ and Tomcat

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9389
    
    2

Guys,

I have a multi module Maven web application and I would like to know how I could configure my Tomcat server in IntelliJ to hot deploy the web application when I make any changes to the class files in my source folder of my Maven web application.


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9389
    
    2

What I do now is to open a command prompt (on my windows machine), locate to the project folder and do a mvn clean install -Dmaven.test.skip=true and then go to the target folder, copy the war file and paste it to the webapps directory of Tomcat and restart Tomcat.

What I want to achieve is the following:

(1) Configure Tomcat in IntelliJ and add it as a Run configuration to my project - I did this already
(2) Make any changes that I do for the class files, result in the changes to the exploded war of my webapp in the Tomcat webapps directory

I tried googling for this, but no satisfactory answers. There were ways to do this using Eclipse, but I'm astonished to see that using IntelliJ is hard.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9389
    
    2

When I tried accessing the port 8009, I got the following error:




Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9389
    
    2

Any suggestions?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Hot Deployment in IntelliJ and Tomcat