Catch NoClassDefFoundError as well

Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
master
Andrew DeMaria 8 years ago
parent 58e380b13c
commit b53f8eef17
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 2
      libresonic-main/src/main/java/org/libresonic/player/boot/Application.java

@ -204,7 +204,7 @@ public class Application extends SpringBootServletInitializer implements Embedde
} else {
LOG.debug("Skipping tomcat optimization as we are not running on tomcat");
}
} catch (ClassNotFoundException e) {
} catch (NoClassDefFoundError | ClassNotFoundException e) {
LOG.debug("Skipping tomcat optimization as the tomcat classes are not available");
} catch (Exception e) {
LOG.warn("An error happened while trying to optimize tomcat", e);

Loading…
Cancel
Save