Got it. Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024022#4024022
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024022
___
jboss-user mailing list
jboss-user@list
"tonylmai" wrote :
| Back to overriding the RuleBasedIdentity, the login method allows me to
return a viewId to redirect user to a specific page. Yet the logout does not.
How would I go about redirecting user to a different page after they have
logged out?
|
Here's an example of redirect
I got it now. If entityManager was injected as @In then it would use Hibernate
query. In earlier code I injected with @PersistenceContext and that was why I
was able to use SQL select statement against the database table.
Back to overriding the RuleBasedIdentity, the login method allows me to re
I highly doubt that you have a class called "login_user", so I'm sure this
query never worked in any version of Hibernate.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023503#4023503
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&
1.2 did not solve the problem. I am still running into the error:
| 23:02:21,453 INFO [Lifecycle] starting up: org.jboss.seam.security.identity
| 23:02:22,625 INFO [Pages] reading pages.xml
| 23:02:23,546 INFO [STDOUT] Verify login for tony
| 23:02:23,718 ERROR [SeamLoginModule] Error
With the (created=true) flag, I now got this:
| 21:54:46,578 INFO [Lifecycle] starting up: org.jboss.seam.security.identity
| 21:54:46,734 INFO [Pages] reading pages.xml
| 21:54:46,843 INFO [STDOUT] Verify login for tony
| 21:54:46,843 ERROR [SeamLoginModule] Error invoking login metho
Probably you need auto-create=true in components.xml, or @In(create=true) in
the Java.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023436#4023436
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023436
___
I am using Seam-managed PC. But it's throwing me the above error. Here is a
snippet of stacktrace:
| 18:07:03,015 INFO [Lifecycle] starting up: org.jboss.seam.security.identity
| 18:07:03,562 INFO [Pages] reading pages.xml
| 18:07:03,625 ERROR [SeamLoginModule] Error invoking login metho
If you want to use @PersistenceContext, you need to make your Authenticator a
session bean. Otherwise, you need to config a seam-managed PC.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023406#4023406
Reply to the post :
http://www.jboss.com/index.html?mod
Hi Gavin,
I am using Seam 1.1.6, not 1.2 and I received the following error when I copied
the Authenticator example code
(http://docs.jboss.com/seam/1.2.0.GA/reference/en/html/security.html#d0e6073)
Server log ---
Caused by: org.jboss.seam.RequiredException: In attribute requires value
@Name("org.jboss.seam.core.identity")
| public class MyIdentity extends RuleBasedIdentity {//or Identity, if no
drools
| public String login() {
| String outcome = super.login();
| //do whatever you like
| }
| }
View the original post :
http://www.jboss.com
11 matches
Mail list logo