0 Replies Latest reply on Apr 9, 2002 11:09 AM by pazu

    Better error messages for ejb-jar.xml verification


      Hello, folks. JBoss needs better error messages for incorrect ejb-jar.xml files.

      Here is the one I got:
      2002-04-09 12:01:46,077 ERROR [org.jboss.ejb.EJBDeployer] Problem loading metaData
      at org.jboss.metadata.ResourceRefMetaData.importEjbJarXml(ResourceRefMetaData.java:107)
      at org.jboss.metadata.BeanMetaData.importEjbJarXml(BeanMetaData.java:437)
      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.