Skip to content

Edit configurations in Intellij

Manal Jain edited this page Jun 20, 2023 · 1 revision

Go to the file, invalidate caches, check all the checkboxes and invalidate caches

Make sure intellij can access tomcat folder by typing following command in terminal :

sudo chmod -R 777 /opt/tomcat

Now add configuration for tomcat in Intellij :

Screenshot from 2023-05-29 14-36-59

  • In the above drop down, go to edit configurations (Top right of screen).
  • Go to add configuration by clicking on + button on top left of screen and add tomcat local server.
  • Name it anything eg. Jaltantra
  • Now go to configure in the application server section.
  • For tomcat home select /opt/tomcat as indicated in below image
  • For tomcat base select /opt/tomcat as indicated in below image

Screenshot from 2023-05-16 22-22-44

  • Now in url section write : localhost:8090/jaltantra_loop
  • In port section write 8090, Tomcat runs on 8080, so pick any other valid port.

Screenshot from 2023-05-16 22-24-21

  • Now in the Before Launch section click on +, select build artifacts and select Jaltantra(refer to below image).
  • Click on ok and go to edit configuration again and select JalTantra.

Screenshot from 2023-05-16 22-24-36 1)

  • Go to Deployment section, click on + button and select Jaltantra.
  • In application context tab write : /jaltantra_loop. (Refer to below images)

Screenshot from 2023-05-29 14-44-24