-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
req.getRequestDispatcher("/test.htm").include(req, resp); does not go anywhere on jetty12ee10 on exploded deploy, works on ee9 and older jettys. #10142
Comments
How is this servlet mapped? |
The request url is: http://localhost:8080/exp-servletContext-requestDispatcherInclude/myservlet/xxx?3731317427365001949 web.xml is:
I can send the entire test application if needed, but there is not much more there. |
One more note here. It actually fails with ee10 in both modes on plain jetty run, but passes with ee9 in both modes. (It passed on my test before because of jrebel). http://localhost:8080/pkg-servletContext-requestDispatcherInclude/myservlet/xxx?59122691717 |
I have a testcase in PR #10149 that uses your setup (in comment #10142 (comment)) and passes (but needs the fixes in that PR to work) |
Sad news here. I used they jetty built from the PR#10149 but this case still fails. |
I've reproduced the problem in branch: https://github.com/eclipse/jetty.project/tree/fix/12.0.x/10142-include-static, based off the PR #10149 (but I don't think it is related). |
Tests to replicate the problem in #10142
Signed-off-by: Ludovic Orban <[email protected]>
Tests to replicate the problem in #10142
Signed-off-by: Ludovic Orban <[email protected]>
PR #10154 opened for this issue |
Signed-off-by: Ludovic Orban <[email protected]>
Signed-off-by: Ludovic Orban <[email protected]>
@andresluuk Would it be possible for you to test that the changes in PR #10140 do solve this problem? |
#10142 Added extra DefaultServlet include tests Signed-off-by: Ludovic Orban <[email protected]> Co-authored-by: gregw <[email protected]>
I think the PR got merged? So I tryed out 12.0.x and my test passed on there. Thanks! |
@andresluuk Yes, #10140 got merged shortly after I sent you that message. I'm happy that this change made your test pass, thanks for your feedback! |
Jetty version(s)
jetty12 built from source
Java version/vendor
(use: java -version)
JDK 17
OS type/version
Windows/Unix
Description
Maybe the same as #10139 ?
How to reproduce?
I have a simple servlet that does forwarding into a local htm file:
test.htm is in the root of the web app.
If I deploy the application as packaged application on jetty12ee10 then it works and test.htm is shown. But If I deploy it as exploded application then I will get an empty page. The same application for jett12ee9 it works in both modes.
The text was updated successfully, but these errors were encountered: