Results 1 to 2 of 2

Thread: Need Help: Spring Security in OSGi

  1. #1
    Join Date
    Nov 2008
    Posts
    4

    Default 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. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    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).
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

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