From 9d750d335902089dd7bb02fb1148586701dee52b Mon Sep 17 00:00:00 2001 From: lprimak Date: Wed, 8 Mar 2017 17:11:30 -0600 Subject: [PATCH] synchornized loadClass() method, taken from upstream This should fix this issue --- .../java/org/glassfish/web/loader/WebappClassLoader.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/appserver/web/war-util/src/main/java/org/glassfish/web/loader/WebappClassLoader.java b/appserver/web/war-util/src/main/java/org/glassfish/web/loader/WebappClassLoader.java index bafaa8d8ec8..50b90e6f013 100644 --- a/appserver/web/war-util/src/main/java/org/glassfish/web/loader/WebappClassLoader.java +++ b/appserver/web/war-util/src/main/java/org/glassfish/web/loader/WebappClassLoader.java @@ -1691,15 +1691,16 @@ public Class loadClass(String name) throws ClassNotFoundException { * * @param name Name of the class to be loaded * @param resolve If true then resolve the class + * @return class * * @exception ClassNotFoundException if the class was not found */ @Override - protected Class loadClass(String name, boolean resolve) + protected synchronized Class loadClass(String name, boolean resolve) throws ClassNotFoundException { if (logger.isLoggable(Level.FINER)) { - logger.log(Level.FINER, "loadClass(" + name + ")"); + logger.log(Level.FINER, "loadClass({0})", name); } Class clazz = null;