Which info and what do we currently do?
The servlet context and the context path of the web application. Note that these are actual objects that get created when the web app is deployed into the web container. This is not metadata.
and what do we currently do?
Its not currenly being handled. The tomcat deployer is also still using the old mbean deployment, so deployers can't even get access to the unit attachments its using. Even getting access to the WebApplication attachment objects the deployers are using doesn't exactly allow us to get the servlet context, but its a few steps closer.
This calls for a Web/Tomcat deployers split.
Afaik Adrian mentioned this long ago,
but nothing happened, same as nothing happens with the .tld handling.
I'll see what can be done.
Can you open up a JIRA?
We have to bite the bullet and convert all of jbossweb to the MC, as it is causing problems in other areas:
Another reason is that the servlet 3.0 needs annotation scanning, so if we want it to perform, we will need to reuse the planned one-pass scanning. So this needs to be on the AS6 roadmap.