Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-2336

org.jboss.mx.metadata.XMBeanEntityResolver ignores systemId

XMLWordPrintable

      The XMBeanEntityResolver completely ignores systemId and logs an error when publicId is null.

      This produces bogus errors in the console/log when trying to import external entities in the xmbean descriptor, e.g:

      <!DOCTYPE mbean PUBLIC
      "-//JBoss//DTD JBOSS XMBEAN 1.1//EN"
      "http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_1.dtd"
      [
      <!ENTITY operations SYSTEM "operations.ent">
      ]>
      <mbean>
      ...
      &operations;
      ...
      </mbean>

      The error is harmless, since the return 'null' value cause the correct lookup of the external entity.

      A workaround is to just filter out XMBeanEntityResolver errors from conf/log4j.xml:

      <category name="org.jboss.mx.metadata.XMBeanEntityResolver">
      <priority value="FATAL"/>
      </category>

              dandread1@redhat.com Dimitrios Andreadis
              dandread1@redhat.com Dimitrios Andreadis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: