Try to put your jar explicitly in the CLASSPATH.

For security modules jboss seems not to use the automaitcally created
CLASSPATH wiht the jars of \lib\ext
Is that right, jboss-guyes ?

Annegret

> ----------
> Von:  Matthew Baird[SMTP:[EMAIL PROTECTED]]
> Antwort an:   [EMAIL PROTECTED]
> Gesendet:     Mittwoch, 16. Mai 2001 20:23
> An:   [EMAIL PROTECTED]
> Betreff:      [JBoss-user] Unable to find LoginModule class Exception
> 
> Hello,
> 
> I've implemented my own LoginModule (authenticate via Castor) and I'm not
> sure where to make this class available to jboss so it can find it.
> Currently I'm getting the following exception:
> 
> [StatelessSession] javax.security.auth.login.LoginException: unable to
> find
> LoginModule class: com.againtech.ce.security.CastorLoginModule
> [StatelessSession]      at
> javax.security.auth.login.LoginContext.invoke(LoginContext.java:631)
> [StatelessSession]      at
> javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
> [StatelessSession]      at
> javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
> [StatelessSession]      at
> java.security.AccessController.doPrivileged(Native Method)
> [StatelessSession]      at
> javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
> [StatelessSession]      at
> javax.security.auth.login.LoginContext.login(LoginContext.java:449)
> {etc}
> 
> My auth.conf in /conf/default looks like this:
> // Put login modules providing authentication and realm mappings
> // for specific beans here, for example:
> // mybean {
> //   org.jboss.security.plugins.DatabaseServerLoginModule required
> db="jdbc/DbJndiName" table="UserTable" name="UserNameColumn"
> password="UserPswColumn";
> //   com.mycompany.MyRealmMappingLoginModule required param1="value1"
> param2="value2";
> // };
> 
> simple {
>     // Very simple login module:
>     // any user name is accepted.
>     // password should either coincide with user name or be null,
>     // all users have role "guest",
>     // users with non-null password also have role "user"
>     org.jboss.security.plugins.samples.SimpleServerLoginModule required;
> };
> 
> // The default server login module
> other
> {
>     //   The castor login module.
>     com.againtech.ce.security.CastorLoginModule required;
> };
> 
> 
> i've jar'd up the class (com.againtech.ce.security.CastorLoginModule) and
> put it in lib and in lib/ext
> 
> Is there a setting in .jcml or .conf files I have to tweak to let jboss no
> where this class is?
> 
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to