Skip to content

Tag: jetty

Jetty Websocket Authentication

I play the Jetty Websocket use example here : https://github.com/jetty-project/embedded-jetty-websocket-examples (i use native-jetty-websocket-example) I just move from websocketpp (C++) to Java Jetty Websocket and i just wonder is there any way for me to authen the connection before the connection move to th…

Jetty 11 and commons-fileupload

I am updating Jetty9 to Jetty11. I updated my package from javax.servlet to jakarta.servlet because servlet 5.0 is the prerequisite for Jetty11. but the problem is when I am using commons-fileupload`-1.4.jar as it is still using java.servlet package. The above method is expecting argument from java.servlet pa…

Jetty 11 Doesn’t Detect Jakarta Servlets

This is a follow up to this question. I don’t think it’s a duplicate because the accepted answer indicates that Jetty 11 doesn’t work with javax servlets, but I’m asking why Jetty 11 doesn’t work with jakarta servlets. I have an example project here that uses Jetty 9 to deploy a …

Configuring Jetty 9.2 to allow symlinks through XML file

My setup is a bit complicated, as I use JRuby with Warbler which uses Jetty 9.2.9 underneath. Now, the docs for enabling symlinks in Jetty tell you to add this to WEB-INF/jetty-web.xml: However, as far as I can tell from searching through XML files on GitHub which use AllowSymLinkAliasChecker, this snippet ha…