SpringInjectionPostProcessor not found in WebSphere 7

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:

1 2 3 4 5 6 <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.

1 2 3 4 5 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?

Environment

WebSphere Platform 7.0.0.23 on Windows
IBM Java 1.6 (part of WAS distribution)

Status

Assignee

Unassigned

Reporter

Jan Moravec

Tester

None

Components

Affects versions

Release 1.6

Priority

Major
Configure