You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by sreepriya ramakrishnan <sr...@yahoo.com> on 2006/11/07 20:39:41 UTC

Question regd Geronimo and LoginModules

Hi all,

I understand that for Geronimo to identify login
modules, the login modules must be jarred and put in
the repository. 

I was wondering if there is some other way for
Geronimo to look for those Login module classes in the
ear file itself?

-Priya



 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail.
http://new.mail.yahoo.com

Re: Question regd Geronimo and LoginModules

Posted by David Jencks <da...@yahoo.com>.
On Nov 7, 2006, at 11:39 AM, sreepriya ramakrishnan wrote:

> Hi all,
>
> I understand that for Geronimo to identify login
> modules, the login modules must be jarred and put in
> the repository.
>
> I was wondering if there is some other way for
> Geronimo to look for those Login module classes in the
> ear file itself?

This is more of a user list question.

In geronimo 1.1 and later LoginModules can be in any j2ee artifact  
such as ejb jar or war.  In geronimo 1.0 you cannot use a login  
module in a war, you have to put it in a ejb jar or jar referenced  
from an ejb jar manifest classpath.

Hope this helps
david jencks

>
> -Priya
>
>
>
>
> ______________________________________________________________________ 
> ______________
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail.
> http://new.mail.yahoo.com


Re: Question regd Geronimo and LoginModules

Posted by sreepriya ramakrishnan <sr...@yahoo.com>.
At this point, yes, your sample application will be
very useful. 

-Priya


--- Vamsavardhana Reddy <c1...@gmail.com> wrote:

> I was able to deploy and use a custom login module
> in 1.0.  I should have a
> sample application somewhere on my disk.  I will
> look it up and let you
> know.
> 
> --vamsi
> 
> On 11/8/06, sreepriya ramakrishnan
> <sr...@yahoo.com> wrote:
> >
> > The login module class is in the web-inf/classes
> > folder.
> >
> > 15:10:28,499 ERROR [SecurityFilter]
> > SecurityFilter.execute() : Exception
> > javax.security.auth.login.LoginException:
> >
>
org.apache.geronimo.common.GeronimoSecurityException:
> > Unable to instantiate login module
> >         at
> >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule
> > (JaasLoginModuleConfiguration.java:71)
> >         at
> >
>
org.apache.geronimo.security.jaas.server.JaasSecuritySession.<init>(
> > JaasSecuritySession.java:64)
> >         at
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginService.initializeClient
> > (JaasLoginService.java:353)
> >         at
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginService.connectToRealm(
> > JaasLoginService.java:169)
> >         at
> >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginService$$FastClassByCGLIB$$95b84fc9.invoke
> > (<generated>)
> >         at
> >
>
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> >         at
> >
>
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
> > FastMethodInvoker.java:38)
> >         at
> >
>
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
> > GBeanOperation.java:118)
> >         at
> >
>
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java
> > :800)
> >         at
> >
>
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> >         at
> >
>
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
> > RawOperationInvoker.java:36)
> >         at
> >
>
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
> > ProxyMethodInterceptor.java:96)
> >         at
> >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginServiceMBean$$EnhancerByCGLIB$$5d8c7715.connectToRealm
> > (<generated>)
> >         at
> >
>
org.apache.geronimo.security.jaas.client.JaasLoginCoordinator.login(
> > JaasLoginCoordinator.java:95)
> >         at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> >         at
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> > :39)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> >         at
> java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> >
>
javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
> >         at
> >
>
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
> >         at
> >
>
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
> >         at
> java.security.AccessController.doPrivileged(Native
> > Method)
> >         at
> >
>
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
> >         at
> >
>
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
> >         at
> >
>
com.test.SecurityFilter.doFilter(SecurityFilter.java:273)
> >         at
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:202)
> >         at
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:173)
> >         at
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(
> > StandardWrapperValve.java:213)
> >         at
> >
>
org.apache.catalina.core.StandardContextValve.invoke(
> > StandardContextValve.java:178)
> >         at
> >
> >
>
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke
> > (GeronimoStandardContext.java:272)
> >         at
> >
>
org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(
> > TransactionContextValve.java:53)
> >         at
> >
>
org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(
> > ComponentContextValve.java:47)
> >         at
> >
>
org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(
> > InstanceContextValve.java:60)
> >         at
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> > :126)
> >         at
> >
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> > :105)
> >         at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(
> > StandardEngineValve.java:107)
> >         at
> >
>
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
> >         at
> >
>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> > :148)
> >         at
> >
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> >         at
> >
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> > (Http11Protocol.java:744)
> >         at
> >
>
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> > PoolTcpEndpoint.java:527)
> >         at
> >
>
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> > LeaderFollowerWorkerThread.java:80)
> >         at
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.java:684)
> >         at java.lang.Thread.run(Thread.java:595)
> > Caused by: java.lang.ClassNotFoundException:
> > com.test.jaas.TestLoginModule
> >         at
> >
>
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >         at
> java.security.AccessController.doPrivileged(Native
> > Method)
> >         at
> >
>
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >         at
> >
>
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >         at
> >
>
org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(
> 
=== message truncated ===




 
____________________________________________________________________________________
Sponsored Link

$200,000 mortgage for $660/mo - 30/15 yr fixed, reduce debt, home equity - 
Click now for info http://yahoo.ratemarketplace.com

Re: Question regd Geronimo and LoginModules

Posted by sreepriya ramakrishnan <sr...@yahoo.com>.
Hi Vamsa,

Can you forward me the example taht you have?

-Priya

--- Vamsavardhana Reddy <c1...@gmail.com> wrote:

> I was able to deploy and use a custom login module
> in 1.0.  I should have a
> sample application somewhere on my disk.  I will
> look it up and let you
> know.
> 
> --vamsi
> 
> On 11/8/06, sreepriya ramakrishnan
> <sr...@yahoo.com> wrote:
> >
> > The login module class is in the web-inf/classes
> > folder.
> >
> > 15:10:28,499 ERROR [SecurityFilter]
> > SecurityFilter.execute() : Exception
> > javax.security.auth.login.LoginException:
> >
>
org.apache.geronimo.common.GeronimoSecurityException:
> > Unable to instantiate login module
> >         at
> >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule
> > (JaasLoginModuleConfiguration.java:71)
> >         at
> >
>
org.apache.geronimo.security.jaas.server.JaasSecuritySession.<init>(
> > JaasSecuritySession.java:64)
> >         at
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginService.initializeClient
> > (JaasLoginService.java:353)
> >         at
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginService.connectToRealm(
> > JaasLoginService.java:169)
> >         at
> >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginService$$FastClassByCGLIB$$95b84fc9.invoke
> > (<generated>)
> >         at
> >
>
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> >         at
> >
>
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
> > FastMethodInvoker.java:38)
> >         at
> >
>
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
> > GBeanOperation.java:118)
> >         at
> >
>
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java
> > :800)
> >         at
> >
>
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> >         at
> >
>
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
> > RawOperationInvoker.java:36)
> >         at
> >
>
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
> > ProxyMethodInterceptor.java:96)
> >         at
> >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginServiceMBean$$EnhancerByCGLIB$$5d8c7715.connectToRealm
> > (<generated>)
> >         at
> >
>
org.apache.geronimo.security.jaas.client.JaasLoginCoordinator.login(
> > JaasLoginCoordinator.java:95)
> >         at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> >         at
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> > :39)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> >         at
> java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> >
>
javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
> >         at
> >
>
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
> >         at
> >
>
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
> >         at
> java.security.AccessController.doPrivileged(Native
> > Method)
> >         at
> >
>
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
> >         at
> >
>
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
> >         at
> >
>
com.test.SecurityFilter.doFilter(SecurityFilter.java:273)
> >         at
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:202)
> >         at
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:173)
> >         at
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(
> > StandardWrapperValve.java:213)
> >         at
> >
>
org.apache.catalina.core.StandardContextValve.invoke(
> > StandardContextValve.java:178)
> >         at
> >
> >
>
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke
> > (GeronimoStandardContext.java:272)
> >         at
> >
>
org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(
> > TransactionContextValve.java:53)
> >         at
> >
>
org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(
> > ComponentContextValve.java:47)
> >         at
> >
>
org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(
> > InstanceContextValve.java:60)
> >         at
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> > :126)
> >         at
> >
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> > :105)
> >         at
> >
> org.apache.catalina.core.StandardEngineValve.invoke(
> > StandardEngineValve.java:107)
> >         at
> >
>
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
> >         at
> >
>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> > :148)
> >         at
> >
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> >         at
> >
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> > (Http11Protocol.java:744)
> >         at
> >
>
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> > PoolTcpEndpoint.java:527)
> >         at
> >
>
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> > LeaderFollowerWorkerThread.java:80)
> >         at
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.java:684)
> >         at java.lang.Thread.run(Thread.java:595)
> > Caused by: java.lang.ClassNotFoundException:
> > com.test.jaas.TestLoginModule
> >         at
> >
>
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >         at
> java.security.AccessController.doPrivileged(Native
> > Method)
> >         at
> >
>
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >         at
> >
>
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >         at
> >
>
org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(
> 
=== message truncated ===




 
____________________________________________________________________________________
Sponsored Link

$200,000 mortgage for $660/mo - 30/15 yr fixed, reduce debt, home equity - 
Click now for info http://yahoo.ratemarketplace.com

Re: Question regd Geronimo and LoginModules

Posted by Vamsavardhana Reddy <c1...@gmail.com>.
I was able to deploy and use a custom login module in 1.0.  I should have a
sample application somewhere on my disk.  I will look it up and let you
know.

--vamsi

On 11/8/06, sreepriya ramakrishnan <sr...@yahoo.com> wrote:
>
> The login module class is in the web-inf/classes
> folder.
>
> 15:10:28,499 ERROR [SecurityFilter]
> SecurityFilter.execute() : Exception
> javax.security.auth.login.LoginException:
> org.apache.geronimo.common.GeronimoSecurityException:
> Unable to instantiate login module
>         at
>
> org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule
> (JaasLoginModuleConfiguration.java:71)
>         at
> org.apache.geronimo.security.jaas.server.JaasSecuritySession.<init>(
> JaasSecuritySession.java:64)
>         at
> org.apache.geronimo.security.jaas.server.JaasLoginService.initializeClient
> (JaasLoginService.java:353)
>         at
> org.apache.geronimo.security.jaas.server.JaasLoginService.connectToRealm(
> JaasLoginService.java:169)
>         at
>
> org.apache.geronimo.security.jaas.server.JaasLoginService$$FastClassByCGLIB$$95b84fc9.invoke
> (<generated>)
>         at
> net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>         at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
> FastMethodInvoker.java:38)
>         at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
> GBeanOperation.java:118)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java
> :800)
>         at
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>         at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
> RawOperationInvoker.java:36)
>         at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(
> ProxyMethodInterceptor.java:96)
>         at
>
> org.apache.geronimo.security.jaas.server.JaasLoginServiceMBean$$EnhancerByCGLIB$$5d8c7715.connectToRealm
> (<generated>)
>         at
> org.apache.geronimo.security.jaas.client.JaasLoginCoordinator.login(
> JaasLoginCoordinator.java:95)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
>         at
> javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
>         at
> javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
>         at java.security.AccessController.doPrivileged(Native
> Method)
>         at
> javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
>         at
> javax.security.auth.login.LoginContext.login(LoginContext.java:579)
>         at
> com.test.SecurityFilter.doFilter(SecurityFilter.java:273)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:202)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:213)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:178)
>         at
>
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke
> (GeronimoStandardContext.java:272)
>         at
> org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(
> TransactionContextValve.java:53)
>         at
> org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(
> ComponentContextValve.java:47)
>         at
> org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(
> InstanceContextValve.java:60)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :126)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :148)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>         at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> (Http11Protocol.java:744)
>         at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.ClassNotFoundException:
> com.test.jaas.TestLoginModule
>         at
> java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native
> Method)
>         at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at
> java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at
> org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(
> MultiParentClassLoader.java:209)
>         at
> java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at
>
> org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule
> (JaasLoginModuleConfiguration.java:69)
>         ... 43 more
>
>         at
> javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
>         at
> javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
>         at
> javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
>         at java.security.AccessController.doPrivileged(Native
> Method)
>         at
> javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
>         at
> javax.security.auth.login.LoginContext.login(LoginContext.java:579)
>         at
> com.test.SecurityFilter.doFilter(SecurityFilter.java:273)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:202)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:213)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:178)
>         at
>
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke
> (GeronimoStandardContext.java:272)
>         at
> org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(
> TransactionContextValve.java:53)
>         at
> org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(
> ComponentContextValve.java:47)
>         at
> org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(
> InstanceContextValve.java:60)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :126)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :148)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>         at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> (Http11Protocol.java:744)
>         at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)
>
> 15:10:28,499 ERROR [SecurityFilter] Exit:
> doFilter(ServletRequest sreq, ServletResponse
> sres,FilterChain chain)
> 15:10:28,499 ERROR [[action]] Servlet.service() for
> servlet action threw exception
> java.lang.NullPointerException
>         at
> com.test.SecurityFilter.doFilter(SecurityFilter.java:307)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:202)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:213)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:178)
>         at
>
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke
> (GeronimoStandardContext.java:272)
>         at
> org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(
> TransactionContextValve.java:53)
>         at
> org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(
> ComponentContextValve.java:47)
>         at
> org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(
> InstanceContextValve.java:60)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :126)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :148)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>         at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
> (Http11Protocol.java:744)
>         at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)
>
>
>
>
>
> ____________________________________________________________________________________
> Sponsored Link
>
> Mortgage rates near 39yr lows. $420k for $1,399/mo.
> Calculate new payment!
> http://www.LowerMyBills.com/lre
>

EJBS and LoginModules

Posted by sreepriya ramakrishnan <sr...@yahoo.com>.
Hi,

I have created an EJB Project to be run geronimo 1.0
and put my login module classes in this project.
This login module class depends on some other java
classes which are again in  java projects. I have
added these dependent projects as jars and put it in
the same jar as the ejb jar.

The reason I have created an ejb project is for the
login modules to be identified in geronimo 1.0. I
found that the war is not loaded in the classloader
and hence my login modules are not identified if they
are in the war file.

Now,When I try to access the loginmodules from an
action class,it identifies the login module but throws
a classnotfound exception for the java classes that
the login module internally calls.

Is there something I am missing here?

-Priya


 
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com

Re: Question regd Geronimo and LoginModules

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
There's no way to add a "plan Java" module to an EAR -- you can only
list WARs, EJB JARs, or RARs in application.xml.  It is possible to
put a "plain JAR" in an EAR and add it to the Manifest Class-Path of a
module that's listed in application.xml, but if you add it to a web
app class path that way, you may just run into the same bug (I don't
remember the mechanics of the Manifest Class-Path processing for WARs
in 1.0).  You can try it, but it wouldn't surprise me if it needed to
be listed in the Manifest of an EJB JAR or RAR in order to work.

It's also possible to add JARs in the repository to the class path at
any level (EAR, WAR, etc.) and that should avoid the bug, but my
understanding is that you're trying to avoid this.

Thanks,
     Aaron

On 11/7/06, sreepriya ramakrishnan <sr...@yahoo.com> wrote:
>
> Will it work if I create a new Java project and put
> the login module classes in that package.
> This package will then be added to ear file?
>
> Please let me know.
>
>
> --- Aaron Mulder <am...@alumni.princeton.edu>
> wrote:
>
> > On 11/7/06, sreepriya ramakrishnan
> > <sr...@yahoo.com> wrote:
> > > Hi Aaron,,
> > > What is an RA module?
> >
> > J2EE Connector, Resource Adapter, RAR file, whatever
> > you call it.  :)
> >
> > Thanks,
> >      Aaron
> >
> > > --- Aaron Mulder <am...@alumni.princeton.edu>
> > > wrote:
> > >
> > > > On 11/7/06, sreepriya ramakrishnan
> > > > <sr...@yahoo.com> wrote:
> > > > > I am using Geronimo1.0 application server. Is
> > > > there
> > > > > anything I can do for this?
> > > >
> > > > Ah, I didn't realize that.  There is a known
> > issue
> > > > in Geronimo 1.0
> > > > that GBeans (which includes login modules) in a
> > web
> > > > app are not able
> > > > to access classes in the WAR (WEB-INF/classes
> > and
> > > > WEB-INF/lib).  That
> > > > was fixed in Geronimo 1.1.
> > > >
> > > > If you have an EJB or RA module in the EAR, you
> > can
> > > > add the login
> > > > module classes to that instead.  Otherwise, I
> > think
> > > > you might have to
> > > > work around it by either creating a dummy EJB or
> > RA
> > > > module or just
> > > > putting the login classes in a JAR in the
> > > > repository.  (Or try
> > > > Geronimo 1.1.x)
> > > >
> > > > Thanks,
> > > >       Aaron
> > > >
> > > > > --- Aaron Mulder
> > <am...@alumni.princeton.edu>
> > > > > wrote:
> > > > >
> > > > > > OK, we'll have to look into the code there.
> > It
> > > > may
> > > > > > be that this is a
> > > > > > bug where we use the wrong class loader to
> > > > attempt
> > > > > > to load the login
> > > > > > module.
> > > > > >
> > > > > > Thanks,
> > > > > >       Aaron
> > > > > >
> > > > > > On 11/7/06, sreepriya ramakrishnan
> > > > > > <sr...@yahoo.com> wrote:
> > > > > > > The login module class is in the
> > > > web-inf/classes
> > > > > > > folder.
> > > > > > >
> > > > > > > 15:10:28,499 ERROR [SecurityFilter]
> > > > > > > SecurityFilter.execute() : Exception
> > > > > > > javax.security.auth.login.LoginException:
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.common.GeronimoSecurityException:
> > > > > > > Unable to instantiate login module
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule(JaasLoginModuleConfiguration.java:71)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasSecuritySession.<init>(JaasSecuritySession.java:64)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginService.initializeClient(JaasLoginService.java:353)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginService.connectToRealm(JaasLoginService.java:169)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginService$$FastClassByCGLIB$$95b84fc9.invoke(<generated>)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:800)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginServiceMBean$$EnhancerByCGLIB$$5d8c7715.connectToRealm(<generated>)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.security.jaas.client.JaasLoginCoordinator.login(JaasLoginCoordinator.java:95)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > >
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > > > > Method)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > > > > >         at
> > > > > >
> > java.lang.reflect.Method.invoke(Method.java:585)
> > > > > > >         at
> >
> === message truncated ===
>
>
>
>
>
> ____________________________________________________________________________________
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail.
> http://new.mail.yahoo.com
>

Re: Question regd Geronimo and LoginModules

Posted by sreepriya ramakrishnan <sr...@yahoo.com>.
Will it work if I create a new Java project and put
the login module classes in that package.
This package will then be added to ear file?

Please let me know.


--- Aaron Mulder <am...@alumni.princeton.edu>
wrote:

> On 11/7/06, sreepriya ramakrishnan
> <sr...@yahoo.com> wrote:
> > Hi Aaron,,
> > What is an RA module?
> 
> J2EE Connector, Resource Adapter, RAR file, whatever
> you call it.  :)
> 
> Thanks,
>      Aaron
> 
> > --- Aaron Mulder <am...@alumni.princeton.edu>
> > wrote:
> >
> > > On 11/7/06, sreepriya ramakrishnan
> > > <sr...@yahoo.com> wrote:
> > > > I am using Geronimo1.0 application server. Is
> > > there
> > > > anything I can do for this?
> > >
> > > Ah, I didn't realize that.  There is a known
> issue
> > > in Geronimo 1.0
> > > that GBeans (which includes login modules) in a
> web
> > > app are not able
> > > to access classes in the WAR (WEB-INF/classes
> and
> > > WEB-INF/lib).  That
> > > was fixed in Geronimo 1.1.
> > >
> > > If you have an EJB or RA module in the EAR, you
> can
> > > add the login
> > > module classes to that instead.  Otherwise, I
> think
> > > you might have to
> > > work around it by either creating a dummy EJB or
> RA
> > > module or just
> > > putting the login classes in a JAR in the
> > > repository.  (Or try
> > > Geronimo 1.1.x)
> > >
> > > Thanks,
> > >       Aaron
> > >
> > > > --- Aaron Mulder
> <am...@alumni.princeton.edu>
> > > > wrote:
> > > >
> > > > > OK, we'll have to look into the code there. 
> It
> > > may
> > > > > be that this is a
> > > > > bug where we use the wrong class loader to
> > > attempt
> > > > > to load the login
> > > > > module.
> > > > >
> > > > > Thanks,
> > > > >       Aaron
> > > > >
> > > > > On 11/7/06, sreepriya ramakrishnan
> > > > > <sr...@yahoo.com> wrote:
> > > > > > The login module class is in the
> > > web-inf/classes
> > > > > > folder.
> > > > > >
> > > > > > 15:10:28,499 ERROR [SecurityFilter]
> > > > > > SecurityFilter.execute() : Exception
> > > > > > javax.security.auth.login.LoginException:
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.geronimo.common.GeronimoSecurityException:
> > > > > > Unable to instantiate login module
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule(JaasLoginModuleConfiguration.java:71)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.geronimo.security.jaas.server.JaasSecuritySession.<init>(JaasSecuritySession.java:64)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginService.initializeClient(JaasLoginService.java:353)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginService.connectToRealm(JaasLoginService.java:169)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginService$$FastClassByCGLIB$$95b84fc9.invoke(<generated>)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:800)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginServiceMBean$$EnhancerByCGLIB$$5d8c7715.connectToRealm(<generated>)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.geronimo.security.jaas.client.JaasLoginCoordinator.login(JaasLoginCoordinator.java:95)
> > > > > >         at
> > > > > >
> > > > >
> > >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > > > Method)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > > >         at
> > > > > >
> > > > >
> > > >
> > >
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > > > >         at
> > > > >
> java.lang.reflect.Method.invoke(Method.java:585)
> > > > > >         at
> 
=== message truncated ===




 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail.
http://new.mail.yahoo.com

Re: Question regd Geronimo and LoginModules

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
On 11/7/06, sreepriya ramakrishnan <sr...@yahoo.com> wrote:
> Hi Aaron,,
> What is an RA module?

J2EE Connector, Resource Adapter, RAR file, whatever you call it.  :)

Thanks,
     Aaron

> --- Aaron Mulder <am...@alumni.princeton.edu>
> wrote:
>
> > On 11/7/06, sreepriya ramakrishnan
> > <sr...@yahoo.com> wrote:
> > > I am using Geronimo1.0 application server. Is
> > there
> > > anything I can do for this?
> >
> > Ah, I didn't realize that.  There is a known issue
> > in Geronimo 1.0
> > that GBeans (which includes login modules) in a web
> > app are not able
> > to access classes in the WAR (WEB-INF/classes and
> > WEB-INF/lib).  That
> > was fixed in Geronimo 1.1.
> >
> > If you have an EJB or RA module in the EAR, you can
> > add the login
> > module classes to that instead.  Otherwise, I think
> > you might have to
> > work around it by either creating a dummy EJB or RA
> > module or just
> > putting the login classes in a JAR in the
> > repository.  (Or try
> > Geronimo 1.1.x)
> >
> > Thanks,
> >       Aaron
> >
> > > --- Aaron Mulder <am...@alumni.princeton.edu>
> > > wrote:
> > >
> > > > OK, we'll have to look into the code there.  It
> > may
> > > > be that this is a
> > > > bug where we use the wrong class loader to
> > attempt
> > > > to load the login
> > > > module.
> > > >
> > > > Thanks,
> > > >       Aaron
> > > >
> > > > On 11/7/06, sreepriya ramakrishnan
> > > > <sr...@yahoo.com> wrote:
> > > > > The login module class is in the
> > web-inf/classes
> > > > > folder.
> > > > >
> > > > > 15:10:28,499 ERROR [SecurityFilter]
> > > > > SecurityFilter.execute() : Exception
> > > > > javax.security.auth.login.LoginException:
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.common.GeronimoSecurityException:
> > > > > Unable to instantiate login module
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule(JaasLoginModuleConfiguration.java:71)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasSecuritySession.<init>(JaasSecuritySession.java:64)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginService.initializeClient(JaasLoginService.java:353)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginService.connectToRealm(JaasLoginService.java:169)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginService$$FastClassByCGLIB$$95b84fc9.invoke(<generated>)
> > > > >         at
> > > > >
> > > >
> > >
> >
> net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:800)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginServiceMBean$$EnhancerByCGLIB$$5d8c7715.connectToRealm(<generated>)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.security.jaas.client.JaasLoginCoordinator.login(JaasLoginCoordinator.java:95)
> > > > >         at
> > > > >
> > > >
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > > Method)
> > > > >         at
> > > > >
> > > >
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > > >         at
> > > > >
> > > >
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > > >         at
> > > > java.lang.reflect.Method.invoke(Method.java:585)
> > > > >         at
> > > > >
> > > >
> > >
> >
> javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
> > > > >         at
> > > > >
> > > >
> > >
> >
> javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
> > > > >         at
> > > > >
> > > >
> > >
> >
> javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
> > > > >         at
> > > >
> > java.security.AccessController.doPrivileged(Native
> > > > > Method)
> > > > >         at
> > > > >
> > > >
> > >
> >
> javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
> > > > >         at
> > > > >
> > > >
> > >
> >
> javax.security.auth.login.LoginContext.login(LoginContext.java:579)
> > > > >         at
> > > > >
> > > >
> > >
> >
> com.test.SecurityFilter.doFilter(SecurityFilter.java:273)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> > > > >         at
> > > > >
> > > >
> > >
> >
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
> >
> === message truncated ===
>
>
>
>
>
> ____________________________________________________________________________________
> Sponsored Link
>
> Degrees online in as fast as 1 Yr - MBA, Bachelor's, Master's, Associate
> Click now to apply http://yahoo.degrees.info
>

Re: Question regd Geronimo and LoginModules

Posted by sreepriya ramakrishnan <sr...@yahoo.com>.
Hi Aaron,,
What is an RA module?


--- Aaron Mulder <am...@alumni.princeton.edu>
wrote:

> On 11/7/06, sreepriya ramakrishnan
> <sr...@yahoo.com> wrote:
> > I am using Geronimo1.0 application server. Is
> there
> > anything I can do for this?
> 
> Ah, I didn't realize that.  There is a known issue
> in Geronimo 1.0
> that GBeans (which includes login modules) in a web
> app are not able
> to access classes in the WAR (WEB-INF/classes and
> WEB-INF/lib).  That
> was fixed in Geronimo 1.1.
> 
> If you have an EJB or RA module in the EAR, you can
> add the login
> module classes to that instead.  Otherwise, I think
> you might have to
> work around it by either creating a dummy EJB or RA
> module or just
> putting the login classes in a JAR in the
> repository.  (Or try
> Geronimo 1.1.x)
> 
> Thanks,
>       Aaron
> 
> > --- Aaron Mulder <am...@alumni.princeton.edu>
> > wrote:
> >
> > > OK, we'll have to look into the code there.  It
> may
> > > be that this is a
> > > bug where we use the wrong class loader to
> attempt
> > > to load the login
> > > module.
> > >
> > > Thanks,
> > >       Aaron
> > >
> > > On 11/7/06, sreepriya ramakrishnan
> > > <sr...@yahoo.com> wrote:
> > > > The login module class is in the
> web-inf/classes
> > > > folder.
> > > >
> > > > 15:10:28,499 ERROR [SecurityFilter]
> > > > SecurityFilter.execute() : Exception
> > > > javax.security.auth.login.LoginException:
> > > >
> > >
> >
>
org.apache.geronimo.common.GeronimoSecurityException:
> > > > Unable to instantiate login module
> > > >         at
> > > >
> > >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule(JaasLoginModuleConfiguration.java:71)
> > > >         at
> > > >
> > >
> >
>
org.apache.geronimo.security.jaas.server.JaasSecuritySession.<init>(JaasSecuritySession.java:64)
> > > >         at
> > > >
> > >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginService.initializeClient(JaasLoginService.java:353)
> > > >         at
> > > >
> > >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginService.connectToRealm(JaasLoginService.java:169)
> > > >         at
> > > >
> > >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginService$$FastClassByCGLIB$$95b84fc9.invoke(<generated>)
> > > >         at
> > > >
> > >
> >
>
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> > > >         at
> > > >
> > >
> >
>
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> > > >         at
> > > >
> > >
> >
>
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
> > > >         at
> > > >
> > >
> >
>
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:800)
> > > >         at
> > > >
> > >
> >
>
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> > > >         at
> > > >
> > >
> >
>
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
> > > >         at
> > > >
> > >
> >
>
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> > > >         at
> > > >
> > >
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginServiceMBean$$EnhancerByCGLIB$$5d8c7715.connectToRealm(<generated>)
> > > >         at
> > > >
> > >
> >
>
org.apache.geronimo.security.jaas.client.JaasLoginCoordinator.login(JaasLoginCoordinator.java:95)
> > > >         at
> > > >
> > >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > > Method)
> > > >         at
> > > >
> > >
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > > >         at
> > > >
> > >
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > > >         at
> > > java.lang.reflect.Method.invoke(Method.java:585)
> > > >         at
> > > >
> > >
> >
>
javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
> > > >         at
> > > >
> > >
> >
>
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
> > > >         at
> > > >
> > >
> >
>
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
> > > >         at
> > >
> java.security.AccessController.doPrivileged(Native
> > > > Method)
> > > >         at
> > > >
> > >
> >
>
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
> > > >         at
> > > >
> > >
> >
>
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
> > > >         at
> > > >
> > >
> >
>
com.test.SecurityFilter.doFilter(SecurityFilter.java:273)
> > > >         at
> > > >
> > >
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> > > >         at
> > > >
> > >
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> > > >         at
> > > >
> > >
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> > > >         at
> > > >
> > >
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> > > >         at
> > > >
> > >
> >
>
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
> 
=== message truncated ===




 
____________________________________________________________________________________
Sponsored Link

Degrees online in as fast as 1 Yr - MBA, Bachelor's, Master's, Associate
Click now to apply http://yahoo.degrees.info

Re: Question regd Geronimo and LoginModules

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
On 11/7/06, sreepriya ramakrishnan <sr...@yahoo.com> wrote:
> I am using Geronimo1.0 application server. Is there
> anything I can do for this?

Ah, I didn't realize that.  There is a known issue in Geronimo 1.0
that GBeans (which includes login modules) in a web app are not able
to access classes in the WAR (WEB-INF/classes and WEB-INF/lib).  That
was fixed in Geronimo 1.1.

If you have an EJB or RA module in the EAR, you can add the login
module classes to that instead.  Otherwise, I think you might have to
work around it by either creating a dummy EJB or RA module or just
putting the login classes in a JAR in the repository.  (Or try
Geronimo 1.1.x)

Thanks,
      Aaron

> --- Aaron Mulder <am...@alumni.princeton.edu>
> wrote:
>
> > OK, we'll have to look into the code there.  It may
> > be that this is a
> > bug where we use the wrong class loader to attempt
> > to load the login
> > module.
> >
> > Thanks,
> >       Aaron
> >
> > On 11/7/06, sreepriya ramakrishnan
> > <sr...@yahoo.com> wrote:
> > > The login module class is in the web-inf/classes
> > > folder.
> > >
> > > 15:10:28,499 ERROR [SecurityFilter]
> > > SecurityFilter.execute() : Exception
> > > javax.security.auth.login.LoginException:
> > >
> >
> org.apache.geronimo.common.GeronimoSecurityException:
> > > Unable to instantiate login module
> > >         at
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule(JaasLoginModuleConfiguration.java:71)
> > >         at
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasSecuritySession.<init>(JaasSecuritySession.java:64)
> > >         at
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginService.initializeClient(JaasLoginService.java:353)
> > >         at
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginService.connectToRealm(JaasLoginService.java:169)
> > >         at
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginService$$FastClassByCGLIB$$95b84fc9.invoke(<generated>)
> > >         at
> > >
> >
> net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> > >         at
> > >
> >
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> > >         at
> > >
> >
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
> > >         at
> > >
> >
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:800)
> > >         at
> > >
> >
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> > >         at
> > >
> >
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
> > >         at
> > >
> >
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> > >         at
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginServiceMBean$$EnhancerByCGLIB$$5d8c7715.connectToRealm(<generated>)
> > >         at
> > >
> >
> org.apache.geronimo.security.jaas.client.JaasLoginCoordinator.login(JaasLoginCoordinator.java:95)
> > >         at
> > >
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > Method)
> > >         at
> > >
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > >         at
> > >
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > >         at
> > java.lang.reflect.Method.invoke(Method.java:585)
> > >         at
> > >
> >
> javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
> > >         at
> > >
> >
> javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
> > >         at
> > >
> >
> javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
> > >         at
> > java.security.AccessController.doPrivileged(Native
> > > Method)
> > >         at
> > >
> >
> javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
> > >         at
> > >
> >
> javax.security.auth.login.LoginContext.login(LoginContext.java:579)
> > >         at
> > >
> >
> com.test.SecurityFilter.doFilter(SecurityFilter.java:273)
> > >         at
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> > >         at
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> > >         at
> > >
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> > >         at
> > >
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> > >         at
> > >
> >
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
> > >         at
> > >
> >
> org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
> > >         at
> > >
> >
> org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
> > >         at
> > >
> >
> org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
> > >         at
> > >
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> > >         at
> > >
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> > >         at
> > >
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> > >         at
> > >
> >
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
> > >         at
> > >
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> > >         at
> > >
> >
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> > >         at
> > >
> >
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> > >         at
> > >
> >
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> > >         at
> > >
> >
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> > >         at
> > >
> >
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> > >         at java.lang.Thread.run(Thread.java:595)
> > > Caused by: java.lang.ClassNotFoundException:
> > > com.test.jaas.TestLoginModule
> > >         at
> > >
> >
> java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > >         at
> > java.security.AccessController.doPrivileged(Native
> > > Method)
> > >         at
> > >
> >
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > >         at
> > >
> >
> java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> > >         at
> > >
> >
> org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:209)
> > >         at
> > >
> >
> java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> > >         at
> > >
> >
> org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule(JaasLoginModuleConfiguration.java:69)
> > >         ... 43 more
> > >
> > >         at
> > >
> >
> javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
> > >         at
> > >
> >
> javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
> > >         at
> > >
> >
> javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
> > >         at
> > java.security.AccessController.doPrivileged(Native
> > > Method)
> > >         at
> > >
> >
> javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
> > >         at
> > >
> >
> javax.security.auth.login.LoginContext.login(LoginContext.java:579)
> > >         at
> > >
> >
> com.test.SecurityFilter.doFilter(SecurityFilter.java:273)
> > >         at
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> > >         at
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> >
> === message truncated ===
>
>
>
>
>
> ____________________________________________________________________________________
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail.
> http://new.mail.yahoo.com
>

Re: Question regd Geronimo and LoginModules

Posted by sreepriya ramakrishnan <sr...@yahoo.com>.
I am using Geronimo1.0 application server. Is there
anything I can do for this?


--- Aaron Mulder <am...@alumni.princeton.edu>
wrote:

> OK, we'll have to look into the code there.  It may
> be that this is a
> bug where we use the wrong class loader to attempt
> to load the login
> module.
> 
> Thanks,
>       Aaron
> 
> On 11/7/06, sreepriya ramakrishnan
> <sr...@yahoo.com> wrote:
> > The login module class is in the web-inf/classes
> > folder.
> >
> > 15:10:28,499 ERROR [SecurityFilter]
> > SecurityFilter.execute() : Exception
> > javax.security.auth.login.LoginException:
> >
>
org.apache.geronimo.common.GeronimoSecurityException:
> > Unable to instantiate login module
> >         at
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule(JaasLoginModuleConfiguration.java:71)
> >         at
> >
>
org.apache.geronimo.security.jaas.server.JaasSecuritySession.<init>(JaasSecuritySession.java:64)
> >         at
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginService.initializeClient(JaasLoginService.java:353)
> >         at
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginService.connectToRealm(JaasLoginService.java:169)
> >         at
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginService$$FastClassByCGLIB$$95b84fc9.invoke(<generated>)
> >         at
> >
>
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> >         at
> >
>
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> >         at
> >
>
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
> >         at
> >
>
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:800)
> >         at
> >
>
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> >         at
> >
>
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
> >         at
> >
>
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> >         at
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginServiceMBean$$EnhancerByCGLIB$$5d8c7715.connectToRealm(<generated>)
> >         at
> >
>
org.apache.geronimo.security.jaas.client.JaasLoginCoordinator.login(JaasLoginCoordinator.java:95)
> >         at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> >         at
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >         at
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at
> java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> >
>
javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
> >         at
> >
>
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
> >         at
> >
>
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
> >         at
> java.security.AccessController.doPrivileged(Native
> > Method)
> >         at
> >
>
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
> >         at
> >
>
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
> >         at
> >
>
com.test.SecurityFilter.doFilter(SecurityFilter.java:273)
> >         at
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> >         at
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> >         at
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> >         at
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> >         at
> >
>
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
> >         at
> >
>
org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
> >         at
> >
>
org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
> >         at
> >
>
org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
> >         at
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> >         at
> >
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> >         at
> >
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> >         at
> >
>
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
> >         at
> >
>
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> >         at
> >
>
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> >         at
> >
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> >         at
> >
>
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> >         at
> >
>
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> >         at
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> >         at java.lang.Thread.run(Thread.java:595)
> > Caused by: java.lang.ClassNotFoundException:
> > com.test.jaas.TestLoginModule
> >         at
> >
>
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >         at
> java.security.AccessController.doPrivileged(Native
> > Method)
> >         at
> >
>
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >         at
> >
>
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >         at
> >
>
org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:209)
> >         at
> >
>
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> >         at
> >
>
org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule(JaasLoginModuleConfiguration.java:69)
> >         ... 43 more
> >
> >         at
> >
>
javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
> >         at
> >
>
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
> >         at
> >
>
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
> >         at
> java.security.AccessController.doPrivileged(Native
> > Method)
> >         at
> >
>
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
> >         at
> >
>
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
> >         at
> >
>
com.test.SecurityFilter.doFilter(SecurityFilter.java:273)
> >         at
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> >         at
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 
=== message truncated ===




 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail.
http://new.mail.yahoo.com

Re: Question regd Geronimo and LoginModules

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
OK, we'll have to look into the code there.  It may be that this is a
bug where we use the wrong class loader to attempt to load the login
module.

Thanks,
      Aaron

On 11/7/06, sreepriya ramakrishnan <sr...@yahoo.com> wrote:
> The login module class is in the web-inf/classes
> folder.
>
> 15:10:28,499 ERROR [SecurityFilter]
> SecurityFilter.execute() : Exception
> javax.security.auth.login.LoginException:
> org.apache.geronimo.common.GeronimoSecurityException:
> Unable to instantiate login module
>         at
> org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule(JaasLoginModuleConfiguration.java:71)
>         at
> org.apache.geronimo.security.jaas.server.JaasSecuritySession.<init>(JaasSecuritySession.java:64)
>         at
> org.apache.geronimo.security.jaas.server.JaasLoginService.initializeClient(JaasLoginService.java:353)
>         at
> org.apache.geronimo.security.jaas.server.JaasLoginService.connectToRealm(JaasLoginService.java:169)
>         at
> org.apache.geronimo.security.jaas.server.JaasLoginService$$FastClassByCGLIB$$95b84fc9.invoke(<generated>)
>         at
> net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
>         at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>         at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
>         at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:800)
>         at
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>         at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
>         at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
>         at
> org.apache.geronimo.security.jaas.server.JaasLoginServiceMBean$$EnhancerByCGLIB$$5d8c7715.connectToRealm(<generated>)
>         at
> org.apache.geronimo.security.jaas.client.JaasLoginCoordinator.login(JaasLoginCoordinator.java:95)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
>         at
> javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
>         at
> javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
>         at java.security.AccessController.doPrivileged(Native
> Method)
>         at
> javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
>         at
> javax.security.auth.login.LoginContext.login(LoginContext.java:579)
>         at
> com.test.SecurityFilter.doFilter(SecurityFilter.java:273)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>         at
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
>         at
> org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
>         at
> org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
>         at
> org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>         at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.ClassNotFoundException:
> com.test.jaas.TestLoginModule
>         at
> java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native
> Method)
>         at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at
> java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at
> org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:209)
>         at
> java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at
> org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule(JaasLoginModuleConfiguration.java:69)
>         ... 43 more
>
>         at
> javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
>         at
> javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
>         at
> javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
>         at java.security.AccessController.doPrivileged(Native
> Method)
>         at
> javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
>         at
> javax.security.auth.login.LoginContext.login(LoginContext.java:579)
>         at
> com.test.SecurityFilter.doFilter(SecurityFilter.java:273)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>         at
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
>         at
> org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
>         at
> org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
>         at
> org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>         at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)
>
> 15:10:28,499 ERROR [SecurityFilter] Exit:
> doFilter(ServletRequest sreq, ServletResponse
> sres,FilterChain chain)
> 15:10:28,499 ERROR [[action]] Servlet.service() for
> servlet action threw exception
> java.lang.NullPointerException
>         at
> com.test.SecurityFilter.doFilter(SecurityFilter.java:307)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>         at
> org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
>         at
> org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
>         at
> org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
>         at
> org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>         at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>         at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)
>
>
>
>
> ____________________________________________________________________________________
> Sponsored Link
>
> Mortgage rates near 39yr lows. $420k for $1,399/mo.
> Calculate new payment!
> http://www.LowerMyBills.com/lre
>

Re: Question regd Geronimo and LoginModules

Posted by sreepriya ramakrishnan <sr...@yahoo.com>.
The login module class is in the web-inf/classes
folder.

15:10:28,499 ERROR [SecurityFilter]
SecurityFilter.execute() : Exception
javax.security.auth.login.LoginException:
org.apache.geronimo.common.GeronimoSecurityException:
Unable to instantiate login module
	at
org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule(JaasLoginModuleConfiguration.java:71)
	at
org.apache.geronimo.security.jaas.server.JaasSecuritySession.<init>(JaasSecuritySession.java:64)
	at
org.apache.geronimo.security.jaas.server.JaasLoginService.initializeClient(JaasLoginService.java:353)
	at
org.apache.geronimo.security.jaas.server.JaasLoginService.connectToRealm(JaasLoginService.java:169)
	at
org.apache.geronimo.security.jaas.server.JaasLoginService$$FastClassByCGLIB$$95b84fc9.invoke(<generated>)
	at
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:800)
	at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
	at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
	at
org.apache.geronimo.security.jaas.server.JaasLoginServiceMBean$$EnhancerByCGLIB$$5d8c7715.connectToRealm(<generated>)
	at
org.apache.geronimo.security.jaas.client.JaasLoginCoordinator.login(JaasLoginCoordinator.java:95)
	at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
	at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
	at
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
	at java.security.AccessController.doPrivileged(Native
Method)
	at
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
	at
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
	at
com.test.SecurityFilter.doFilter(SecurityFilter.java:273)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
	at
org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
	at
org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
	at
org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassNotFoundException:
com.test.jaas.TestLoginModule
	at
java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native
Method)
	at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at
java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at
org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:209)
	at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at
org.apache.geronimo.security.jaas.server.JaasLoginModuleConfiguration.getLoginModule(JaasLoginModuleConfiguration.java:69)
	... 43 more

	at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
	at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
	at
javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
	at java.security.AccessController.doPrivileged(Native
Method)
	at
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
	at
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
	at
com.test.SecurityFilter.doFilter(SecurityFilter.java:273)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
	at
org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
	at
org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
	at
org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)

15:10:28,499 ERROR [SecurityFilter] Exit:
doFilter(ServletRequest sreq, ServletResponse
sres,FilterChain chain)
15:10:28,499 ERROR [[action]] Servlet.service() for
servlet action threw exception
java.lang.NullPointerException
	at
com.test.SecurityFilter.doFilter(SecurityFilter.java:307)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272)
	at
org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53)
	at
org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47)
	at
org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.java:60)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)



 
____________________________________________________________________________________
Sponsored Link

Mortgage rates near 39yr lows. $420k for $1,399/mo. 
Calculate new payment!
http://www.LowerMyBills.com/lre

Re: Question regd Geronimo and LoginModules

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
Where did you put the login module class?

Also, can you post the stack trace of the exception?

Thanks,
      Aaron

On 11/7/06, sreepriya ramakrishnan <sr...@yahoo.com> wrote:
> Hi all,
>
> Following this,I added the realm details to the
> geronimo-web.xml and deployed the ear file.
> When I run the application, I get the exception that
> the Login Module class was not found.
>
> Am I missing somthing here?
>
> -Priya
>
> --- Aaron Mulder <am...@alumni.princeton.edu>
> wrote:
>
> > On 11/7/06, Vamsavardhana Reddy
> > <c1...@gmail.com> wrote:
> > > Hi Sreepriya,
> > >
> > >  It is not necessary that the login module classes
> > are put in the
> > > repository.  The classloader should be able to
> > load the login module class.
> > > login module class is no different from any other
> > class that you use in your
> > > enterprise app.
> >
> > Well, to be more specific, if you define the
> > security realm using the
> > admin console and deploy it either there or as a
> > standalone service,
> > the login module (and principal) classes must
> > normally be in a JAR the
> > repository (though if you deploy the security realm
> > standalone you can
> > actually supply the JAR along with the security
> > realm plan instead of
> > putting it in the repository manually).
> >
> > If you deploy the security realm as part if your
> > application, then the
> > login module and principal classes should be able to
> > be on the
> > application class loader (e.g. bundled in a WAR or
> > EJB JAR or added to
> > a JAR in the EAR that's on some module's Manifest
> > Class-Path) instead.
> >
> > Thanks,
> >       Aaron
> >
> > > On 11/8/06, sreepriya ramakrishnan
> > > <sr...@yahoo.com> wrote:
> > > > Hi all,
> > > >
> > > > I understand that for Geronimo to identify login
> > > > modules, the login modules must be jarred and
> > put in
> > > > the repository.
> > > >
> > > > I was wondering if there is some other way for
> > > > Geronimo to look for those Login module classes
> > in the
> > > > ear file itself?
> > > >
> > > > -Priya
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> ____________________________________________________________________________________
> > > > Do you Yahoo!?
> > > > Everyone is raving about the all-new Yahoo!
> > Mail.
> > > > http://new.mail.yahoo.com
> > > >
> > >
> > >
> >
>
>
>
>
>
> ____________________________________________________________________________________
> Sponsored Link
>
> Get a free Motorola Razr! Today Only!
> Choose Cingular, Sprint, Verizon, Alltel, or T-Mobile.
> http://www.letstalk.com/inlink.htm?to=592913
>

Re: Question regd Geronimo and LoginModules

Posted by sreepriya ramakrishnan <sr...@yahoo.com>.
Hi all,

Following this,I added the realm details to the
geronimo-web.xml and deployed the ear file.
When I run the application, I get the exception that
the Login Module class was not found.

Am I missing somthing here?

-Priya

--- Aaron Mulder <am...@alumni.princeton.edu>
wrote:

> On 11/7/06, Vamsavardhana Reddy
> <c1...@gmail.com> wrote:
> > Hi Sreepriya,
> >
> >  It is not necessary that the login module classes
> are put in the
> > repository.  The classloader should be able to
> load the login module class.
> > login module class is no different from any other
> class that you use in your
> > enterprise app.
> 
> Well, to be more specific, if you define the
> security realm using the
> admin console and deploy it either there or as a
> standalone service,
> the login module (and principal) classes must
> normally be in a JAR the
> repository (though if you deploy the security realm
> standalone you can
> actually supply the JAR along with the security
> realm plan instead of
> putting it in the repository manually).
> 
> If you deploy the security realm as part if your
> application, then the
> login module and principal classes should be able to
> be on the
> application class loader (e.g. bundled in a WAR or
> EJB JAR or added to
> a JAR in the EAR that's on some module's Manifest
> Class-Path) instead.
> 
> Thanks,
>       Aaron
> 
> > On 11/8/06, sreepriya ramakrishnan
> > <sr...@yahoo.com> wrote:
> > > Hi all,
> > >
> > > I understand that for Geronimo to identify login
> > > modules, the login modules must be jarred and
> put in
> > > the repository.
> > >
> > > I was wondering if there is some other way for
> > > Geronimo to look for those Login module classes
> in the
> > > ear file itself?
> > >
> > > -Priya
> > >
> > >
> > >
> > >
> > >
> >
>
____________________________________________________________________________________
> > > Do you Yahoo!?
> > > Everyone is raving about the all-new Yahoo!
> Mail.
> > > http://new.mail.yahoo.com
> > >
> >
> >
> 




 
____________________________________________________________________________________
Sponsored Link

Get a free Motorola Razr! Today Only! 
Choose Cingular, Sprint, Verizon, Alltel, or T-Mobile. 
http://www.letstalk.com/inlink.htm?to=592913

Re: Question regd Geronimo and LoginModules

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
On 11/7/06, Vamsavardhana Reddy <c1...@gmail.com> wrote:
> Hi Sreepriya,
>
>  It is not necessary that the login module classes are put in the
> repository.  The classloader should be able to load the login module class.
> login module class is no different from any other class that you use in your
> enterprise app.

Well, to be more specific, if you define the security realm using the
admin console and deploy it either there or as a standalone service,
the login module (and principal) classes must normally be in a JAR the
repository (though if you deploy the security realm standalone you can
actually supply the JAR along with the security realm plan instead of
putting it in the repository manually).

If you deploy the security realm as part if your application, then the
login module and principal classes should be able to be on the
application class loader (e.g. bundled in a WAR or EJB JAR or added to
a JAR in the EAR that's on some module's Manifest Class-Path) instead.

Thanks,
      Aaron

> On 11/8/06, sreepriya ramakrishnan
> <sr...@yahoo.com> wrote:
> > Hi all,
> >
> > I understand that for Geronimo to identify login
> > modules, the login modules must be jarred and put in
> > the repository.
> >
> > I was wondering if there is some other way for
> > Geronimo to look for those Login module classes in the
> > ear file itself?
> >
> > -Priya
> >
> >
> >
> >
> >
> ____________________________________________________________________________________
> > Do you Yahoo!?
> > Everyone is raving about the all-new Yahoo! Mail.
> > http://new.mail.yahoo.com
> >
>
>

Re: Question regd Geronimo and LoginModules

Posted by Vamsavardhana Reddy <c1...@gmail.com>.
Hi Sreepriya,

It is not necessary that the login module classes are put in the
repository.  The classloader should be able to load the login module class.
login module class is no different from any other class that you use in your
enterprise app.

--vamsi

On 11/8/06, sreepriya ramakrishnan <sr...@yahoo.com> wrote:
>
> Hi all,
>
> I understand that for Geronimo to identify login
> modules, the login modules must be jarred and put in
> the repository.
>
> I was wondering if there is some other way for
> Geronimo to look for those Login module classes in the
> ear file itself?
>
> -Priya
>
>
>
>
>
> ____________________________________________________________________________________
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail.
> http://new.mail.yahoo.com
>