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

Support BOM in cofiguration file(s)

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • JBossAS-4.2.2.GA, JBossAS-4.2.3.GA, JBossAS-5.0.0.GA
    • None
    • None
    • XP Pro

      As a developer I want to be able to edit the login-config.xml file (and all others) with text editors that may insert a BOM in the file to specify encoding. Currently the JBoss logic that reads/parses the login-config.xml does not support BOM(s). Rather here is the error log report if a BOM exists.

      2009-02-16 14:45:08,182 DEBUG [org.jboss.security.auth.login.XMLLoginConfigImpl] Try loading config as XML, url=file:/C:/jboss-4.2.3.GA/server/default/conf/login-config.xml

      2009-02-16 14:45:08,229 DEBUG [org.jboss.security.auth.login.XMLLoginConfigImpl] Failed to load config as XML

      org.jboss.xb.binding.JBossXBException: Failed to parse source: Content is not allowed in prolog. @ unknown[1,1]

      at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:193)

      at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:158)

      Also, since this error is reported very early in the log file, when errors caused by this are observed, it is not at all obvious that this error has already occurred. It would greatly increase developer productivity it the JBoss product can work with/without file BOMs.

              Unassigned Unassigned
              dhoffer6 David Hoffer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: