Results 1 to 2 of 2

Thread: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration...

  1. #1
    Join Date
    Feb 2012
    Posts
    2

    Smile cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration...

    cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'http'.

    Here is my XML profile:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans:beans xmlns="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/schem...-beans-2.5.xsd
    http://www.springframework.org/schema/security/
    http://www.springframework.org/schema/security/spring-security-2.0.4.xsd">

    <http auto-config="true" access-denied-page="/accessDenied.jsp">
    <intercept-url pattern="/login.jsp" filters="none" />
    <intercept-url pattern="/jsp/forgotpassword.jsp"
    filters="none" />

    <form-login login-page="/login.jsp"
    authentication-failure-url="/login.jsp?error=true"
    default-target-url="/index.jsp" />
    </http>
    <beans:bean id="myFilter"
    class="com.neu.pms.security.MyFilterSecurityInterc eptor">
    <custom-filter before="FILTER_SECURITY_INTERCEPTOR" />
    <beansroperty name="authenticationManager" ref="authenticationManager" />
    <beansroperty name="accessDecisionManager" ref="myAccessDecisionManager" />
    <beansroperty name="objectDefinitionSource" ref="myObjectDefinitionSource" />
    </beans:bean>
    <authentication-manager alias="authenticationManager" />
    <authentication-provider user-service-ref="userDetailsManager">
    <password-encoder ref="passwordEncoder">
    <salt-source user-property="username" />
    </password-encoder>
    </authentication-provider>

    <beans:bean id="myAccessDecisionManager"
    class="com.neu.pms.security.AccessDecisionManagerI mpl">
    </beans:bean>

    <beans:bean id="myObjectDefinitionSource"
    class="com.neu.pms.security.web.FilterInvocationDe finitionSourceImpl">
    </beans:bean>
    </beans:beans>

    1.jpg

    My ide is MyEclipse8.0GA.

    Could anyone help me ??? Very thanks.

  2. #2
    Join Date
    Nov 2006
    Location
    London, UK and Tallinn, Estonia
    Posts
    55

    Default

    Eclipse is a bit of a pain regarding schemas, you are probably getting the error because eclipse can't download the schema from http://www.springframework.org/schem...rity-2.0.4.xsd

    One option is to manually download the schema from that url and then add it to Eclipse's catalog:

    Go to Eclipse Preferences -> XML -> XML Catalog and add the Schema
    Toby Hobson
    toby.hobson@cloudseal.com
    Single Sign on for Java - www.cloudseal.com
    Follow me on Twitter: tobyhobson

Tags for this Thread

Posting Permissions

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