I did what CallmeSurge suggested, except I had to change the following:
Step 3: Create a new Tomcat Runtime Configuration
- Select the Runtime Configurations box (top right hand corner of the screen), and select Edit Configurations.
- Select the green + sign at the top left corner of the box.
- Select Tomcat (you may have to expand the box to see it)
- Give your new configuration a name
- In the Server tab, in the Application Server box, select the tomcat folder you created in steps 1 and 2.
- In the Deployment tab, select the build artifact you want to deploy. (Note: if you don't have a build artifact configured for your project, you'll have to configure one first).
- Save the new configuration.
Now, deploying to tomcat is as easy as selecting the runtime configuration you just created and hitting the Debug or Run arrows.