|
I'm getting some weird errors when deploying a war (run-war) with the spring-security-ldap plugin version 1.0.6. Version 1.0.5 works fine except for the repository issues it has. Also this runs fine when using run-app instead of run-war.
The error I get from tomcat is : 2012-06-05 15:18:24,789 [pool-2-thread-1] ERROR [localhost].[/ricAuth] - Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ldapAuthoritiesPopulator': Cannot resolve reference to bean 'contextSource' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contextSource': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.security.ldap.DefaultSpringSecurityContextSource]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.security.ldap.DefaultSpringSecurityContextSource.setAuthenticationStrategy(Lorg/springframework/ldap/core/support/DirContextAuthenticationStrategy;)V at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contextSource': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.security.ldap.DefaultSpringSecurityContextSource]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.security.ldap.DefaultSpringSecurityContextSource.setAuthenticationStrategy(Lorg/springframework/ldap/core/support/DirContextAuthenticationStrategy;)V ... 5 more Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.security.ldap.DefaultSpringSecurityContextSource]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.security.ldap.DefaultSpringSecurityContextSource.setAuthenticationStrategy(Lorg/springframework/ldap/core/support/DirContextAuthenticationStrategy;)V ... 5 more Caused by: java.lang.NoSuchMethodError: org.springframework.security.ldap.DefaultSpringSecurityContextSource.setAuthenticationStrategy(Lorg/springframework/ldap/core/support/DirContextAuthenticationStrategy;)V ... 5 more 2012-06-05 15:18:24,791 [pool-2-thread-1] ERROR [localhost].[/ricAuth] - Exception sending context initialized event to listener instance of class org.grails.jaxrs.web.JaxrsListener org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jaxrsContext' is defined at org.grails.jaxrs.web.JaxrsUtils.getRequiredJaxrsContext(JaxrsUtils.java:76) at org.grails.jaxrs.web.JaxrsListener.contextInitialized(JaxrsListener.java:41) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) 2012-06-05 15:18:24,791 [pool-2-thread-1] ERROR core.StandardContext - Error listenerStart 2012-06-05 15:18:24,793 [pool-2-thread-1] ERROR core.StandardContext - Context [/ricAuth] startup failed due to previous errors 2012-06-05 15:18:24,795 [pool-2-thread-1] ERROR [localhost].[/ricAuth] - Exception sending context destroyed event to listener instance of class org.grails.jaxrs.web.JaxrsListener org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jaxrsContext' is defined at org.grails.jaxrs.web.JaxrsUtils.getRequiredJaxrsContext(JaxrsUtils.java:76) at org.grails.jaxrs.web.JaxrsListener.contextDestroyed(JaxrsListener.java:37) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) My tech stack: Grails 2.0.4 JDK 1.7 u04 STS 3.0.0 M1 Windows 7 64 bit Ent Plugins I have installed: blueprint 1.0.2 -- Blueprint CSS framework famfamfam 1.0.1 -- Silk icons from famfamfam.com hibernate 2.0.4 -- Hibernate for Grails jaxrs 0.6 -- JSR 311 plugin jbossas 1.0 -- JBoss AS Plugin jquery 1.7.1 -- JQuery for Grails jquery-ui 1.8.15 -- jQuery UI resources ldap 0.8.2 -- Adds easy to use LDAP connectivity mail 1.0 -- Provides Mail support to a running Grails application resources 1.1.6 -- Resources spring-security-core1.2.7.3 -- Spring Security Core Plugin spring-security-ldap1.0.6 -- LDAP authentication support for the Spring Security plugin. spring-security-ui 0.2 -- Spring Security UI tomcat 2.0.4 -- Apache Tomcat plugin for Grails webxml 1.4.1 -- WebXmlConfig |
|
This post has NOT been accepted by the mailing list yet.
I get the same error (run-war vs run-app). Did you find a resolution? Like you mentioned, my problems started when I started using in BuildConfig.groovy:
compile ":spring-security-core:1.2.7.3" compile ":spring-security-ldap:1.0.6" Any other downsides (repository issues) to reverting to 1.0.5 of the spring-security-ldap plugin I'm considering using just to get going again? My tech stack: Grails 2.0.4 JDK 1.6 STS 2.9.0 Windows 7 64 bit Ent |
|
In reply to this post by ross.oreto
Hi Ross,
Could you check if removing LDAP 0.8.2 fixes the issue for you? |
|
Hi everybody,
I have the same error. Removing the LDAP 0.8.2 Plugin worked for me. But I need this plugin to run queries to my LDAP server. Is there another way to have both at the same time (to deploy a war) or can the spring-security-ldap plugin run queries to the LDAP server and get a collection of users too? Btw: downgrading didn't work either BinaryTENSHi |
|
In reply to this post by ross.oreto
Hey Everyone,
I made a modification to the grails ldap plugin which fixes the error mentioned in this thread, If you would like me to send it to you just send me a Private Message. Best Regards, Eduardo GutiƩrrez |
|
This post has NOT been accepted by the mailing list yet.
This post was updated on .
hi,,
Can you please provide the changes done for spring-security-ldap 1.0.6, i am facing issue in deploying the war on weblogic. Ldap authentication is correct but, the navigations for the login an dlogout pages are not done. i am using grails2.1.0 spring-security-core 1.2.7.3 spring-security-ldap 1.0.6 with maven integration |
|
This post has NOT been accepted by the mailing list yet.
In reply to this post by edgtzolvera
Hey everyone,
Did someone find a solution for this? |
|
This post has NOT been accepted by the mailing list yet.
In reply to this post by ross.oreto
Here is the soluction that I've found: http://sharingcodes.blogspot.com/2012/11/grails-how-to-solve-ldap-plugin-error.html
|
|
Has there been any updates on a "proper" fix for this?
Luke, would it be possible to get the dependencies upgraded, at the very least, so that it doesn't conflict with the Spring Security LDAP plugin? I realize that this is a rather old plugin / project, but it works _so well_ for interacting with LDAP / Active Directory that it's a shame to see it languish. If I had time, I would possibly look into expanding this into a GORM plugin, since it's not too far from it already, but alas, my time is limited. |
| Powered by Nabble | Edit this page |
