Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hot Deployment in IntelliJ and Tomcat

 
Joe Harry
Ranch Hand
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Joe Harry
Ranch Hand
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I tried accessing the port 8009, I got the following error:




 
Joe Harry
Ranch Hand
Posts: 10106
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any suggestions?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic