Those two lines are a bit strange:
InitialContext ctx = new InitialContext(env); 
  |             
  | InitialContext ctx = b.getInitialContext();
I guess, that line 60 is the one with the error?

Do you use an application client or a web client? For application clients, you 
MUST specifiy the JNDI connection properties on creating the InitialContext:
      Properties props = new Properties();
  |       props.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  |       props.setProperty(Context.URL_PKG_PREFIXES, 
"org.jboss.naming.client");
  |       props.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
  |       
  |       InitialContext initialContext = new InitialContext(props);

Hope this brings us a bit further (though I am not really a professionel on 
JAAS)

Wolfgang

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4185087#4185087

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185087
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to