Hello,
i have built an ear to try and learn how to use jboss.
currently it executes sql and stored procedure calls to an ingres database.
Everything works ok till i try to use form based security and then i get
10:40:10,250 ERROR [AbstractPasswordCredentialLoginModule] The ConnectionManager mbean: jboss.jca:service=XaTxCM,name=IngresDS specified in a ConfiguredIdentity
LoginModule could not be found. ConnectionFactory will be unusable!
have i missed something?
am i using the wrong name to reference it?
also i would expect the login page to display and it doesn't.
can anyone point out what i have done wrong/not done.
cheers
in the server\default directory in ingres-ds.xml
i added
<security-domain>IngresDbRealm</security-domain>
in server\conf\login-config.xml i added
<application-policy name = "IngresDbRealm">
<login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule"
flag = "required">
<module-option name = "principal">myname</module-option>
<module-option name = "userName">myname</module-option>
<module-option name = "password">mypass</module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:service=XaTxCM,name=IngresDS</module-option>
</login-module>
</application-policy>
i have added to the web.xml in the ear file
<security-constraint>
<web-resource-collection>
<web-resource-name>Admin pages</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>myGroup</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/example3/login.jsp</form-login-page>
<form-error-page>/example3/login_error.html</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>myGroup</role-name>
</security-role>