> Do you have a sample application configured for servlet 2.5 and leveraging
> subcontexts at hands?
P2W sample is a servlet 3.0 *and* 2.5 play2 application.
https://github.com/dlecan/play2-war-plugin/tree/develop/sample
This is a multi-modules application :
- common => common assets
- servlet25 => servlet 2.5 specific code
- servlet30 => servlet 3.0 specific code (none actually)
> I configured it according to the wiki (with a few tweaks given the
> documentation seems to be for Play 2.0.x and the API changed in 2.1.x);
Doc will be rewrite for next release of P2W (0.9-RC2).
Work is almost done, except on "subcontext" :)
> I added this web.xml under test/war/WEB-INF, so play2war can pick it up and
> package it;
This is not necessary, P2W plugin will generate a default web.xml for you.
If you don't need to tweak it, let P2W generate it.
> but in both cases, I end up with "Action not found".
Subcontext is a Play feature, not a Play2War one.
You have to configure "application.context" key in your application.conf:
https://github.com/dlecan/play2-war-plugin/blob/develop/sample/common/conf/application.conf#L48
Damien