Ok, then we're going need different components.xml for JBoss 4.2 and JBoss 5.
It's actually the WarStructure that understands it. ;-)
- http://anonsvn.jboss.org/repos/jbossas/trunk/server/src/main/org/jboss/web/deployers/WARStructure.java
https://jira.jboss.org/jira/browse/JBSEAM-3579