This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Spring and the fly likes The matching wildcard is strict, but no declaration can be found for element 'authentication-provide Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "The matching wildcard is strict, but no declaration can be found for element Watch "The matching wildcard is strict, but no declaration can be found for element New topic
Author

The matching wildcard is strict, but no declaration can be found for element 'authentication-provide

Jay Abrahm
Ranch Hand

Joined: May 28, 2008
Posts: 183
I have the following header defined for adding Spring security. I get the following compile time exception but the application runs fine.

Do I have to do any settings for the IDE to understand the definitions. All the other Spring configuration files work fine.

Failed to read schema document ‘http://www.springframework.org/schema/security/spring-security-2.0.1.xsd’

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'authentication-provider'. applicationContext-security.xml spring-security-samples-tutorial-2.0.4/WebContent/WEB-INF line 57 XML Problem

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'global-method-security'. applicationContext-security.xml spring-security-samples-tutorial-2.0.4/WebContent/WEB-INF line 19 XML Problem

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'http'. applicationContext-security.xml spring-security-samples-tutorial-2.0.4/WebContent/WEB-INF line 25 XML Problem
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

I replied to your other thread.

Do you want me to close the other thread and use this one instead, or close this one and continue in the other thread?

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Jay Abrahm
Ranch Hand

Joined: May 28, 2008
Posts: 183
Thanks, that fixed it.

I had made a lot of changes in the XML preferences (XML Schema File Settings, DTD, ...) a long time ago. I have reverted that and it worked. Just didn't know where to look.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The matching wildcard is strict, but no declaration can be found for element 'authentication-provide
 
Similar Threads
Trying to run web app but getting exception no declaration found for <context:componet>
Spring security - Need to secure methods - getting error
Adding spring-security-core-3.0.5 to org.springframework.core-3.0.0.M3
Error: The matching wildcard is strict, but no declaration can be found for element 'remember-me'
Error in Context xml file - cvc-complex-type.2.4.c: