Friday, October 30, 2015

Spring integration with Stripes 1.6.0

Introduction

Stripes is a small but powerful MVC framework, and I use it on my free time project. Version 1.6.0 was released some weeks ago, and it introduced a change that is likely to break your application if you use its legacy built-in Spring integration.

SpringInterceptor class is not available anymore from version 1.6, and after upgrade from previous releases, you might notice some Exceptions such as :

Could not find class [net.sourceforge.stripes.integration.spring.SpringInterceptor] specified by the configuration parameter [Interceptor.Classes]. This value must contain fully qualified class names separated  by commas.


Solution

In order to get Spring integration working again, you have to modify your web.xml file : add net.sourceforge.stripes.integration.spring to Extension.Packages entry, and remove net.sourceforge.stripes.integration.spring.SpringInterceptor from Interceptor.Classes entry:


Rebuild your project, and it should be working fine. Just drop a comment below if you have any question!

No comments:

Post a Comment