After reading that I shouldn't set the context in server.xml, I tried creating META-INF/context.xml. The Resource definitions are read ok but the path attribute is ignored.
<Context path="/webapps/uebersetzung" docBase="UebersetzungWeb">
<Resource ....
</Context>
The war file is UebersetzungWeb and I want to set the context path to webapps/uebersetzung. (I am migrating a WebSphere app and the context path is hard-coded in many places)
So far, the only way I found to do this is to rename the war to webapps#uebersetzung before deployment.
Is this the correct way?