-
1. Re: Erros in Authenticator Class
paulkeogh Oct 20, 2008 1:02 PM (in response to lusabo)This may be of some help - but... I am a Seam newcomer.
I discovered that the New Seam project wizard uses JBoss rules as a default for the security authenticator (or maybe I missed the option) so I made the following changes in components.xml - I removed the rules references and added the simple authenticator;
<!--
Removing JBoss Rules because Tools 3.0 generated causes exception on 1st page access
<drools:rule-base name="securityRules">
<drools:rule-files>
security
</drools:rule-files>
</drools:rule-base>
-->
<!--
Removing JBoss Rules because Tools 3.0 generated causes exception on 1st page access
<security:identity security-rules="#{securityRules}" authenticate-method="#{authenticator.authenticate}" remember-me="true"/>
-->
<security:identity authenticate-method="#{authenticator.authenticate}"/>
Then, hey presto, it all worked. Magic or what ?
Figuring out why the rules doesnt work is for another day. -
2. Re: Erros in Authenticator Class
maxandersen Oct 22, 2008 7:57 AM (in response to lusabo)What errors are you seeing ?
Is it just the components.xml error about security-rules ? That is a bug in jboss tools since we haven't adjusted for the extended xml->java mapping Seam 2.1 introduces. -
3. Re: Erros in Authenticator Class
maxandersen Oct 22, 2008 7:58 AM (in response to lusabo)i.e. the components.xml error can be ignored.
If you have an error in a java class please list the specific error - thanks