|
Hi, I´m trying to deploy a War in Geronimo with my own Security Realm. First, I add an entry in Common libraries (the jar containing my classes) Next, I add a security realm. And finally, I deploy my a web app with the following deployment plan: ---------------------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://geronimo.apache.org/xml/ns/web" xmlns:naming="http://geronimo.apache.org/xml/ns/naming" configId="ibms" parentId="geronimo/j2ee-server/1.0/car"> <dependency> <uri>ibms/ibmsauth/0.9.1/jar</uri> </dependency> <context-root>/ibms</context-root> <context-priority-classloader>true</context-priority-classloader> <security-realm-name>ibms</security-realm-name> <security> <default-principal> <principal name="anonymous" class="com.ias.ibms.auth.IBMSRole" /> </default-principal> </security> </web-app> ---------------------------------------------------------------------------------------------------------- The deploy is correct but when I try to access to my application , occurs the following exception: ---------------------------------------------------------------------------------------------------------- 10:40:09,241 WARN [TomcatGeronimoRealm] Login exception authenticating username "pancho" 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$$901db4a3.connectToRealm(<generated>) at org.apache.geronimo.security.jaas.client.JaasLoginCoordinator.login(JaasLoginCoordinator.java:95) ... Caused by: java.lang.ClassNotFoundException: com.ias.ibms.auth.nullauth.NullAuthLogin 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) ... 44 more ---------------------------------------------------------------------------------------------------------- Have somebody an idea,why the class is not found? I see it in common libraries Thanks, Yeray Cabrera |
begin:vcard fn:Yeray Cabrera Santana n:Cabrera Santana;Yeray org:Integra Soluciones Avanzadas email;internet:[EMAIL PROTECTED] tel;work:+34 928 465 203 url:http://www.IntegraAS.com version:2.1 end:vcard
