FIX : reference to TomcatApplication class was broken.

This commit is contained in:
Rémi Cocula
2017-08-27 16:32:17 +02:00
parent 3312f5c114
commit f28a9c697c
@@ -199,7 +199,7 @@ public class Application extends SpringBootServletInitializer implements Embedde
if(tomcatESCF.isInstance(container)) { if(tomcatESCF.isInstance(container)) {
LOG.debug("Attempting to optimize tomcat"); LOG.debug("Attempting to optimize tomcat");
Object tomcatESCFInstance = tomcatESCF.cast(container); Object tomcatESCFInstance = tomcatESCF.cast(container);
Class<?> tomcatApplicationClass = Class.forName("TomcatApplication"); Class<?> tomcatApplicationClass = Class.forName("org.airsonic.player.TomcatApplication");
Method configure = ReflectionUtils.findMethod(tomcatApplicationClass, "configure", tomcatESCF); Method configure = ReflectionUtils.findMethod(tomcatApplicationClass, "configure", tomcatESCF);
configure.invoke(null, tomcatESCFInstance); configure.invoke(null, tomcatESCFInstance);
LOG.debug("Tomcat optimizations complete"); LOG.debug("Tomcat optimizations complete");