Unable to load JSTL in a project with multiple maven modules with integrated berth

I created a test environment for testing .jsp and .tag files with the built-in jetty. I start the Jetty server programmatically using the Java API, adding a servlet holder and JSP shell validation and initializing the server that passes the root web project. There were some issues with Jasper detecting TLD locations at runtime when starting from the maven surefire plugin. I fixed it by providing

<useManifestOnlyJar>false</useManifestOnlyJar>

plugin path parameters. Everything works well when I run tests using mvn clean install now. Running tests from the eclipse context menu has one problem. If the maven multi-line module has any other project in the workspace, TLDs are not allowed in this project. One workaround I tried was to “close” the project in the eclipse workspace, and that worked.
However, I would like it to work with all projects open in the workspace and run from the Eclipse JUnit context menu. The problem is jasper TldScanner, which searches for tld files in jar and WEB-INF only for the current project.

TldScanner.scanTlds()
        processWebDotXml();
        scanJars();
        processTldsInFileSystem("/WEB-INF/");

org.glassfish.web.jsp-impl 2.2.2-b06 Jetty-8.1.0-RC5.
TLD- jasper pathpath?

+4

All Articles