Hello, folks. JBoss needs better error messages for incorrect ejb-jar.xml files.
Here is the one I got:
[pre]
2002-04-09 12:01:46,077 ERROR [org.jboss.ejb.EJBDeployer] Problem loading metaData
java.lang.NullPointerException
at org.jboss.metadata.ResourceRefMetaData.importEjbJarXml(ResourceRefMetaData.java:107)
at org.jboss.metadata.BeanMetaData.importEjbJarXml(BeanMetaData.java:437)
[/pre]
Looking at the "ResourceRefMetaData" hint I found that my problem was an empty <res-auth> element (it was generated by xDoclet, and I forgot to include the res-auth tag).
How about "<res-auth> should be one of Container or Application", or something on that line? And I bet this file needs better error messages for lots of other elements.