authentication « Seam « JPA Q&A





1. Use IdentityStore and JPA authentication    seamframework.org

The easiest way to achieve what you want is probably to extend IdentityManager and override the authenticate() method so that it attempts to authenticate with both of your identity stores. Of course for all other identity management-related functionality you're going to be limited to just one identity store. This means that for user management (if you have it in your app) ...

2. web:authentication-filter closes (Hibernate) Session    seamframework.org

11:04:10,307 ERROR [SOAPFaultHelperJAXWS] SOAP request exception org.hibernate.SessionException: Session is closed! at org.hibernate.impl.AbstractSessionImpl.errorIfClosed(AbstractSessionImpl.java:49) at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1621) at org.jboss.seam.persistence.HibernateSessionProxy.createQuery(HibernateSessionProxy.java:140) at org.jboss.seam.framework.HibernateEntityQuery.createQuery(HibernateEntityQuery.java:141) at org.jboss.seam.framework.HibernateEntityQuery.initResultList(HibernateEntityQuery.java:53) at org.jboss.seam.framework.HibernateEntityQuery.getResultList(HibernateEntityQuery.java:45) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:95) at org.jboss.seam.util.Work.workInTransaction(Work.java:47) at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:89) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) at org.home.project.session.DataList_$$_javassist_4.getResultList(DataList_$$_javassist_4.java) ...