yep, did you set the jaas system property? *Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau*
2013/1/10 Luca Merolla <luca.mero...@gmail.com> > I have added INITIAL_CONTEXT_FACTORY and now I get: > > javax.security.auth.login.FailedLoginException: User does not exist > > while before I was getting : javax.ejb.EJBAccessException: Unauthorized > Access by Principal Denied > > I guess now I need to configure some sort of users.properties file with > users and password. > > > On Thu, Jan 10, 2013 at 1:12 AM, Romain Manni-Bucau > <rmannibu...@gmail.com>wrote: > > > it basically does the same > > > > maybe you'll need to specify Context.INITAL_CONTEXT_FACTORY (normally no > > but depend how you run the test) > > > > *Romain Manni-Bucau* > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > > *Blog: **http://rmannibucau.wordpress.com/*< > > http://rmannibucau.wordpress.com/> > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > > *Github: https://github.com/rmannibucau* > > > > > > > > 2013/1/10 Luca Merolla <luca.mero...@gmail.com> > > > > > I was actually trying something similar already, basically the previous > > > "login" method was the following > > > > > > Properties properties = new Properties(); > > > properties.put(Context.SECURITY_PRINCIPAL, username); > > > properties.put(Context.SECURITY_CREDENTIALS, password); > > > > > > final Context context = new InitialContext(properties); > > > > > > but the access was not authorized, then I found the previous example > and > > I > > > thought there was a need of having this ArquillianContext class > > > > > > On Thu, Jan 10, 2013 at 12:44 AM, Romain Manni-Bucau > > > <rmannibu...@gmail.com>wrote: > > > > > > > new InitialContext > > > > > > > > > -- > *Luca Merolla* > Management, Business & Technology Consultant > > > <http://maps.google.com/maps?q=&hl=en> *Mobile:* +393774569974 > *Email:* l...@merollaconsulting.com > *www.linkedin.com/in/lucamerolla* > *Website <http://www.merollaconsulting.com>* > > > Merolla Consulting Limited >