0 Replies Latest reply on Mar 1, 2006 7:11 PM by Ted Yu

    cannot parse login-config.xml

    Ted Yu Newbie

      I am using JBoss 4.0.3SP1 on Linux.
      I got:
      2006-03-01 15:57:14,932 WARN [org.jboss.security.auth.login.XMLLoginConfigImpl]
      End loadConfig, failed to load config: file:/opt/c1/tiamat/deploy/servers/jboss
      -4.0.3SP1/server/default/conf/login-config.xml
      org.jboss.security.auth.login.ParseException: Encountered "<?xml" at line 1, col
      umn 1.
      Was expecting one of:

      ...

      at org.jboss.security.auth.login.SunConfigParser.generateParseException(
      SunConfigParser.java:395)
      at org.jboss.security.auth.login.SunConfigParser.jj_consume_token(SunCon
      figParser.java:333)
      at org.jboss.security.auth.login.SunConfigParser.config(SunConfigParser.
      java:98)
      at org.jboss.security.auth.login.SunConfigParser.parse(SunConfigParser.j
      ava:57)
      at org.jboss.security.auth.login.SunConfigParser.doParse(SunConfigParser
      .java:79)
      at org.jboss.security.auth.login.XMLLoginConfigImpl.loadSunConfig(XMLLog
      inConfigImpl.java:294)

      But login-config.xml seems to be normal:

      <?xml version='1.0'?>
      <!DOCTYPE policy PUBLIC
      "-//JBoss//DTD JBOSS Security Config 3.0//EN"
      "http://www.jboss.org/j2ee/dtd/security_config.dtd">