You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/08/14 17:49:28 UTC

[Bug 53719] New: Path in /META-INF/Context.xml not getting used

https://issues.apache.org/bugzilla/show_bug.cgi?id=53719

          Priority: P2
            Bug ID: 53719
          Assignee: dev@tomcat.apache.org
           Summary: Path in /META-INF/Context.xml not getting used
          Severity: major
    Classification: Unclassified
          Reporter: patrick.barry@cnoinc.com
          Hardware: Macintosh
            Status: NEW
           Version: 7.0.29
         Component: Catalina
           Product: Tomcat 7

I am trying to set the context root of our webapp, to be "myapp", however, the
name of the war file dropped into the webapps directory, is myapp-1.0.4.war.  I
read that if I provided a context.xml file under /META-INF of my war, then I
could specify the path and that should be used instead of the war name.
However, that is not happening.  I have tried with Tomcat's base install, and
then I also set deployXML="true" as well as copyXML="true" on the host as well.
None of it had an impact. 

my context.xml..
<Context path="/myapp" docBase="webapps/myapp-1.0.4.war"/> 

I also tried:
<Context path="/myapp" docBase="webapps/myapp-1.0.4"/>

When I drop myapp-1.0.4.war into /webapps, it is deployed, however I have to
acces it via localhost:8080/myapp-1.0.4

After deployment, I see /conf/Catalina/localhost/who-1.0.4.xml get created.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 53719] Path in /META-INF/Context.xml not getting used

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53719

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID
                 OS|                            |All

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Working as designed.

Bugzilla is not a support forum. Please use the users mailing list.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 53719] Path in /META-INF/Context.xml not getting used

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53719

--- Comment #2 from Chuck Caldarale <ch...@unisys.com> ---
Bugzilla is not a support forum.  Please post you query on the Tomcat users'
mailing list.  Also, make sure you read the documentation on the <Context>
element first, especially the sections about when the path attribute is allowed
(rarely):

http://tomcat.apache.org/tomcat-7.0-doc/config/context.html

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org