Announcement Announcement Module
Collapse
No announcement yet.
Cannot get namespace configuration to work Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment


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

      Comment

      Working...
      X