Hey Hari,
First, thanks very much for all the feedback and time!
That said, please don't hit the reply button when starting new threads as it really messes up those with threaded email clients.
Best regards, David
On Jan 4, 2005, at 11:41 AM, Hari Kodungallur wrote:
Sorry. My bad. I was doing something wrong. I got past this error. Thanks
Anita, even though the constructor has 9 params, they are all not needed
to be specified in the descriptor file. The params not specified here
have default values. I based my example on the login module in the
j2ee-server plan file.
Thanks! -Hari
On Fri, 2004-12-31 at 09:17, anita kulshreshtha wrote:Alan, Hari AIUI (I might be wrong) GenericSecurityRealm does not have a constructor to deal with this. The only constructor needs 9 parameters - public GenericSecurityRealm(String realmName, Properties loginModuleConfiguration, boolean restrictPrincipalsToServer, Principal defaultPrincipal, MapOfSets autoMapPrincipalClasses, Properties deploymentSupport, ServerInfo serverInfo, ClassLoader classLoader, Kernel kernel) throws MalformedObjectNameException Either we provide a constructor like - public GenericSecurityRealm(String realmName, Properties loginModuleConfiguration, MapOfSets autoMapPrincipalClasses, ServerInfo serverInfo, ) throws MalformedObjectNameException or change the definition of the Gbean.
Thanks Anita --- "Alan D. Cabrera" <[EMAIL PROTECTED]> wrote:
name="geronimo.security:type=LoginModule,name=SampleJDBC"Hari,
I have a pretty good idea about what's going on but, can you send me the full stack trace?
Regards, Alan
[mailto:[EMAIL PROTECTED]-----Original Message----- From: Hari Kodungallurwrote. At the time ofSent: Thursday, December 30, 2004 11:40 PM To: [EMAIL PROTECTED] Subject: LoginModule question.
Hi,
First of all, happy new year everyone!
Now, my question.
I am trying to deploy a login module that wedeployment, the classloader can not find the LoginModule class andthrows a ClassNotFoundException. I think I am notunderstandingsomething here. I would greatly appreciate it ifsomeone can tell meauthentication filter. Itpoint me to the mistakes that I am making.
Basically I am deploying a web app, with anneeds a login module called SampleJDBC, whichwould look like this:...<options>...
SampleJDBC { auth.MyLoginModule required debug=true};
auth.MyLoginModule is present in WEB-INF/classes.
My geronimo-jetty.xml has the following:
<gbean
class="org.apache.geronimo.security.jaas.LoginModuleGBean">
name="geronimo.security:type=SecurityRealm,realm=SampleJDBC"<attribute name="loginModuleClass"type="java.lang.String">type="java.util.Properties">auth.MyLoginModule </attribute> <attribute name="options"type="boolean">true</attribute>....<options>.... </attribute> <attribute name="serverSide"<attribute name="loginDomainName"type="java.lang.String">SampleJDBC </attribute> </gbean>
<gbean
class="org.apache.geronimo.security.realm.GenericSecurityRealm">
name="loginModuleConfiguration"type="java.util.Properties"><attributename="realmName"type="java.lang.String">SampleJDBC </attribute> <attribute
LoginModule.1.REQUIRED=geronimo.security: type=LoginModule,name=SampleJDB
Cname="geronimo.security:type=ConfigurationEntry,jaasId=myTest"type="java.lang.String"></attribute> <reference name="ServerInfo"> geronimo.system:role=ServerInfo </reference> <attribute name="autoMapPrincipalClasses"auth.MyPrincipal </attribute> </gbean>
<gbean
class="org.apache.geronimo.security.jaas.ServerRealmConfigurationEntry ">
org.apache.geronimo.security.jaas.JaasLoginModuleConfiguration.getLogi nM<attribute name="applicationConfigName"type="java.lang.String">type="java.lang.String">myTest </attribute> <attribute name="realmName"auth.MyLoginModuleSampleJDBC </attribute> </gbean>
The exception is ClassNotFoundException:
and it happens at
odand then providing aule(JaasLoginModuleConfiguration.java:65)
I have tried, with no luck, jar-ing the classes<dependency> in the geronimo-jetty.xml. We do useSpring, but I am notsure whether that could be the problem, since thisproblems seems to behappening when trying to initialize the realm.
Thanks very much! -Hari
__________________________________ Do you Yahoo!? All your favorites on one personal page Try My Yahoo! http://my.yahoo.com
