<HTML><BODY><div>Thank you for your help. I think we’ve found the problem: <a href="https://github.com/eclipse-ee4j/jstl-api/issues/241">https://github.com/eclipse-ee4j/jstl-api/issues/241 </a></div><div> </div><div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>--<br>Best regards, Alex Orlov</div></div></div><div> </div><div> </div><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">Вторник, 31 января 2023, 15:34 +02:00 от Alan Bateman <alan.bateman@oracle.com>:<br> <div id=""><div class="js-helper js-readmsg-msg"><div><div id="style_16751720920529921342_BODY">On 31/01/2023 12:52, Alex Orlov wrote:<div class="mail-quote-collapse">> :<br>> To create module finder I do:<br>> ModuleFinder jarModuleFinder =<br>> ModuleFinder.of(jarModulePaths.toArray(new Path[jarModulePaths.size()]));<br>> To check found modules I do:<br>> final Set<String> foundModulePaths = new HashSet<>();<br>> for (ModuleReference reference : moduleFinder.findAll()) {<br>>             var path = reference.location().get().getPath();<br>>             foundModulePaths.add(path);<br>>  }<br>></div><br>findAll will find occurrence of all modules so it might be that the<br>module in jakarta.servlet.jsp.jstl-2.0.0.jar has the same name as a<br>module that is one of the preceding elements of the module path. Can you<br>try this:<br><br>java --module-path <dir>/jakarta.servlet.jsp.jstl-2.0.0.jar --list-modules<br><br>and you should see the module in output. Then change your loop above to<br>print the module names and see if it gets printed.<br><br>BTW: In the above you are using URI::getPath. That returns the decoded<br>path component of the file URI - you can't reliably use this as a file<br>path, I think the code you want here is Path.of(uri).toString().<br><br>-Alan</div></div></div></div></blockquote><div> </div></BODY></HTML>