Results 1 to 3 of 3

Thread: Cannot get namespace configuration to work

  1. #1

    Default Cannot get namespace configuration to work

    Hi,

    I am running into a very frustrating error, whereby I can't see what the problem is.My Spring Security version is 3.0.2 and I am getting the following exception whenever I attempt to deploy the below security configuration. Anyone any ideas where I am going wrong here?

    Code:
    Context initialization failed
    INFO   | jvm 1    | 2011/01/23 11:50:14 | org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 13 in XML document from ServletContext resource [/WEB-INF/spring/specific-security-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'security:http'.
    INFO   | jvm 1    | 2011/01/23 11:50:14 |
    Code:
    <beans:beans xmlns:security="http://www.springframework.org/schema/security"
    xmlns:beans="http://www.springframework.org/schema/beans" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd">
    
    	<security:http create-session="never" auto-config="false" session-fixation-protection="none" entry-point-ref="entryPoint" 
    	access-decision-manager-ref="accessDecisionManager" access-denied-page="/UnauthorizedAccess.do">
    <security:intercept-url pattern="/js/*.js" filters="none"/>
    		
    	</security:http>

  2. #2
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    Use the latest version (don't use 3.0.2), and start with one of the sample applications as an outline, so that you have the correct XML and jar files in place.

    In particular, make sure you are using the "spring-security-config" jar.
    Spring - by Pivotal
    twitter @tekul

  3. #3

    Default

    Managed to resolve this. I thought I had the spring-security-config.jar in place but turns out I didn't

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •