Announcement Announcement Module
Collapse
No announcement yet.
parsing XML ClassCastException: ScopedProxyMode cannot be cast to ScopedProxyMode Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • parsing XML ClassCastException: ScopedProxyMode cannot be cast to ScopedProxyMode

    Hi All,

    I have the following web-application-config.xml:

    Code:
    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:context="http://www.springframework.org/schema/context"
           xsi:schemaLocation="
               http://www.springframework.org/schema/beans
               http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
               http://www.springframework.org/schema/context
               http://www.springframework.org/schema/context/spring-context-3.0.xsd">
    
    	<context:component-scan base-package="au.com.tgg.roq" />
    
    </beans>
    I get the following error on the context:component-scan base-package line:

    Code:
    Unexpected exception parsing XML document from file
    [C:/path/to/project/src/main/webapp/WEB-INF/config/web-application-config.xml];
    nested exception is java.lang.ClassCastException:
    org.springframework.context.annotation.ScopedProxyMode cannot be cast to
    org.springframework.context.annotation.ScopedProxyMode
    web-application-config.xml	/project/src/main/webapp/WEB-INF/config
    Unknown	Spring Beans Problem
    I thought it might have been this issue: http://forum.springsource.org/showthread.php?p=288876

    But when I opened the codebase in sts-2.3.1.RELEASE, I get the same error still.

    Any advice would be most helpful!

    Rob

  • #2
    Fixed by updating to STS 2.3.2 from nightly builds.
    http://jira.springframework.org/browse/IDE-1098

    Comment


    • #3
      Hi,

      I'm sorry that you ran into this issue.

      We just released STS 2.3.2 which contains a fix for this and a related issue.

      Regards, Christian

      Comment

      Working...
      X