Unfortunately that didn't solve the problem. I thought everything was fine when 
I discovered about the ProxyLoginModule but in fact the classloader is still 
looking for server side classes the client should not have access to nor care 
about...
If I include jboss_dist/server/all/lib/jbosssx.jar in the client classpath 
everything works, otherwise I get the usual error.

My auth.conf (server side):

test-realm

{

    org.jboss.security.auth.spi.ProxyLoginModule required

    moduleName=bda.beans.jaas.EJBLoginModule;

};

---

The loginmodule declaration:

public class EJBLoginModule extends AbstractServerLoginModule

---

The output (client side):

java.lang.NoClassDefFoundError: 
org/jboss/security/auth/spi/AbstractServerLoginModule
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
        at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:219)
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:637)
        at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
        at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
        at bda.NewClient.login(NewClient.java:634)

No output at all from server side.
I'm still working on this but until now I don't have a clue.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857150


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to