code: final void setJarFileUrls(List<String> jarFilePaths, JPAPXml pxml) {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "setJarFileUrls: root=" + ivPUnitRootURL.toExternalForm());
  
          // 6.2.1.6 mapping-file, jar-file, class, exclude-unlisted-classes
          //
          // One or more JAR files may be specified using the jar-file elements instead of, or in
          // addition to the mapping files specified in the mapping-file elements. If specified,
          // these JAR files will be searched for managed persistence classes, and any mapping
          // metadata annotations found on them will be processed, or they will be mapped using
          // the mapping annotation defaults defined by this specification. Such JAR files are
          // specified relative to the root of the persistence unit (e.g., utils/myUtils.jar).
          //
          // Note: See defect 413031 details for clarifications by spec owner regarding
          //       "relative to the root of the persistence unit" semantics
  
          // The following code will loop through all entries in the <jar-file> stanza in
          // the persistence.xml and determine the URL to the jar file regardless of whether
          // we are running in standard or RAD/loose-config environments.
  
          ivJarFileURLs.clear();
          for (String jarFilePath : jarFilePaths) {
              if (!addJarFileUrls(trim(jarFilePath), pxml)) {
                  Tr.error(tc, "INCORRECT_PU_JARFILE_URL_SPEC_CWWJP0024E", jarFilePath, getPersistenceUnitName());
              }
          }
  
          if (isTraceOn && tc.isEntryEnabled()) {
              URL[] allURLs = ivJarFileURLs.toArray(new URL[0]);
              Tr.exit(tc, "setJarFileUrls : " + Arrays.toString(allURLs));
          }
      }
docs: PK62950