Results 1 to 4 of 4

Thread: Spring-flex 1.5 / Spring security 3 / CNFE AntUrlPathMatcher

Hybrid View

  1. #1

    Default Spring-flex 1.5 / Spring security 3 / CNFE AntUrlPathMatcher

    I have upgraded a project to use Spring 3.0.4, Spring Security 3.1.0.M1 and Spring-flex 1.5. I am getting the following error:

    org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext-habittracker-flex.xml]; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/web/util/AntUrlPathMatcher
    The closest match I can find is:

    Code:
    org.springframework.security.web.util.AntPathRequestMatcher
    but it seems to have significantly different method signatures.

    Does anyone know where AntUrlPathMatcher is?

  2. #2

    Default

    I am not sure what I did but I have obviously changed something as I am now getting:

    Code:
    java.lang.ClassNotFoundException: org.springframework.security.ConfigAttributeDefinition
    This is only occurring if I am using the:

    Code:
    <flex:secured />
    Without it, everything works fine. I am wondering if Spring-flex is thinking that I am using the old Spring-security-2 for some reason? I have checked there are no old jars laying around.

    This is my spring-flex-config:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    
    <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context"
           xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx"
           xmlns:flex="http://www.springframework.org/schema/flex"
           xsi:schemaLocation="
                           http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                           http://www.springframework.org/schema/flex
                           http://www.springframework.org/schema/flex/spring-flex-1.0.xsd">
    
        <!--
        =============================================================================================
        START: Definitions required for Spring-BlazeDS integration
        =============================================================================================
        -->
    
        <!--
        This sets up the basic integrtion between Spring and BlazeDS. See the documentation is you need a more complex setup
        -->
        <flex:message-broker>
            <flex:exception-translator ref="springBlazeDSExceptionLogger"/>
            <flex:secured>
                <flex:secured-channel channel="habittracker-amf" access="ROLE_USER" />
                <flex:secured-channel channel="habittracker-secure-amf" access="ROLE_USER" />
                <flex:secured-channel channel="habittracker-polling-amf" access="ROLE_USER" />
            </flex:secured>
        </flex:message-broker>
    
        <!-- Without this there will be no server side error logging if something goes wrong -->
        <bean id="springBlazeDSExceptionLogger" class="uk.co.prodia.habittracker.util.SpringBlazeDSExceptionLogger"/>
    
        <bean id="flexWrapperServiceHTUtil" class="uk.co.prodia.habittracker.service.wrapper.FlexWrapperServiceHTUtil">
           <property name="serviceHTUtil" ref="serviceHTUtil"/>
        </bean>
    
        <flex:remoting-destination  ref="flexWrapperServiceHTUtil" />
        <!--
        =============================================================================================
        END: Definitions required for Spring-BlazeDS integration
        =============================================================================================
        -->
    
    </beans>

  3. #3
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    That is indeed strange, since I've removed the Spring Security 2 support altogether in Spring Flex 1.5. Perhaps you've got an older spring-flex jar somewhere in your classpath?
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  4. #4

    Default

    Sorry for the slow reply. You were correct, I had one old jar in the lib folder that was confusing things. The reason for the slow reply was that I was getting help from a knock on effect. This is the thread, and I notice that you are the same person helping me out again.

Posting Permissions

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