Announcement Announcement Module
Collapse
No announcement yet.
XML Validation Errors with Spring IDE 2.3.1 and Spring 3.0.1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • XML Validation Errors with Spring IDE 2.3.1 and Spring 3.0.1

    Hi,

    I upgraded to Spring 3.0.1, and also upgraded Spring IDE to 2.3.1 (from update site http://www.springsource.org/update/e3.4)

    I get this error on several Spring XML files:

    Code:
    Unexpected exception parsing XML document from file [...]; nested exception is java.lang.ClassCastException: org.springframework.context.annotation.ScopedProxyMode cannot be cast to org.springframework.context.annotation.ScopedProxyMode
    Am I doing anything wrong?
    Is it a mismatch of Spring and SpringIDE versions?

    Thanks,
    Naaman

  • #2
    Hi Naaman,

    you're hitting a regression in STS 2.3.1.

    IDE-1098: Unexpected Exception parsing error ClassCastException ScopedProxyMode when using @Scope("request")
    http://jira.springframework.org/browse/IDE-1098

    This is going to be fixed in STS 2.3.2 due this upcoming week.

    Sorry for the inconvenience.

    Christian

    Comment


    • #3
      Thanks

      Thanks for the quick response!

      Another 2 issues -

      I am using the new Spring support for jsr303, as shown in the documentation:
      Code:
      <bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean" />
      And getting this error message:
      Build path is incomplete. Cannot find class file for javax/validation/ValidatorFactory
      Also - I now get an error for the following bean definition:
      Code:
      <bean factory-bean="someService" factory-method="getXXX">
              <constructor-arg value="xxx" />
      </bean>
      While the class is auto-detected, and is annotated like so:
      Code:
      @Component(value = "someService")
      public class SomeServiceImpl implements SomeService {...}
      I get the following error:
      Factory bean 'someService' not found ... Spring Beans Problem
      However - there is no problem at runtime, and all tests pass, so this leads me to suspect this is another regression problem in SpringIDE. Could this be the case?

      Thanks again,
      Naaman

      ps - just to make sure: I am using SpringIDE, not STS. Does the fix apply to both? (or is it just a different name for the same thing?)
      Last edited by nlif; Mar 22nd, 2010, 10:45 AM.

      Comment

      Working...
      X