[JBoss-user] [Security & JAAS/JBoss] - Re: Retrive the authenticated subject within a protected URL

2006-07-09 Thread james_conf
A bit more. This only happens when the authenticated user does not have the proper role to access the URL. I did forget to add, I am looking for the subject in a Valve. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956441#3956441 Reply to the post : http

[JBoss-user] [Security & JAAS/JBoss] - Re: Retrive the authenticated subject within a protected URL

2006-07-09 Thread james_conf
Seams my problem with SecurityAssociation is within a portected URL the SubjectContext is null 2006-07-09 14:57:37,745 TRACE [org.jboss.security.SecurityAssociation] getSubject, sc=null View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956435#3956435 Reply to

[JBoss-user] [Security & JAAS/JBoss] - Retrive the authenticated subject within a protected URL

2006-07-09 Thread james_conf
I need access to the users subject from a servlet. When I access a unprotected URL I can retrive it just fine example: SecurityAssociation.getSubject() and PolicyContext.getContext("javax.security.auth.Subject.container"); But if I go to a protected URL, (the url-pattern under security-constr

[JBoss-user] [EJB 3.0] - Re: PersistenceContext causing bean's jndi entry to disapear

2006-03-31 Thread james_conf
Just thought I would fully verify my problem. My bean class is empty except for empty method declarations. if the EntityManager is named anything else other then em the beans local interface is unavailable in the jndi tree. Calling the EntityManager em or removing the annotation makes the bean

[JBoss-user] [EJB 3.0] - Re: PersistenceContext causing bean's jndi entry to disapear

2006-03-30 Thread james_conf
Yes that's all I have done. em is not referenced or overridden anywhere in my code. only used (IE em.find() etc..) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933935#3933935 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=rep

[JBoss-user] [EJB 3.0] - Re: PersistenceContext causing bean's jndi entry to disapear

2006-03-28 Thread james_conf
I renamed entityManager to em and new it woks fine. now out of curiosity is this how annotations are suppose to work? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933039#3933039 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=

[JBoss-user] [EJB 3.0] - PersistenceContext causing bean's jndi entry to disapear.

2006-03-28 Thread james_conf
Hi. I have a SessionBean which works fine until I place the PersistenceContext annotation. as below | @PersistenceContext(unitName="korsesus") | protected EntityManager entityManager; | After this the SessionBean local or remote interfaces are s no longer visible from the jndi tre