Cargo

Add support for Tomcat's META-INF/context.xml

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.1
  • Fix Version/s: 0.2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

There are 2 levels of support to add:

1/ In the WAR deployable, calling getContext() should return the context defined in META-INF/context.xml (if this file exists)

2/ It should possible to deploy WARs containing META-INF/context.xml files (i.e. Cargo should not create a Context definition if there's a META-INF/context.xml file present in the WAR).

Activity

Hide
Vincent Massol added a comment -

Done. BTW, it seems this feature is only supported by Tomcat 5.x even though I've found an article on the web mentionning it works for Tomcat 4.x (let me know if it does work with Tomcat 4.x somehow - I haven't been able to make it work).

Also, it seems this feature only works in WAR files and not in expanded WAR directories.

Show
Vincent Massol added a comment - Done. BTW, it seems this feature is only supported by Tomcat 5.x even though I've found an article on the web mentionning it works for Tomcat 4.x (let me know if it does work with Tomcat 4.x somehow - I haven't been able to make it work). Also, it seems this feature only works in WAR files and not in expanded WAR directories.
Hide
Matt Raible added a comment -

AFAIK, it works for Tomcat 4.1.x if you use the Manager app to deploy your WAR - or you use Tomcat's Ant Tasks - which talk to the manager app.

Show
Matt Raible added a comment - AFAIK, it works for Tomcat 4.1.x if you use the Manager app to deploy your WAR - or you use Tomcat's Ant Tasks - which talk to the manager app.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: