|
18 | 18 | */
|
19 | 19 |
|
20 | 20 | /*
|
21 |
| - * Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved. |
| 21 | + * Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved. |
22 | 22 | * Portions Copyright (c) 2017, 2020, Chris Fraire <[email protected]>.
|
23 | 23 | * Portions Copyright (c) 2022, Krystof Tulinger <[email protected]>.
|
24 | 24 | */
|
@@ -103,16 +103,19 @@ public String toHtml() {
|
103 | 103 |
|
104 | 104 | private static final WebJarAssetLocator assetLocator = new WebJarAssetLocator();
|
105 | 105 |
|
106 |
| - /** |
| 106 | + /* |
107 | 107 | * Aliases for the page scripts. The path in the FileScript is relatively to
|
108 | 108 | * the request's context path.
|
109 | 109 | *
|
110 | 110 | * @see HttpServletRequest#getContextPath()
|
111 | 111 | */
|
112 | 112 | static {
|
113 |
| - putFromWebJar("jquery", "jquery.min.js", 10); |
| 113 | + // Due to the behavior of the webjar scanner, it is necessary for the paths to contain a version. |
| 114 | + // Otherwise, with multiple versions of the webapp deployed within the same application server, |
| 115 | + // an exception will be thrown and the deployment will fail. |
| 116 | + putFromWebJar("jquery", "3.6.4/jquery.min.js", 10); |
114 | 117 | putjs("jquery-ui", "js/jquery-ui-1.12.1-custom", 11);
|
115 |
| - putFromWebJar("jquery-tablesorter", "jquery.tablesorter.min.js", 12); |
| 118 | + putFromWebJar("jquery-tablesorter", "2.31.3/dist/js/jquery.tablesorter.min.js", 12); |
116 | 119 | putjs("tablesorter-parsers", "js/tablesorter-parsers-0.0.3", 13, true);
|
117 | 120 | putjs("searchable-option-list", "js/searchable-option-list-2.0.15", 14, true);
|
118 | 121 | putjs("utils", "js/utils-0.0.46", 15, true);
|
|
0 commit comments