Jakarta ee JBOSS配置错误

Jakarta ee JBOSS配置错误,jakarta-ee,jboss,Jakarta Ee,Jboss,我试图在JBossAS7standalone.xml中添加以下安全域 <security-domain name="form-authentication" cache-type="default"> <authentication> <login-module code="Database" flag="sufficient"> <m

我试图在JBossAS7
standalone.xml中添加以下
安全域

<security-domain name="form-authentication" cache-type="default">
                <authentication>
                    <login-module code="Database" flag="sufficient">
                        <module-option name="dsJndiName" value="java:jboss/datasources/MySqlDS"/>
                        <module-option name="principalsQuery">select password from Users_Authentication where username=?</module-option>
                        <module-option name="rolesQuery">select rolename, 'Roles' from Users_Roles where username=?</module-option>
                    </login-module>
                </authentication>
</security-domain>

从Users_Authentication中选择密码,其中username=?
从username=?的Users\u Roles中选择rolename“Roles”?

但是我有以下错误:
缺少必需的属性:value
(指向第二个模块选项)。我已经尝试放置
value=”“
,但是出现了一个新的错误,指向结束标记

尝试以下
principalQuery
RoleQuery
模块选项
描述符。实际上,您需要将“选择…”放在值部分

<module-option name="principalsQuery" value="select password from Users_Authentication where username=?"/>
<module-option name="rolesQuery" value="select rolename, 'Roles' from Users_Roles where username=?"/>