You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by philippe rouxel <pr...@gmail.com> on 2014/05/21 13:05:48 UTC

tomcat6 context path attribute

Hello,

I have a war app-0.0.1 with a context.xml in META-INF :

<?xml version="1.0"?>
<!DOCTYPE Context>
<Context path="/app">
</Context>

When I deploy it, in CATALINA_BASE\conf\Catalina\localhost a file
app-0.0.1.xml is created.

When I call
 localhost:8080/app I got 404
 localhost:8080/app-0.0.1 I got 200

I have try
<?xml version="1.0"?>
<!DOCTYPE Context>
<Context path="/app" docBase="../webapps/app-0.0.1.war">
</Context>
with the same result

Did i miss nothing?

I using tomcat 6.0.39

Regards

Re: tomcat6 context path attribute

Posted by Konstantin Kolinko <kn...@gmail.com>.
2014-05-21 15:05 GMT+04:00 philippe rouxel <pr...@gmail.com>:
> Hello,
>
> I have a war app-0.0.1 with a context.xml in META-INF :
>
> <?xml version="1.0"?>
> <!DOCTYPE Context>
> <Context path="/app">
> </Context>
>
> When I deploy it, in CATALINA_BASE\conf\Catalina\localhost a file
> app-0.0.1.xml is created.
>
> When I call
>  localhost:8080/app I got 404
>  localhost:8080/app-0.0.1 I got 200
>
> I have try
> <?xml version="1.0"?>
> <!DOCTYPE Context>
> <Context path="/app" docBase="../webapps/app-0.0.1.war">
> </Context>
> with the same result
>
> Did i miss nothing?
>
> I using tomcat 6.0.39

Read Configuration Reference Guide. The "path" attribute is described there.
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

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