This content has been marked as final. Show 2 replies
A common problem I see again and again is when people miss-spell the filenames of artifacts that live in the META-INF and WEB-INF directories of a JEE archive. I also see people (myself included) putting these artifacts in the wrong location, For example, putting an artifact in the META-INF that belongs in the WEB-INF. This can cause a big headache as it looks like you have created the right artifact, but it is not taking effect. It would be great if we could detect this type of thing and warn the developer at deploy time. There seems to be a move towards using marker files (beans.xml, faces-config.xml) to enable technologies, so this issue could become more prevalent.
One solution, I was thinking about was to check the schema type of all the XML files in the META-INF and WEB-INF directories. For each schema that we recognize (http://java.sun.com/xml/ns/persistence for example), we check that it's file name is correct and it is in a location where it will be processed.
Does this make sense? Should I create a JIRA for this?