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
Jetty12.0.8 cannot run my war successfully, but jetty-9.4.48.v20220622 can. #11633
Comments
For the version Jetty9.x and Jetty12.x, can I use the same war? Can th emaven configuration be the same for the two different jetty version? I found that Jetty 12.x was not compatible with jetty 9.x, it has a huge change. |
Jetty 12 EE10 corresponds to the Servlet 6 specification, and all classes that were |
Change to use
and try deploying your webapp again |
Yes, for http mode, it works fine. Thanks a lot. You know that I need to write the keystore and password to the ssl.ini, the content is as below: Unfortunately, when I run java -jar $JETTY_HOME/start.jar, it seems work fine just with "The system cannot find the drive specified." on the command line. |
@joakime Please help check the https mode, I cannot run web application with it. |
SNI has rules you must follow ...
The rules back in Java 8 were very lax, with each version of Java since the rules have been made to be more in line with the specs for SNI. |
You must also use an HTTP Client that supports sending the SNI details in the TLS negotiation properly. |
I try the link use https://HOSTNAME/8443, it still has the same issue. How can I use the https client? |
Your host does not follow the SNI rules. Your host name must by fully qualified, not abbreviated, not just a relative name (like your example). |
@joakime Is there any solution to disable the SNI validation? My computer is used as the server, no virtualhost. |
@Helly987 please read the documentation: You can fully disable the SNI check with:
|
If I change them to be false, the result is not as expected. I refer to the jetty Operation guide, no clear guide about how to configure in https mode. still try to access https://localhost:8443/ |
The image above shows that your TLS configuration is correct. You just did not type any context path in your browser, or you have not deployed any web application. What do you want to configure? |
@Helly987 we cannot help you if the only information you give is "it is not working". Please at least report the DEBUG logs when you start Jetty. Also read the documentation section here: Why do you call |
With below error:
add modules:
java -jar $JETTY_HOME/start.jar --add-modules=http,ee10-deploy,ee10-webapp
start command: java -jar $JETTY_HOME/start.jar
demo.xml:
/demo /demo.war /work/demo falseThe text was updated successfully, but these errors were encountered: