Announcement Announcement Module
Collapse
No announcement yet.
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration... Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Attachment

    My ide is MyEclipse8.0GA.

    Could anyone help me ??? Very thanks.
    Attached Files

  • #2
    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

    Comment

    Working...
    X