2

I'm installing Artifactory (http://www.jfrog.com/products.php) under a default tomcat installation (ubuntu server distribution). I create a /etc/tomcat6/Catalina/localhost/artifactory.xml file with the following contents:

<Context path="/maven" docBase="${artifactory.home}/webapps/artifactory.war" debug="0">
    <Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/>
</Context>

I want artifactory to be served under http://serverhostname:8080/maven , but it gets served under http://serverhostname:8080/artifactory instead. Any clues?

roirodriguez
  • 1,685
  • 2
  • 17
  • 31
  • 1
    Related question: http://stackoverflow.com/questions/7276989/howto-set-the-context-path-of-a-web-application-in-tomcat-7-0 – Bruno Medeiros Nov 30 '12 at 21:31

1 Answers1

3

The Context docs state that the base name of the file will be used so it's likely that the path attribute is simply ignored.

kschneid
  • 5,626
  • 23
  • 31
  • Yes, i've found this during the weekend... Thanks! – roirodriguez Jul 11 '11 at 07:22
  • 1
    @kschneid: I found [bug#46713](https://issues.apache.org/bugzilla/show_bug.cgi?id=46713) referring the same problem. Any workaround for this? E.g. I would like to package `context.xml` to application and deploy the WAR to a certain application context path... – dma_k Dec 08 '11 at 17:25