0 Replies Latest reply on Apr 16, 2008 7:14 AM by lam tuan duc

    error when copy my-login-config-service.xml to deploy folder

    lam tuan duc Newbie

      I have my-login-config.xml in /server/default/config
      ---------------------------------------------------------------------
      <?xml version='1.0'?>
      <!DOCTYPE policy PUBLIC
      "-//JBoss//DTD JBOSS Security Config 3.0//EN"
      "http://www.jboss.org/j2ee/dtd/security_config.dtd">

      <application-policy name="example2">

      <login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
      <module-option name="dsJndiName">java:/Book</module-option>
      <module-option name="principalsQuery">
      select password from principals principalID where principalID=?</module-option>
      <module-option name="rolesQuery">
      select Role, RoleGroup from Roles where PrincipalID=?</module-option>
      </login-module>

      </application-policy>
      ---------------------------------------------------------------------
      I need to tell JBoss to load this file at startup time
      To do this, I create a JMX MBean defined in a service file my-login-config-service.xml

      <?xml version="1.0" encoding="UTF-8"?>


      my-login-config.xml
      <depends optional-attribute-name="LoginConfigService">
      jboss.security:service=XMLLoginConfig

      <depends optional-attribute-name="SecurityManagerService">
      jboss.security:service=JaasSecurityManager




      and I receive error
      Encountered "\u00ef\u00bb\u00bf<?xml" at line 1, column 1
      Was expecting one of