Skip to content

Commit

Permalink
feat(#TOMEE-4281): Try to also catch the getClasses from application
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanouii committed Nov 22, 2023
1 parent fd5909b commit 5d7d2c5
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2251,11 +2251,10 @@ public WebModule deploy(final WebModule webModule) throws OpenEJBException {
} else {
addRestClassesToScannedClasses(webModule, classes, classLoader);
}
} catch (final RuntimeException npe) {
if (app == null) {
throw npe;
}
// if app depends on cdi no need to do it
} catch (final NoClassDefFoundError e) {
logger.debug("Could not load REST classes for application {1} for module {2} / {3}",
application, webModule.getJarLocation(), webModule.getFile().getName());
throw new OpenEJBException("Unable to load REST classes for application: " + application, e);
}
} catch (final InstantiationException e) {
throw new OpenEJBException("Unable to instantiate Application class: " + application, e);
Expand Down

0 comments on commit 5d7d2c5

Please sign in to comment.