When I run the "security setup" command for the "clinic" app I get the following error in Eclipse STS.
Any help is appreciated. I am enclosing the XML file.
Description Resource Path Location Type
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'authentication-manager'. applicationContext-security.xml /petclinic/src/main/resources/META-INF/spring line 23 XML Problem
After running the security setup command you need to make sure that the new dependencies which were added as part of this command are also added to your application classpath. You can run 'perform eclipse' in the Roo shell or 'mvn eclipse:eclipse' in the root of your project. Then refresh your project in STS and let me know if you still have that issue. Alternatively you can also import your project as 'Maven project' into STS which would take care of maintaining the classpath for you automatically without the need for the perform eclipse command.
Stefan,
Thanks for your reply. I did what you asked and now I get the following error.
Multiple annotations found at this line:
- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/security/spring-security-3.0.xsd',
because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'http'.
Thanks for the update. I am glad it works for you now. Another thing that often helps when your project is somehow crook is to do a Project > Clean. Just for future reference.