Closed spring-projects-issues closed 14 years ago
Ian Brandt said:
Hmm, looks like you don't support the JIRA wiki syntax I'm used to, and I also can't seem to edit my own issue, so my apologies for the formatting issues in the description above.
Luke Taylor said:
In what context is the error occurring? The eclipse editor, running a test, an application or whatever? Where does the error message occur - is there actually a stacktrace or just a message in eclipse?
Do you get the error if you are using standard eclipse without MyEclipse? Maybe their integration has problems with the latest version?
Rob Winch said:
Just out of curiosity what version of spring-security-config are you using? I believe I have seen users with this issue on the forums. The issue I am thinking of occurs when loading a Spring config using spring-security-config-[3.0,3.0.2].jar and specifying a spring-security namespace of 3.0.3. The validation of the schema version was updated in 3.0.3 to allow for 3.0.x vs 3.0. This update did not occur till then because there were no 3.0.1 and 3.0.2 versions of the schema.
If this is the problem you are encountering, you can fix it by doing one of the following:
1) Upgrade to spring-security-config-3.0.3.jar 2) Change the namespace declaration to be 3.0
Ian Brandt said:
Thanks for the comments. After some digging it looks like this is a MyEclipse issue, so feel free to resolve as invalid. I'll take this up on the MyEclipse forums.
For anyone else that runs into this here were my findings... The context is in the Eclipse Problems view related to the Spring Beans Project Validators. Just a message, no stack trace. When I run my webapp everything works fine. It looks like MyEclipse 8.6 is using Spring Security 3.0.1 internally dor validation. I do have 3.0.3 in the build path for my project. If I check "Project Properties > MyEclipse > Spring > Beans > Load NamespaceHandlers and XSDs from project's classpath [Experimental]" I can refer to the 3.0.3 XSD without a validation Error. Though then with the config above I do get a warning in the Problems view, "Referenced bean 'org.springframework.security.core.userdetails.memory.InMemoryDaoImpl' not found". If I uncheck the option and fall back on referring to the 3.0 XSD I get a different warning, "Class 'org.springframework.security.core.userdetails.memory.UserMap' is marked deprecated". Neither is a show stopper of course, I'm just documenting them for the sake of completeness.
Luke Taylor said:
Thanks for investigating further. Closing as requested.
Ian Brandt (Migrated from SEC-1565) said:
I'm getting the following error in Eclipse when referencing the spring-security-3.0.3.xsd schema:
Per the docs at http://static.springsource.org/spring-security/site/docs/3.0.x/reference/springsecurity-single.html#d0e344 as referenced on 2010-09-07 my config looks like:
From a quick glance at the SecurityNamespaceHandler source I would think the first "(?m)._spring-security-3.0._xsd.*" regex would match, but I'm not currently setup to debug Eclipse itself to see if there is something else going on. Oddly enough if I change to "spring-security-3.0.xsd" and clean the project the error goes away: