3 Replies Latest reply on Mar 29, 2012 5:50 PM by sfcoy

    Local login problem from web client.

    asili20o

      in jboss 6.1 i was able to login to server just using

      props.put(Context.SECURITY_PRINCIPAL, LogonUser.getUser().getName().trim());

      props.put(Context.SECURITY_CREDENTIALS, LogonUser.getUser().getPassword().trim());

       

      when we moved to 7.1 i am keep getting and errror. (javax.ejb.EJBAccessException: JBAS014502: Invocation on method: (java.lang.String) of bean: LogonServiceBean is not allowed)

       

                  Properties props = new Properties();

                  props.put(Context.SECURITY_PRINCIPAL, LogonUser.getUser().getName().trim());

                  props.put(Context.SECURITY_CREDENTIALS, LogonUser.getUser().getPassword().trim());

                  props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.security.jndi.JndiLoginInitialContextFactory");

                  props.put("jboss.naming.client.ejb.context", true);

                  props.put("jboss.naming.client.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false");       

                  Context ctx = new InitialContext(props);

                  logon = (LogonService) ctx

                              .lookup("ejb:xxx/xx/LogonServiceBean!"

                                      + LogonService.class.getName());

        

       

      need help not sure why i am not allow in the bean. if i log in with a client remotely i have access.