Results 1 to 2 of 2

Thread: util:property-path not validating in v1.3.8

  1. #1
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    40

    Default util:property-path not validating in v1.3.8

    Hello,

    I am using Spring IDE 1.3.6
    There is a IDE validation problem with the following bean definition relating to util: property-path, but the application runs fine.

    Code:
    <bean id="myHandlerInterceptor" class="com.example.MyHandlerInterceptor" parent="someParent">
       <property name="productList">
            <util:property-path path="productService.releasedProducts" />
        </property>
    </bean>
    Using the spring v1 definition validates OK.
    Code:
    <bean id="myHandlerInterceptor" class="com.example.MyHandlerInterceptor" parent="someParent">
       <property name="productList">
            <bean id="productService.releasedProducts" class="org.springframework.beans.factory.config.PropertyPathFactoryBean"/>
        </property>
    </bean>
    Can you confirm whether this is a problem? If so, would it be fixed in the latest v2 of the spring IDE?

    This the the error message in the IDE (with confidential bits blanked out):

    Error registering bean with name '....HandlerInterceptor' defined in file [.....-servlet.xml]: Unexpected failure during bean definition parsing; nested exception is org.springframework.ide.eclipse.beans.core.BeanDef initionException: Error registering bean with name '....HandlerInterceptor' defined in file [...-servlet.xml]: Unknown property sub-element: <util: property-path> ........-servlet.xml line 121

  2. #2
    Join Date
    Aug 2004
    Location
    Frankfurt/Main, Germany
    Posts
    253

    Default

    Quote Originally Posted by fuzziman View Post
    Can you confirm whether this is a problem? If so, would it be fixed in the latest v2 of the spring IDE?
    Spring IDE 1.x doesn't support the new features introduced with Spring 2.0's (including XML namespaces). It validates against Spring 1.2.8's DTD only. The upcoming Spring IDE 2.0 will close this gap.

Posting Permissions

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