You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dependants added in TagFileLoaderVisitor.visit() are invalid URLs, causing new URL(key) in Compiler.isOutDated() to fail with MalformedURLException, falling back to assuming that they are outdated.
Example path generated: "jar:/WEB-INF/lib/library.jar!/META-INF/sample.tld"
Causing the following exception:
DEBUG [org.apache.jasper.compiler] (default task-7) Problem accessing resource. Treat as outdated.: java.net.MalformedURLException: invalid url: /WEB-INF/lib/library.jar!/META-INF/sample.tld (java.net.MalformedURLException: no protocol: /WEB-INF/lib/library.jar)
at java.net.URL.<init>(URL.java:620)
at java.net.URL.<init>(URL.java:483)
at java.net.URL.<init>(URL.java:432)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:491)
at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:406)
(...)
The text was updated successfully, but these errors were encountered:
The test.Test class simply throws an exception if jsp or tag class was recompiled.
Easiest way to reproduce is to enable the development mode, and set org.apache.jasper.compiler logging to DEBUG, then simply deploy above and load http://localhost:8080/tagfile and refresh.
The refresh should show you an exception, indicating that the jsp or tag class was recompiled.
And in the server.log you'll see the MalformedURLException.
The dependants added in
TagFileLoaderVisitor.visit()
are invalid URLs, causingnew URL(key)
inCompiler.isOutDated()
to fail withMalformedURLException
, falling back to assuming that they are outdated.Example path generated:
"jar:/WEB-INF/lib/library.jar!/META-INF/sample.tld"
Causing the following exception:
The text was updated successfully, but these errors were encountered: