6 Replies Latest reply on Jan 23, 2009 2:19 AM by Stuart Smith

    JBoss 5 Public XML

    Stuart Smith Newbie

      Just a few questions about the various XML DTD and schemas related to JBoss 5.

      Will the JBoss 5 DTD for datasources be posted to the following URL soon?

      http://www.jboss.org/j2ee/dtd/jboss-ds_5_0.dtd

      This file is present in the JBoss 5 GA distribution (although relatively new compared to other JBoss 5 XML files). The file itself even references the above URL but no file is at that URL.

      There also seem to be two files that could describe a jboss.xml syntax. There is jboss_5_0.dtd and jboss_5_0.xsd. I assume the DTD is the correct one as the schema is the only JBoss-specific schema, is dated from 2006, and even refers to JBoss Inc! This version is also posted to the URL mentioned in the schema file.

      I know this might seem trivial but XML tools can really do great things if the DTD or schema is available online.

      Thanks,
      Stuart

        • 1. Re: JBoss 5 Public XML
          jaikiran pai Master

           

          "stuart_wildcat" wrote:

          http://www.jboss.org/j2ee/dtd/jboss-ds_5_0.dtd

          This file is present in the JBoss 5 GA distribution (although relatively new compared to other JBoss 5 XML files). The file itself even references the above URL but no file is at that URL.


          I see what you are saying. The jboss-ds_5_0.dtd is missing from http://www.jboss.org/j2ee/dtd/

          "stuart_wildcat" wrote:

          There also seem to be two files that could describe a jboss.xml syntax. There is jboss_5_0.dtd and jboss_5_0.xsd. I assume the DTD is the correct one as the schema is the only JBoss-specific schema, is dated from 2006, and even refers to JBoss Inc! This version is also posted to the URL mentioned in the schema file.


          Sorry, i did not get this. Are you saying the jboss_5_0.dtd and jboss_5_0.xsd shipped with JBossAS do not match?


          • 2. Re: JBoss 5 Public XML
            Juergen Zimmermann Master

            See https://jira.jboss.org/jira/browse/JBAS-6114

            However, it's open since Oct. and still unassigned

            • 3. Re: JBoss 5 Public XML
              Dimitris Andreadis Master

              I've asked the website maintainer to update the dtds, so this should be handled soon. Thanks.

              • 4. Re: JBoss 5 Public XML
                Stuart Smith Newbie

                Many thanks for the follow up on the public version.

                As far as the jboss_5_0.dtd and jboss_5_0.xsd...

                In the 'dtd' folder there is jboss_5_.dtd and in the 'schema' folder there is jboss_5_0.xsd. Both appear as if they are intended to define an XML syntax for the jboss.xml descriptor that could be included in EJB modules deployed to JBoss.

                The problem of course is that only one can be used for any particular jboss.xml file to validate the syntax. The question is which one?

                In my opinion the DTD version appears to be the most up to date. Perhaps the schema version was created a long time ago when the thought was to try and move to schemas but was abandoned and never removed from the distribution.

                I figured I would ask on the forum first for clarification rather than using JIRA.

                Thanks,
                Stuart

                • 5. Re: JBoss 5 Public XML
                  jaikiran pai Master

                  From what i know, the jboss_5.0_dtd is for legacy EJB2 containers only, jboss_5_0.xsd is only for the EJB3 stuff.

                  I figured I would ask on the forum first for clarification rather than using JIRA.

                  You are at the right place :)

                  • 6. Re: JBoss 5 Public XML
                    Stuart Smith Newbie

                    I could understand this. I see the schema one does import the EJB3 schema.

                    There certainly isn't any documentation of this anywhere.

                    At the very least it would be nice if there was a date that is more recent than 2006 in the file. Other DTD/schema files tend to have some kind of date of last change and I can guarantee this file has changed since 2006 as there are several JIRA entries that mention it.