-
Jul 17th, 2012, 04:03 PM
#11
Thank you for your patience as well. I created SEC-2009 to ensure that support for ./gradlew eclipse is added back.
-
Jul 19th, 2012, 03:45 PM
#12
Hi all,
I am also having some trouble getting the sample tutorial to work. Admittedly, today is my first time importing a Git project or executing a Gradle script, so I'm probably missing a step (sorry in advance)! In any case, following the same walkthrough, I obtained the source from git then attempted to import using the Gradle Plugin by browsing to the root folder (../spring-security) and clicking "Build Model". The build fails with the following message:
* What went wrong:
A problem occurred evaluating root project 'spring-security'.
Cause: Could not find property 'ext' on root project 'spring-security'.
...
Caused by: groovy.lang.MissingPropertyException: Could not find property 'ext' on root project 'spring-security'.
at org.gradle.api.internal.AbstractDynamicObject.prop ertyMissingException(AbstractDynamicObject.java:43 )
at org.gradle.api.internal.AbstractDynamicObject.getP roperty(AbstractDynamicObject.java:35)
at org.gradle.api.internal.CompositeDynamicObject.get Property(CompositeDynamicObject.java:54)
at org.gradle.api.internal.project.DefaultProject_Dec orated.getProperty(Unknown Source)
at build_1numtpo3jc682r7jto6rfrhvqb$_run_closure1.doC all(C:\Users\john.rodriguez\git\spring-security\build.gradle:7)
at org.gradle.util.ConfigureUtil.configure(ConfigureU til.java:136)
at org.gradle.util.ConfigureUtil.configure(ConfigureU til.java:85)
at org.gradle.api.internal.project.AbstractProject.co nfigure(AbstractProject.java:866)
at org.gradle.api.internal.project.AbstractProject.co nfigure(AbstractProject.java:871)
at org.gradle.api.internal.project.AbstractProject.al lprojects(AbstractProject.java:858)
at org.gradle.api.internal.BeanDynamicObject.invokeMe thod(BeanDynamicObject.java:158)
at org.gradle.api.internal.CompositeDynamicObject.inv okeMethod(CompositeDynamicObject.java:93)
at org.gradle.api.internal.project.DefaultProject_Dec orated.invokeMethod(Unknown Source)
at org.gradle.groovy.scripts.BasicScript.methodMissin g(BasicScript.groovy:72)
at build_1numtpo3jc682r7jto6rfrhvqb.run(C:\Users\john .rodriguez\git\spring-security\build.gradle:5)
at org.gradle.groovy.scripts.internal.DefaultScriptRu nnerFactory$ScriptRunnerImpl.run(DefaultScriptRunn erFactory.java:52)
... 56 more
My env:
Windows 7 Enterprise SP1
Java 1.6
STS 2.9.2.RELEASE
STS Gradle Integration 2.9.0.201203010842-RELEASE
Any ideas?
-
Jul 19th, 2012, 03:52 PM
#13
It sounds like the incorrect Gradle version is being used (it should be using Gradle 1.0). Check your Gradle settings to see if it is using "Gradle Wrapper's Default".
-
Jul 19th, 2012, 05:36 PM
#14
That did the trick. Thanks!
-
Jul 19th, 2012, 05:42 PM
#15
one minor side note: when I run the "spring-security-config" unit tests as in the screencast, I get the following stack trace. Is my config still off?
org.springframework.ldap.NameNotFoundException: [LDAP: error code 32 - NO_SUCH_OBJECT: failed for SearchRequest
baseDn : '0.9.2342.19200300.100.1.1=ben,2.5.4.11=people,0.9 .2342.19200300.100.1.25=springframework,0.9.2342.1 9200300.100.1.25=org'
filter : '(2.5.4.0=*)'
scope : base object
typesOnly : false
Size Limit : no limit
Time Limit : no limit
Deref Aliases : deref Always
attributes :
: Attempt to search under non-existant entry: uid=ben,ou=people,dc=springframework,dc=org]; nested exception is javax.naming.NameNotFoundException: [LDAP: error code 32 - NO_SUCH_OBJECT: failed for SearchRequest
baseDn : '0.9.2342.19200300.100.1.1=ben,2.5.4.11=people,0.9 .2342.19200300.100.1.25=springframework,0.9.2342.1 9200300.100.1.25=org'
filter : '(2.5.4.0=*)'
scope : base object
typesOnly : false
Size Limit : no limit
Time Limit : no limit
Deref Aliases : deref Always
attributes :
: Attempt to search under non-existant entry: uid=ben,ou=people,dc=springframework,dc=org]; remaining name 'uid=ben,ou=people'
at org.springframework.ldap.support.LdapUtils.convert LdapException(LdapUtils.java:174)
at org.springframework.ldap.core.LdapTemplate.execute WithContext(LdapTemplate.java:810)
at org.springframework.ldap.core.LdapTemplate.execute ReadOnly(LdapTemplate.java:793)
at org.springframework.ldap.core.LdapTemplate.lookup( LdapTemplate.java:834)
at org.springframework.security.config.ldap.LdapServe rBeanDefinitionParserTests.embeddedServerCreationC ontainsExpectedContextSourceAndData(LdapServerBean DefinitionParserTests.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runRefle ctiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallabl e.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExpl osively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod .evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunAfters.ev aluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild( BlockJUnit4ClassRunner.java:76)
at org.junit.runners.BlockJUnit4ClassRunner.runChild( BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner. java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRu nner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentR unner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRu nner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRu nner.java:184)
at org.junit.runners.ParentRunner.run(ParentRunner.ja va:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestR eference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecutio n.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.main(RemoteTestRunner.java:197)
Caused by: javax.naming.NameNotFoundException: [LDAP: error code 32 - NO_SUCH_OBJECT: failed for SearchRequest
baseDn : '0.9.2342.19200300.100.1.1=ben,2.5.4.11=people,0.9 .2342.19200300.100.1.25=springframework,0.9.2342.1 9200300.100.1.25=org'
filter : '(2.5.4.0=*)'
scope : base object
typesOnly : false
Size Limit : no limit
Time Limit : no limit
Deref Aliases : deref Always
attributes :
: Attempt to search under non-existant entry: uid=ben,ou=people,dc=springframework,dc=org]; remaining name 'uid=ben,ou=people'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.jav a:3066)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCt x.java:2987)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCt x.java:2794)
at com.sun.jndi.ldap.LdapCtx.c_lookup(LdapCtx.java:10 11)
at com.sun.jndi.toolkit.ctx.ComponentContext.p_lookup (ComponentContext.java:526)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.l ookup(PartialCompositeContext.java:159)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.l ookup(PartialCompositeContext.java:148)
at javax.naming.InitialContext.lookup(InitialContext. java:392)
at org.springframework.ldap.core.LdapTemplate$10.exec uteWithContext(LdapTemplate.java:836)
at org.springframework.ldap.core.LdapTemplate.execute WithContext(LdapTemplate.java:807)
... 26 more
-
Jul 19th, 2012, 05:54 PM
#16
This is a problem that exists with the test setup in Eclipse. The issue has to do with having multiple *.ldif files available on the classpath. Please feel free to log a JIRA and I will see if there is something that can be done to fix the issue (Eclipse is a bit tricky when it comes to dealing with test dependencies on other projects).
-
Jul 20th, 2012, 02:13 PM
#17
Just to connect the dots SEC-2016 was logged to address this
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules