Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to configure IntelliJ 11 + remote tomcat 6 + maven imported modules?
    primarykey
    data
    text
    <p>Here is what I have now:</p> <ul> <li>Imported multiple maven modules into IntelliJ project</li> <li>Maven targets run OK from the Maven Projects flyout - a war file is created.</li> <li>Making the project from the "Build|Make Project" is OK too. But here no war is created, just the .class files.</li> <li>Tomcat 6 running on another machine</li> <li>Manually deploying the war produced by the package maven goal to the remote tomcat works OK.</li> <li>A local tomcat 6 instance is configured as an application server. I am not going to use this instance, but the JetBrains documentation says I must have a local instance in order to have an application server configured with the IDE.</li> <li>No artifacts and no facets are configured for the IntelliJ project.</li> <li>The remote tomcat is run with <code>JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=1317,suspend=n,server=y</code></li> </ul> <p>I want to be able to debug my server in the IntelliJ. Which means, that I must have a Run configuration, which does the following:</p> <ol> <li>Produces the respective war file. Making the project does not produce any war, so it should be either modified to produce one or the war should be created as part of a Run configuration. I have no idea which one is the right way.</li> <li>Deploys or redeploys it to the remote tomcat instance.</li> <li>Lets me remotely debug the code.</li> </ol> <p>How do I do it?</p> <p><strong>EDIT</strong></p> <p>Correction. One of the projects has the Web facet automatically added to it, because IntelliJ has noticed the <code>...\src\main\webapp\WEB-INF\web.xml</code> file.</p> <p><strong>EDIT2</strong></p> <p>Here is my remote tomcat run configuration dialog:</p> <p><img src="https://i.stack.imgur.com/iHDvC.png" alt="enter image description here"></p> <p>The documentation says I should have the <strong>Perform on 'Update' action</strong> option in the dialog. Where is it?</p> <p><strong>EDIT3</strong></p> <p>I have added Spring support and Spring web services plugins to IntelliJ, since we are using them. Now IntelliJ recognized it and added the Spring facet:</p> <p><img src="https://i.stack.imgur.com/nqGoo.png" alt="enter image description here"></p> <p>However, there is still no <strong>Perform on 'Update' action</strong> option in the remote Tomcat Run Configuration dialog.</p> <p>What am I missing?</p> <p><strong>EDIT4</strong></p> <p>The mystery of a missing <strong>Perform on 'Update' action</strong> option is resolved - <a href="https://stackoverflow.com/questions/14313026/how-to-enable-the-perform-on-update-action-option-in-the-remote-tomcat-run-con">How to enable the Perform on &#39;Update&#39; action option in the remote Tomcat run configuration in IntelliJ?</a></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.
 

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