-
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
welcome-file ignored on jetty12ee10 on exploded deploy, works on ee9 and older jettys. #10141
Comments
The following XML context-param configuration is not used in ee10. (it is used, however, in ee8/ee9) <context-param>
<param-name>org.eclipse.jetty.servlet.Default.welcomeServlets</param-name>
<param-value>true</param-value>
</context-param> Instead you would need to configure the Eg: <servlet>
<servlet-name>default</servlet-name>
<servlet-class>org.eclipse.jetty.ee10.servlet.DefaultServlet</servlet-class>
<init-param>
<param-name>welcomeServlets</param-name>
<param-value>true</param-value>
</init-param>
</servlet> |
Thanks. I am a little sad that the new servlet, will fail with other servers, but I can work around that. |
Okei, I got one more question here. The explanation you gave, is about the parameter not beeing used. But why does it work on packaged mode? and the issue arrises only on exploded deploy. |
Ok my mistake here. I did not actually run it in packaged mode. so no more questions here. |
I'm reintroducing Can you please test it out with your examples too. |
I can confirm that this worked when I used jetty built from the PR. |
Jetty version(s)
jetty12ee10 built from latest source.
Java version/vendor
(use: java -version)
JDK17
OS type/version
Windows/Unix
Description
Maybe the same issue as described under #10139 ?
How to reproduce?
Anyway I have a simple webapp with the following web.xml:
If I deploy the application as packaged application on jetty12ee10 then it works and MyServlet is hit.
But If I deploy it as exploded application then I will get the directory listing from the webapp root.
The same application for jett12ee9 it works in both modes.
The request made looks like that:
http://localhost:8080/exp-http-welcomeServlet/?foo=bar&1801
The text was updated successfully, but these errors were encountered: