title: JBoss Error in ejb-jar.xml for Message Driven Bean TextMDB: expected one res-ref-name tag
body: <p>I've copied and pasted the example ejb-jar.xml and jboss.xml file from <a href="http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch6.chapt.html#ch6.mdbejbjar.ex" rel="nofollow noreferrer">http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch6.chapt.html#ch6.mdbejbjar.ex</a> and I'm receiving the following error when JBoss attempts to deploy it:</p>
  
  <pre><code>ERROR [ScannerThread] deployment.MainDeployer (MainDeployer.java:943) - Could not create deployment: file:/...-ejb2.jar
  org.jboss.deployment.DeploymentException: Error in ejb-jar.xml for Message Driven Bean TextMDB: expected one res-ref-name tag
      at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMetaData.java:403)
      at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:151)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:506)
  </code></pre>
  
  <p>Also, I've noticed in Eclipse that the sample ejb-jar.xml file I'm using doesn't conform to it's dtd.  Is there a better sample ejb2 mdb I could look at?</p>