Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I configure an additional context path for Maven-Tomcat plugin?
    primarykey
    data
    text
    <p>I'm using Maven 3.0.3 with the Tomcat plugin. Using Maven and Tomcat, I would like to deploy an embedded instance of the site. My question is how do I configure an additional context path in my embedded Tomcat server? Below is my Tomcat configuration, but either my "" specification is invalid or the contents of that file (below) are invalid …</p> <pre><code>&lt;Context path="/all-new-jx-web" docBase="/Users/davea/Documents/workspace/NissanUSA2/Technology/nna/mycousa/jx/target/web"&gt; </code></pre> <p></p> <p>because when I invoke </p> <pre><code>mvn clean -Dmaven.test.skip=true verify -Ptomcat tomcat:run </code></pre> <p>, none of the URLs mapped to "/all-new-jx-web" (my additional context path) are getting mapped (assets aren't being served by Tomcat) . Any ideas why? Below is my tomcat profile from my pom.xml file …</p> <pre><code> &lt;profile&gt; &lt;id&gt;tomcat&lt;/id&gt; &lt;build&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;tomcat-maven-plugin&lt;/artifactId&gt; &lt;version&gt;1.1&lt;/version&gt; &lt;configuration&gt; &lt;contextFile&gt;config/tomcat/context.xml&lt;/contextFile&gt; &lt;mode&gt;context&lt;/mode&gt; &lt;addContextWarDependencies&gt;true&lt;/addContextWarDependencies&gt; &lt;charset&gt;UTF-8&lt;/charset&gt; &lt;path&gt;/all-new-jx&lt;/path&gt; &lt;update&gt;true&lt;/update&gt; &lt;warDirectory&gt;target/${project.artifactId}-${project.version}.${project.packaging}&lt;/warDirectory&gt; &lt;systemProperties&gt; &lt;JAVA_OPTS&gt;-Xms256m -Xmx512m -XX:MaxPermSize=256m -XX:NewRatio=6 -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -verbose:gc"&lt;/JAVA_OPTS&gt; &lt;/systemProperties&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;/profile&gt; </code></pre> <p>Thanks for any solutions and additional troubleshooting steps, - Dave</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.
 

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