[jboss-jira] [JBoss JIRA] Created: (JBCOMMON-84) JBossEntityResolver: ejb-jar 1.1 DTD mapping

Alexey Loubyansky (JIRA) jira-events at lists.jboss.org
Wed May 6 09:36:58 EDT 2009


JBossEntityResolver: ejb-jar 1.1 DTD mapping
--------------------------------------------

                 Key: JBCOMMON-84
                 URL: https://jira.jboss.org/jira/browse/JBCOMMON-84
             Project: JBoss Common
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: common-core (2.x)
    Affects Versions: 2.2.13.GA
            Reporter: Alexey Loubyansky
            Assignee: Alexey Loubyansky
             Fix For: 2.2.14.GA


Currently, JBossEntityResolver contains this line

registerEntity("-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN", "ejb-jar.dtd");

The problem is in our tests we seem to never use ejb-jar.dtd but ejb-jar_1_1.dtd. As a consequence, when parsing our EJB1.x XML, ejb-jar_1_1.dtd cannot be resolved locally and the resolver goes to the Sun's web-site. (And if we run our tests off-line, the tests will fail, that is in metadata at least).
I tried checking whether ejb-jar.dtd exists on Sun's web-site and http://java.sun.com/j2ee/dtds/ejb-jar.dtd returns "Page not found". While http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd does work.

Based on that I consider it being a bug which should be fixed by changing the mapping to 

registerEntity("-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN", "ejb-jar_1_1.dtd");

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list