From b53f8eef17c3d380b2bfcc1413263920cb259e17 Mon Sep 17 00:00:00 2001 From: Andrew DeMaria Date: Thu, 23 Mar 2017 22:46:12 -0600 Subject: [PATCH] Catch NoClassDefFoundError as well Signed-off-by: Andrew DeMaria --- .../src/main/java/org/libresonic/player/boot/Application.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libresonic-main/src/main/java/org/libresonic/player/boot/Application.java b/libresonic-main/src/main/java/org/libresonic/player/boot/Application.java index fd1ca19b..b68b93bc 100644 --- a/libresonic-main/src/main/java/org/libresonic/player/boot/Application.java +++ b/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);