The sun-specific deployment descriptors seem to be a bit too constrained. There
are several places where constrains are used that are not needed. Example:
- sun-ejb-jar.xml enforces the use of <ejb> while I just created that file to
add a security roles mapping. This is silly because when I add the same mapping
to sub-application.xml and just drop the sun-ejb-jar.xml, it just works. So the
system can live without <ejb>, it is just a useless constraint of the schema.
- If I noticed correctly, there is a sequence enforced on several tags. That
means, you must not write tag B before tag A, but you may write tag A before tag
B only. This makes no sense. Nobody cares about the sequence of tags but only
about the content.
What I want to suggest is to relax these constrains unless there are really
needed to express the sense of the information found in that files.