Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7933107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:13:37+00:00 2026-06-03T21:13:37+00:00

I am trying to configure NTLM authentication, but receive error: cvc-complex-type.2.4.c: The matching wildcard

  • 0

I am trying to configure NTLM authentication, but receive error:

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

I read a lot of topics with a similar error, but I could not find a solution to my problem.

My security.xml file that causes an error is:

<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/schema/beans/spring-beans.xsd
                            http://www.springframework.org/schema/security
                            http://www.springframework.org/schema/security/spring-security.xsd" >
    
    <http access-denied-page="forms/error403.jsp" entry-point-ref="ntlmEntryPoint" servlet-api-provision="false"> 
        <intercept-url pattern="forms/error403.jsp" filters="none"/>
        <intercept-url pattern="forms/**" access="ROLE_GUEST,ROLE_OPERATOR,ROLE_ADMIN" />
                <custom-filter position="PRE_AUTH_FILTER"/>
    </http>
    
    <authentication-manager alias="mainAuthenticationManager"/>  
    <authentication-provider user-service-ref='userDetailsService' />

    <beans:bean id="userDetailsService"
        class="service.UserInfoService">
        <beans:property name="dataSource" ref="dataSource" />
        <beans:property name="usersByUsernameQuery" value="select distinct name, ' ' as password, 1 as enabled from TMP_SPRING_USERS where name=?" />
        <beans:property name="authoritiesByUsernameQuery" value="select name, role from TMP_SPRING_USERS where name=?" />
    </beans:bean>
      
    <beans:bean id="ntlmEntryPoint"
        class="org.springframework.security.ui.ntlm.NtlmProcessingFilterEntryPoint">
        <beans:property name="authenticationFailureUrl" value="forms/error403.html" />
    </beans:bean>
        
    <beans:bean id="exceptionTranslationFilter"
        class="org.springframework.security.ui.ExceptionTranslationFilter">
        <beans:property name="authenticationEntryPoint" ref="ntlmEntryPoint" />
    </beans:bean>
    
    <beans:bean id="ntlmFilter"
        class="org.springframework.security.ui.ntlm.NtlmProcessingFilter">
        <custom-filter position="NTLM_FILTER" />
        <beans:property name="authenticationManager" ref="mainAuthenticationManager" />
        <beans:property name="retryOnAuthFailure" value="true" />
        <beans:property name="stripDomain" value="true"/>
        <beans:property name="domainController" value="company.com" />
        <beans:property name="jcifsProperties">
            <beans:props>
                <beans:prop key="jcifs.smb.lmCompatibility">0</beans:prop> 
                <beans:prop key="jcifs.smb.client.useExtendedSecurity">false</beans:prop> 
                <beans:prop key="jcifs.smb.client.domain">COMPANY</beans:prop>
                <beans:prop key="jcifs.smb.client.username">somenycuser</beans:prop>
                <beans:prop key="jcifs.smb.client.password">AReallyLoooongRandomPassword</beans:prop>
            </beans:props> 
        </beans:property> 
    </beans:bean>
    
  
</beans:beans>

Because as of version 3.X Spring Security doesn’t include the NTLM extension anymore, I use it from http://aloiscochard.blogspot.com/2010/03/spring-security-ntlm-3.html article.

Please help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:13:39+00:00Added an answer on June 3, 2026 at 9:13 pm

    The problem solved, I forgot to add spring-security-config.jar. Also I changed some settings. The right security.xml is::

    <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/schema/beans/spring-beans-3.0.xsd
                                http://www.springframework.org/schema/security
                                http://www.springframework.org/schema/security/spring-security-3.0.4.xsd" >
    
        <http access-denied-page="forms/error403.jsp" entry-point-ref="ntlmEntryPoint" servlet-api-provision="false"> 
                    <intercept-url pattern="/**" access="ROLE_GUEST,ROLE_OPERATOR,ROLE_ADMIN" />
                    <custom-filter position="PRE_AUTH_FILTER" ref="ntlmFilter"/>
            </http>
    
        <authentication-manager alias="mainAuthenticationManager">  
                <authentication-provider user-service-ref="userDetailsService" />
            </authentication-manager>
    
        <beans:bean id="userDetailsService"
            class="service.UserInfoService">
            <beans:property name="dataSource" ref="dataSource" />
            <beans:property name="usersByUsernameQuery" value="select distinct name, ' ' as password, 1 as enabled from TMP_SPRING_USERS where name=?" />
            <beans:property name="authoritiesByUsernameQuery" value="select name, role from TMP_SPRING_USERS where name=?" />
        </beans:bean>
    
        <beans:bean id="ntlmEntryPoint"
            class="org.springframework.security.ui.ntlm.NtlmAuthenticationFilterEntryPoint">
            <beans:property name="authenticationFailureUrl" value="forms/error403.html" />
        </beans:bean>
    
    
    
        <beans:bean id="ntlmFilter"
            class="org.springframework.security.ui.ntlm.NtlmAuthenticationFilter">
                    <beans:property name="authenticationManager" ref="mainAuthenticationManager" />
            <beans:property name="retryOnAuthFailure" value="true" />
            <beans:property name="stripDomain" value="true"/>
            <beans:property name="domainController" value="company.com" />
            <beans:property name="jcifsProperties">
                <beans:props>
                    <beans:prop key="jcifs.smb.lmCompatibility">0</beans:prop> 
                    <beans:prop key="jcifs.smb.client.useExtendedSecurity">false</beans:prop> 
                    <beans:prop key="jcifs.smb.client.domain">COMPANY</beans:prop>
                    <beans:prop key="jcifs.smb.client.username">somenycuser</beans:prop>
                    <beans:prop key="jcifs.smb.client.password">AReallyLoooongRandomPassword</beans:prop>
                </beans:props> 
            </beans:property> 
        </beans:bean>
    
    
    </beans:beans>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying configure AzMan but I Have got problem with code. Can you explain
I've been trying to configure the new Facebook Javascript API with my website, but
I'm trying to configure distributed search in Solr 1.4. It can work perfectly by
I'm trying to configure a web application that can use client-side JavaScript for localization
I'm trying to configure Apache Tomcat to use SSL connection with client authentication (two
I am trying to configure an ActiveDirectoryMembershipProvider but I keep getting the message Unable
I'm trying to configure servlet to send a message to Gmail, but I'm getting
I keep trying to configure Open Splice on the Eclipse platform but I'm not
I am trying to configure data-source in WAS 7 and facing below mentioned error.
I'm not trying to configure log4j for an Eclipse project but for the IDE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.