Mantis - Resin
Viewing Issue Advanced Details
5839 minor always 12-16-14 14:51 03-02-15 18:33
nam  
ferg  
normal  
closed 4.0.41  
fixed  
none    
none 4.0.44  
0005839: spring-integration: allow non-public beans for Filters
(rep by V. Selvaggio)

Please note that Spring is passing in an actual bean object, not a class, to Resin and Resin is complaining about the class.

related to: http://bugs.caucho.com/view.php?id=5701 [^]

I have built a Spring Boot application and created a war file which runs just fine with tomcat or as executable jar.

If I try to deploy on Resin 4.0.41 I get the following exception:

com.caucho.config.ConfigException: Custom bean class 'org.springframework.boot.actuate.autoconfigure.MetricFilterAutoConfiguration$MetricsFilter' is not public. Bean classes must be public, concrete, and have a zero-argument constructor.
    at com.caucho.config.Config.checkCanInstantiate(Config.java:532)
    at com.caucho.config.Config.validate(Config.java:561)
    at com.caucho.server.dispatch.FilterConfigImpl.setFilterClass(FilterConfigImpl.java:105)
    at com.caucho.server.webapp.WebApp.addFilter(WebApp.java:1440)
    at com.caucho.server.webapp.WebApp.addFilter(WebApp.java:1422)
    at org.springframework.boot.context.embedded.FilterRegistrationBean.onStartup(FilterRegistrationBean.java:255)
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext$1.onStartup(EmbeddedWebApplicationContext.java:203)
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:153)

Notes
(0006608)
ferg   
03-02-15 18:33   
server/1769