Announcement Announcement Module

Spring Dynamic Modules forum decommissioned in favor of Eclipse Gemini Blueprint

With the official first release of Eclipse Gemini Blueprint shipped, the migration of the Spring Dynamic Modules code base to the Eclipse Foundation, as part of the Gemini project, has been completed.

As such, this forum has been decommissioned in favour of the Eclipse Gemini forums.
See more
See less
Need Help: Spring Security in OSGi Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need Help: Spring Security in OSGi

    I am trying to install a properly bundled(OSGi-fied) webapp which uses Spring security for authentication in Equinox (with Spring DM modules properly installed. All the dependent libraries are embedded within the WAR and the MANIFEST.MF references all libraries in Bundle-Classpath)

    I get these class cast exceptions. Is this because the class weaving is not done properly? Any idea?

    java.lang.ClassCastException: org.springframework.web.filter.CharacterEncodingFi lter cannot be cast to javax.servlet.Filter

    java.lang.ClassCastException: org.springframework.web.filter.DelegatingFilterPro xy cannot be cast to javax.servlet.Filter

  • #2
    Could be - first make sure no weaving is performed and then double check the wiring of your bundles since you might have multiple versions of the same class (some shared, some embedded in other bundles).