Uploaded image for project: 'Stripes'
  1. STS-950

SpringInjectionPostProcessor not found in WebSphere 7

    Details

    • Sprint:

      Description

      I recently migrated my app from Stripes 1.5 to 1.6 and switched from the now deprecated SpringInterceptor to the SpringInjectionPostProcessor.

      In my web.xml I have added the SpringInjectionPostProcessor package to the list of extension packages:

      <init-param>
          <param-name>Extension.Packages</param-name>
          <param-value>
              net.sourceforge.stripes.integration.spring
          </param-value>
      </init-param>
      

      On Tomcat (6,7,8), JBoss (6,7), WildFly (8,9,10) and Jetty, everything works fine. On WAS7 the application throws NPE errors due to the Spring beans being null, i.e. not injected by the SpringInjectionPostProcessor. I debugged the Stripes code and found out the following snippet from the VFS class, that attempts to lookup all classes in the configured extension package (net/sourceforge/stripes/integration/spring), returns an empty list.

      protected static List<URL> getResources(String path) 
         throws IOException 
      {
        return Collections.list(Thread.currentThread().getContextClassLoader().getResources(path));
      }
      

      As a result, the SpringInjectionPostProcessor is not engaged by Stripes and no Spring beans are injected.

      I will continue to debug this and see if I can find a workaround or fix. Is there any known workaround?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              xmoravej Jan Moravec
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: