[jboss-user] [Security & JAAS/JBoss] - error when copy my-login-config-service.xml to deploy folder
duclt2002
do-not-reply at jboss.com
Wed Apr 16 07:14:49 EDT 2008
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
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144442#4144442
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144442
More information about the jboss-user
mailing list