Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are a couple of ways to do this.</p> <p>The tomcat maven plugin <a href="http://mojo.codehaus.org/tomcat-maven-plugin/" rel="nofollow">http://mojo.codehaus.org/tomcat-maven-plugin/</a> provides you a way to deploy directly to tomcat from maven. You must have configured your tomcat users first. See <a href="http://tomcat.apache.org/tomcat-7.0-doc/config/realm.html" rel="nofollow">http://tomcat.apache.org/tomcat-7.0-doc/config/realm.html</a> for instructions on how to configure your users.</p> <p>For debugging you can start tomcat with the arguments specified at <a href="http://wiki.apache.org/tomcat/FAQ/Developing" rel="nofollow">http://wiki.apache.org/tomcat/FAQ/Developing</a></p> <p>The other way would be to configure tomcat to point to your war. See <a href="http://tomcat.apache.org/tomcat-7.0-doc/config/context.html" rel="nofollow">http://tomcat.apache.org/tomcat-7.0-doc/config/context.html</a> particularly the <strong>docbase</strong> parameter.</p> <p><strong>EDIT 1</strong> Based on the revised question http 403 is a forbidden this means you didn't authenticate correctly.</p> <p>Change your tomcat-users.xml to look as follows:</p> <p> </p> <p>You need to add a refrence to the username/password in your pom.xml. You settings.xml must contain (based on your configuration)</p> <pre><code>&lt;server&gt; &lt;id&gt;tomcat&lt;/id&gt; &lt;username&gt;admin&lt;/username&gt; &lt;password&gt;&lt;/password&gt; &lt;/server&gt; </code></pre> <p>Theres a good page <a href="http://www.avajava.com/tutorials/lessons/how-do-i-deploy-a-maven-web-application-to-tomcat.html" rel="nofollow">http://www.avajava.com/tutorials/lessons/how-do-i-deploy-a-maven-web-application-to-tomcat.html</a> that explains it more fully. However the information may be out of date.</p>
    singulars
    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. 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