1 Reply Latest reply on Nov 10, 2004 10:28 AM by Scott Stark

    Help with ejb-jar.xml

    hoque ali Newbie

      Can somebody please tell me what is wrong with my ejb-jar.xml file.
      When I deploy my application JBoss throws the following error “Deployment FAILED reason: ejb-jar.xml must either obey the right xml schema or define a valid DOCTYPE! “

      And here is the ebj-jar.xml file.

      <?xml version="1.0" encoding="UTF-8"?>

      <ejb-jar>
      Stock EJB
      <display-name>Stock EJB</display-name>
      <enterprise-beans>

      Stock EJB
      <display-name>Stock EJB</display-name>
      <ejb-name>Stock</ejb-name>
      lum.stock.ejb.interfaces.StockHome
      lum.stock.ejb.interfaces.Stock
      <ejb-class>lum.stock.ejb.bean.StockBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>

      </enterprise-beans>
      </ejb-jar>

        • 1. Re: Help with ejb-jar.xml
          Scott Stark Master

          Follow the error message and add a DOCTYPE for the ejb-jar.xml descriptor:

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE ejb-jar PUBLIC
           "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
           "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
          ...
          <ejb-jar >