jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Date Tue, 27 Jan 2004 17:43:01 GMT
Hi Horatiu,

> -----Original Message-----
> From: Horatiu Parfene [mailto:horatiu.parfene@memiq.ro]
> Sent: 26 January 2004 17:01
> To: cactus-user@jakarta.apache.org
> Subject: CACTUS + JBOSS + JAAS
> Hello all,
> I want to test my EJBs but I am unable to autehnticate against jboss
> Cactus Test Classes. The login of the application uses
> I could run my tests until authentication was introduced. Since then i
> am unable to perform any tests having the following error:
> /[cactus] EJBException:; nested exception is:
> [cactus]     javax.ejb.EJBException: checkSecurityAssociation;
> CausedByException is:
> [cactus]     Authentication exception, principal=null
> /
> Here is my situation:
> 1. i have jboss jboss-3.2.1_tomcat-4.1.24
> 2. my EJBs are protected through user+password+role (obtained from a
> using JAAS
> I don't know how to pass jboss a user and a password from my Cactus
> classes.

Hmmm. I've never done this but I guess you simply need to pass the
credentials when you're creating the InitialContext you need to use to
perform your EJB lookup. You can pass a Properties object in the
InitialContext constructor. You need to pass the credentials in this
properties object. Note that I've never used JAAS before (I've only used
the standard container security), so I may be totally off base.

What's important to realize is that Cactus is completely transparent
when it comes to accessing EJBs (there is no EJB redirector).


> Please help me.
> Thank you,
> Horatiu
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org

View raw message