From 03009b3c83714b106d9a768b2a39e7e6e2af7200 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Tue, 6 Nov 2018 16:33:11 +0000 Subject: [PATCH] Fixed: Error in GetLocaleListTests.java (OFBIZ-10641) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A test error related to GetLocaleListTests.java seems to happen only on a fresh trunk install when running unit tests. It's no stopping tests. I'm not sure yet if R17 is concerned. I did not try, but will 1st confirm with this commit with trunk demo error.loƧ Mathieu suggested to replace the location component://base/config/GroovyInit.groovy with ofbizhome://framework/base/config/GroovyInit.groovy because GroovyUtil [should not] depend on the component container in the 1st place, and it seems to work. Thanks: Mathieu for the idea. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1845933 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/ofbiz/base/util/GroovyUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/GroovyUtil.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/GroovyUtil.java index 672a684dec..b9b51f85b3 100644 --- a/framework/base/src/main/java/org/apache/ofbiz/base/util/GroovyUtil.java +++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/GroovyUtil.java @@ -63,7 +63,7 @@ public class GroovyUtil { * the workaround is to execute at startup a script containing the @BaseScript annotation. */ try { - GroovyUtil.runScriptAtLocation("component://base/config/GroovyInit.groovy", null, null); + GroovyUtil.runScriptAtLocation("ofbizhome://framework/base/config/GroovyInit.groovy", null, null); } catch (Exception e) { Debug.logWarning("The following error occurred during the initialization of Groovy: " + e.getMessage(), module); }