Bug 53553

Summary: [PATCH] Deploy uploaded WAR with context.xml from server
Product: Tomcat 7 Reporter: Anton Lindström <carlantonlindstrom>
Component: ManagerAssignee: Tomcat Developers Mailing List <dev>
Severity: enhancement    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Feature: Deploy uploaded WAR with local context descriptor

Description Anton Lindström 2012-07-16 21:31:09 UTC
Created attachment 29068 [details]
Feature: Deploy uploaded WAR with local context descriptor

With this patch it’s possible to specify a local context.xml when uploading a WAR. 


Deploy application.war on /app using the context descriptor
/path/to/app-context.xml on the server:

$ curl --upload-file application.war 'http://localhost:8080/manager/text/deploy?path=/app&config=/path/to/app-context.xml'

Tomcat manager can already deploy a local WAR and a local context.xml, but we
needed to upload the WAR from our CI-server. This way we can separate environment
specific / sensitive settings (database config etc.) from the build server.
Comment 1 Mark Thomas 2018-11-15 15:05:12 UTC
Sorry it took so long to get to this.

Many thanks for the patch. It applied fairly cleanly with only a few small changes required due to the passage of time.

Fixed in:
- trunk for 9.0.14 onwards