Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>1) Producing a WAR</h2> <p>To have IntelliJ IDEA produce the war file, you need to have a 'web' facet defined for the module. </p> <ol> <li>Go to <em>File > Project Structure > Modules</em></li> <li>Select your module</li> <li>Add (via the '+' icon or Alt+Insert) a web facet. </li> <li>Configure the facet. (If you are following standards, the defaults should be OK, but check them.) </li> </ol> <p>Once you have a web facet defined, you can then define a WAR artifact. </p> <ol> <li>Go to the "Artifacts" page in the Project Structure dialog. </li> <li>You will first need to create an exploded war artifact. <ol> <li>Click the add button</li> <li>Select "Web Application: Exploded" and then "From Modules" </li> <li>In the popup, select your module. Verify that the web application artifact is correctly defined. Again, if you are following standards, the defaults should be good.</li> </ol></li> <li>Once the exploded artifact is defined, click the add artifact button again and select "Web Application: Archie", and then "For {module-name}:war exploded" (or what ever you named your exploded artifact if you did not use the default name). </li> <li>Verify the configuration.</li> </ol> <p>IDEA will now create a war file when you build.</p> <h2>2) Deploy to Remote Server</h2> <p>You can do this as part of your run/debug configuration. See next section.</p> <h2>3) Remotely Debug</h2> <p>You simply need to create a run/debug configuration to do this.</p> <ol> <li>Go to <em>Run > Edit Configurations</em> from the menu</li> <li>Click the Add Icon (or type Alt + Insert) and select Tomcat Server > Remote from the pop-up list</li> <li>Configure the run/debug settings. I recommend clicking the Help button. It will show you what the various options are. (Be sure to pay attention which are available for Local, Remote, or Both.) Take a look at the "Remote Staging" information on the Help page. Also, be sure to select the deployment tab and select the artifact you want to deploy (and specify the context path.) The Startup/Connection tab, "Debug" section will have needed debug connection information that needs to be configured on the remote Tomcat server.</li> <li>By default, "Make" should be listed in the "Before Launch" section. And once you add the artifact to be deployed, the before launch should also show that the artifact will be built. If not, add it. </li> </ol> <p>Once defined, you can execute this run/debug configuration. To debug, launch using the "debug" button or shortcut (Shift+F9). This will make your project, create the war, deploy it, and then connect the debugger. If you just want to run without debugging, click the Run button, or use the shortcut Shift+F10.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload