webapp-runner icon indicating copy to clipboard operation
webapp-runner copied to clipboard

JasperInitializer not loaded in Spring 6 App with webapp-runner 10.1.25

Open csaggo opened this issue 6 months ago • 0 comments

We could run a Maven-based Spring 6 Webapplication with embedded Tomcat 10.1.25 without issues.

When running it with webapp-runner 10.1.25 we have a an error when JSPs are beeing compiled. JSPFactory.getDefaultFactory() returns null. The default Factory is set in a static in JasperInitializer so when this class is loaded, the default Factory becomes available.

With embedded Tomcat in the IDE this happens when calling tomcat.start(). But it never happens with webapp-runner.

In webapp-runner 10.1.24 it works fine. I do not know if the cause lies in tomcat or webapp-runner 10.1.25

csaggo avatar Aug 21 '24 09:08 csaggo