AnsweredAssumed Answered

javax.security.auth.callback.UnsupportedCallbackException

Question asked by jmmorales on Jul 9, 2010
Latest reply on Sep 23, 2010 by rgamiz
Estoy ejecutando el siguiente código de ejemplo en 2 entornos:

   public static void main(String[] args)
        throws Exception
    {
        // Start the session
        AuthenticationUtils.startSession(USERNAME, PASSWORD);
       
        try
        {  
            // Get the respoitory service
            RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
           
            // Get array of stores available in the repository
            Store[] stores = repositoryService.getStores();
            if (stores == null)
            {
                // NOTE: empty array are returned as a null object, this is a issue with the generated web service code.
                System.out.println("There are no stores avilable in the repository.");
            }
            else
            {
                // Output the names of all the stores available in the repository
                System.out.println("The following stores are available in the repository:");
                for (Store store : stores)
                {
                    System.out.println(store.getScheme() + "://" + store.getAddress());
                }
            }
        }
        finally
        {
            // End the session
            AuthenticationUtils.endSession();
        }
    } 

En el entorno A:

JDK 1.6.0.17
Tomcat 5.5
Windows XP

Aqui se ejecuta sin ningún problema

En el entorno B:

JDK 1.6.0.17
JBoss 5.1
Red Hat 5 Linux

Aqui aparece la siguiente excepcion –> javax.security.auth.callback.UnsupportedCallbackException: Unrecognized Callback

¿Alguna idea?

Outcomes