ObjectDB ObjectDB

Java EE 6 JPA Tutorial - IntelliJ Project

To open and run the Java EE 6 Web Application tutorial project in IntelliJ IDEA:

  • Define the Server:
    Select File > Settings > Application Servers.
    Add Tomcat 6 Server if not set already (Tomcat has to be downloaded separately).
  • Define Run Configuration:
    Select Run > Edit Configurations, click the + icon and select Tomcat Server > Local.
    Enter a name (e.g. Guestbook) at the top of the dialog box.
    In the Deployment tab select + > Artifact... > Guestbook:war and click OK.
    Click OK again to close the Configurations dialog box.
  • Run the project in IntelliJ IDEA:
    Select the new run configuration at the toolbar and click the green run icon (or Shift+F10).
    If the browser fails to open check the settings at File > Settings > Web Browsers.