Have you given a dependency on
console.realm
MySecurityRealm
1.0
car
in your geronimo-web.xml?
++Vamsi
On Feb 10, 2008 1:48 AM, Brian Gregory <[EMAIL PROTECTED]> wrote:
>
> I receive the following error when attempting to test a custom security
> desccriptor from a simple "hello-world" servlet:
>
> 15:09:50,815 WARN [TomcatGeronimoRealm] Login exception authenticating
> username "user"
> javax.security.auth.login.LoginException: unable to find LoginModule
> class:
> com.g-webdesign.geronimo.security.OracleSQLLoginModule in classloader
> default/my-hello-world/1.0/car
>at javax.security.auth.login.LoginContext.invoke(Unknown Source)
> ...
>
> Here is my security deployment descriptor:
> --
>
>
> http://geronimo.apache.org/xml/ns/deployment-1.2";>
>
>
>console.realm
>MySecurityRealm
>1.0
>car
>
>
>
>org.apache.geronimo.configs
>j2ee-security
>car
>
>
>com.g-webdesign.com
>my-login-module
>1.0
>jar
>
>
>
> class="org.apache.geronimo.security.realm.GenericSecurityRealm"
> xsi:type="dep:gbeanType"
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>MySecurityRealm
>
>ServerInfo
>
>
> xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-2.0";>
> wrap-principals="false">
>
> MySecurityRealm
>
> com.g-webdesign.geronimo.security.MyLoginModule
>
>
>
>
>
>
>
> This is from my web.xml:
> -
>
>
>
>Hello World
>/*
>POST
>GET
>
>
>ADMIN_ROLE
>
>
>
>FORM
>This is not used for FORM login
>
>/login.jsp
>/loginerror.jsp
>
>
>
>ADMIN_ROLE
>
>
> This is from my geronimo-web.xml:
> -
>
> OracleTBSecurityRealm
>
>
> class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"
> />
>
>
>
>designated-run-as="true"
> class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal
> "
> />
>
>
>
>
> Ideas?
>
> --
> View this message in context:
> http://www.nabble.com/custom-LoginModule-and-GenericSecurityRealm-%3D-unable-to-find-LoginModule-tp15389615s134p15389615.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>