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"?>

      Stock EJB
      <display-name>Stock EJB</display-name>

      Stock EJB
      <display-name>Stock EJB</display-name>


        • 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"
          <ejb-jar >