On Mon, Dec 13, 2010 at 2:07 PM, Mark Thomas <ma...@apache.org> wrote:
> On 13/12/2010 13:02, Jeremy Monnet wrote:
>> Hi,
>>
>> I try since last friday to use a context file on tomcat 7, without any 
>> success.
>>
>> I have a webapp running on an old tomcat 5.0, and i want to migrate it
>> to a brand new tomcat 7.0. The old tomcat was configured with a
>> Catalina/localhost/myapp.xml which provides a URL like
>> http://localhost:8080/myapp, for the directory webapps/MYAPP. I hav
>> been unable to obtain the same behaviour on tomcat 7. I have tried to
>> rename the file from myapp.xml to MYAPP.xml in the Catalina/localhost
>> directory, or use a context.xml file in the directory
>> webapps/MYAPP/META-INF, with no success.
>
> Assuming a clean Tomcat 7 install
unzipped the official release on AIX...

> then add the following content to
> META-INF/context.xml inside your web app:
> <?xml version='1.0' encoding='utf-8'?>
> <Context reloadable="true" allowLinking="true" />
I tried that. The URL is still upper case ?

>
> And place your webapp inside your webapps directory. The xml file will
> be read from the webapp and *will not* be copied to
> CATALINA_BASE/conf/Catalina/localhost
Yes I read that, but it doesn't matter to me where the xml is placed.
I just have a process that generate a MYAPP.war (upper case) file that
I place inside webapps/ directory, and i want the webapp to be
available on http://myserver/myapp (lower case)

>
> Note that if the dir/war is named MYAPP/MYAPP.war then the context path
> with be /MYAPP. If you want a lower case contetx path, rename dir/war to
> use lower case.
Is that new (eg older than tomcat 5.0) ? Because on tomcat 5.0, with
the myapp.xml, the name of the war was upper case, et the URL was
lower case ?

Thanks for your answer,

Jeremy

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

Reply via email to