users@glassfish.java.net

Specified callback handler is not used.

From: <glassfish_at_javadesktop.org>
Date: Fri, 15 Jun 2007 11:10:12 PDT

Hi,

i've implemented a CallbackHandler, which I want to use within my application client instead of the default one. My problem is, that whatever I do my own Handler is not used. Instead the default one always come up. My CallbackHandler looks like this:

public class LoginModule extends javax.swing.JFrame implements javax.security.auth.callback.CallbackHandler{

public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {
    ......................................
}

}

and the application-client.xml:

?xml version="1.0" encoding="UTF-8"?>
<application-client version="5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application-client_5.xsd">
    <display-name>EnterpriseApplication1-app-client</display-name>
    <callback-handler>enterpriseapplication1.LoginModule</callback-handler>
</application-client>

The only reaction is that, If I misspell the path of my LoginModule I get a message that the class could not be found.

I hope somebody could help me.

With kind regards
Arne
[Message sent by forum member 'agessner' (agessner)]

http://forums.java.net/jive/thread.jspa?messageID=222465