Bug 53553 - [PATCH] Deploy uploaded WAR with context.xml from server
Summary: [PATCH] Deploy uploaded WAR with context.xml from server
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Manager (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement with 1 vote (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-16 21:31 UTC by Anton Lindström
Modified: 2018-11-15 15:05 UTC (History)
0 users



Attachments
Feature: Deploy uploaded WAR with local context descriptor (3.78 KB, patch)
2012-07-16 21:31 UTC, Anton Lindström
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. 


Example:

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