Questions tagged [jetty]
Eclipse Jetty is a widely-used async Java-based HTTP server and servlet engine supporting HTTP/1.0, HTTP/1.1, HTTP/2, HTTP/3, WebSocket, UnixSocket, and FastCGI protocols.
7,165
questions
0
votes
0
answers
23
views
Vaadin Flow on Spring Boot 3.2.0-M3
I'm testing Vaadin Flow on Spring Boot v.3.2 (-M3).
A BeanCreationException is thrown during startup.
Should I use a different startup configuration? (It works fine on Spring Boot v.3.1)
This is the ...
1
vote
1
answer
52
views
Cannot start program created with jpackage
Hello everyone I am new using jpackage and I am building a java aplicaction with JavaFx framework and I added a Websocket server (using org.eclipse.jetty.websocket and org.eclipse.jetty dependencies) ...
0
votes
0
answers
23
views
jetty server not responding to HTTP/2 requests
i have implemented a http2(clear text) server in jetty, its working as expected with http1_1, but i don't know what is wrong with http/2.
is there something to do with handler?
the server is up on ...
-2
votes
1
answer
48
views
Warn message in ActiveMQ Artemis console
I'm using ActiveMQ Artemis 2.28.0, and I suddenly received this warning message:
2023-09-19 09:49:09,160 WARN [org.eclipse.jetty.server.HttpChannel] /console/jolokia/
java.lang.IllegalStateException: ...
-1
votes
0
answers
25
views
Error 500 with Jetty Embedded Service and RestAssured, while AbstractRequestHandler returns 200 response
I am currently writing Integration tests, and using Jetty to mock the backend. I am using AbstractHandler, to customize which json response to return for each endpoint call.
public class ...
0
votes
2
answers
19
views
java.lang.IllegalStateException No Jetty ContextHandler, Jetty WebSocket SCI unavailable
I'm trying to deploy a SOAP-Webservice with:
Tomcat 10
Apache CXF 4.0.2
Java JDK 17.0.6
The Service was running fine with Tomcat 7.0.27, Java JDK 1.7.45 and Apache CXF 3.0.2.
After changing all ...
0
votes
0
answers
19
views
CXF/Jetty Rest API Not Working After Eclipse/Java/CXF/Jetty Upgrade
We have inherited an Eclipse RCP application which was based on Eclipse 4.8 (photon) and Java 8. We have upgraded it to Eclipse 4.23 and Java 11. During the upgrade we had to update lot of 3rd party ...
0
votes
0
answers
7
views
At what stage does jetty server log a request using RequestLog?
A jetty server is configured using a queuedthreadpool with 10 threads.
QueuedThreadPool threadPool = new QueuedThreadPool(
10,
10,
60000,
new ...
2
votes
1
answer
66
views
The Spring Boot's WelcomePageHandlerMapping is getting called on invalid API path where the 404 error expected
I have a simple Spring Boot (3.1.2) application with defined @RestController with several @GetMapping (/app/test, /app/test2).
E.g:
@GetMapping("/test")
public TestModel getTestModel() {
...
0
votes
1
answer
56
views
Why does a ClassNotFoundException für HandlerWrapper occur when migrating to Spring Boot 3.1.3?
I am currently migrating a Spring Boot application from 2.7.9 to 3.1.3.
I know that Jetty is not compatible with Spring Boot's servlet-api 6.0.0 until version 11.x, hence I decided to use jetty-server ...
0
votes
1
answer
56
views
Jetty 10.0.15 error Could not configure SO_REUSEPORT to false on sun.nio.ch.ServerSocketChannelImpl[unbound]
We have upgrade jetty from 9.4.30 to 10.0.15.
After Jetty upgrade RESTful services are not running getting below error
org.eclipse.jetty.server.AbstractConnector - Could not configure SO_REUSEPORT to ...
0
votes
0
answers
19
views
Non-preemptive authentication is not working with Jetty client library
I am trying to do non-preemptive authentication (get 401-unauthorized with request round trip) with Jetty client. But I'm unable to get request round trip after using below code snippet.
...
1
vote
1
answer
95
views
Missing jetty-servlet 12.0.0 dependency
I cannot find the jetty-servlet artifact for the recently released Jetty 12.0.0
https://github.com/eclipse/jetty.project/releases/tag/jetty-12.0.0
A search for it shows that it is not present on ...
0
votes
1
answer
19
views
java code or any java tool for combining jetty xml files ( like jetty-http.xml ) from old to new considering configuration from old file
Let's say if we have all the configuration set in jetty-http.xml and there's a new attribute in an element introduced in later version , code should take care of old configuration and merge it into ...
0
votes
1
answer
62
views
Jetty 10 redirect http to https
I am trying to modify Jetty 10.0.15 to handle http to https redirection. I tried searching in their official Operations guide but i cant find anything. For example:
http://localhost:8443/login?lang=en ...
0
votes
0
answers
20
views
Spring boot: how to config the embedded Jetty server with ServletContextHandler instead of WebAppContext
Session management is not needed in our use case, but according to this github issue, session feature is a mandate. How can I config spring to make it use ServletContextHandler instead of ...
0
votes
0
answers
27
views
Spring boot: how to disable session handler for the embedded server?
Our application does not need any session support but Spring adds session handler and a session id managed to the embedded Jetty server. I tried removing the handler in the server customizer but then ...
0
votes
0
answers
51
views
How to setup jetty server properly after jakarta migration
Here is my CXF web service application. When I upgraded javax to jakarta here shows the change and exception.
cxfVersion=4.0.2
slf4jVersion=2.0.7
org.apache.cxf:cxf-rt-transports-http-jetty:4.0.2
org....
0
votes
1
answer
58
views
Why am I getting org.eclipse.jetty.http.BadMessageException: 500: Request header too large
I have the following WebClient configuration in a spring boot reactive service:
public WebClient createWebClient(ObjectMapper objectMapper) {
ExchangeStrategies strategies = ExchangeStrategies
...
0
votes
0
answers
3
views
JNDI Configuration in embedded Jetty 11
How to configure JNDI in embedded jetty 11 version
HTTP ERROR 503 Service Unavailable
// 1.We are creating the service
Server server = new Server(8080);
// 2.We are enabling Jetty-plus ...
0
votes
1
answer
88
views
Springboot Jetty and Netty vulnarabilities
I need to 'solve' all of the vulnarabilities in my Springboot app.
I use Springboot 2.7.14. Sadly I can not go to newer versions.
I need to exclude the current Netty, but if I include the newest, it ...
0
votes
0
answers
35
views
Jetty Reactive Client version update from 1.1.14 to 2.0.8 ClassNotFound
I updated the jetty version because of the vulnerabilities, from 1.1.14 to 2.0.8. It has the same dependencies as far as i see on jetty-util.
If i run the project i have an error:
WARN 72142 --- [ ...
0
votes
0
answers
26
views
what is the jetty alternative for org.apache.tomcat.util.http.fileupload.FileUploadException
I am switching a Spring Boot application's server from Tomcat to Jetty. I am unable to find any Jetty alternative for the org.apache.tomcat.util.http.fileupload.FileUploadException exception. This ...
0
votes
0
answers
28
views
Requests to Ktor hosted on Android with Jetty engine are timing out
I am hosting a ktor server on an android device with the Jetty engine and inconsistently the requests will take 30s to time out with the java.util.concurrent.TimeoutException: Idle timeout expired ...
1
vote
0
answers
5
views
Jetty 11 distribution missing [duplicate]
What is the official way to setup a Jetty 11 standalone instance?
We have migrated our web application to Java 17. For development we are using the latest jetty 11.0.15 maven plugin. Now we need a ...
0
votes
0
answers
16
views
Dropwizard upgrade to 2.1.4 - requests and responses are not logged
I have upgraded most of the project libraries, mainly Java from 8 to 17, Spark from 1.6 to 3.3, and Dropwizard from 1.1.3 to 2.1.4 and related. However, after the upgrade, HTTP requests are not logged ...
0
votes
1
answer
35
views
How to fix "plugin with id 'jetty' not found" error?
java 1.7
gradle version 7.4.2
When I import gradle project to sts, it gives me an error:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\test\build.gradle' line: 4
* What went ...
0
votes
0
answers
27
views
Jetty spikes in response time
The normal response time (GET request) amounts to around 50-100ms, but randomly on average every 10th request takes 1-1.5 seconds.
This is independent from the request library, server or network used, ...
1
vote
0
answers
104
views
How to integrate stomp/websockets using spring boot messaging with Jetty 10?
Some backstory:
I am working on a spring boot application which uses the spring-boot-starter-websocket library to update a frontend client with messages using STOMP.
The setup is as per spring docs - ...
0
votes
1
answer
233
views
Issues regarding jetty migration from 9 to 10\11
I am trying migrate our application from Jetty 9 to Jetty 10 and Jetty 11.
However following classes\interfaces from Jetty 9 are not available in Jetty 10\11.
MemSession
AbstractSessionManager
...
0
votes
0
answers
111
views
Missing requirement: org.apache.cxf.cxf-rt-transports-http 3.6.0 requires 'java.package; java.net.http 0.0.0' but it could not be found
We are upgrading jetty from version 9.4.30 to 10.0.15 and cxf from version 3.3.7 to 3.6.0.
After upgrade, while building the repo, we are getting below error:
Missing requirement: org.apache.cxf.cxf-...
0
votes
1
answer
27
views
How to log the URL scheme (http or https) in Jetty request log?
How can I include the URL request scheme (HTTP or HTTPS) in Jetty 10 request log? Something similar with what can be done in Apache but for Jetty.
I am using this setting:
jetty.requestlog....
0
votes
0
answers
35
views
java.exe process always running on solr ports on startup
On starting solr with the command bin\solr.cmd start it shows the normal starting statement:
C:\solr-8.11.2>bin\solr.cmd start
Java HotSpot(TM) 64-Bit Server VM warning:
JVM cannot use large page ...
0
votes
1
answer
42
views
How to avoid the validation of X-Forwarded-Proto in jetty?
I am using jetty with forcedHost and SSL configuration. Be default jetty is validating input X-Forwarded-Proto header to be present. How to avoid this?
Trying to avoid the validation of X-Forwarded-...
0
votes
1
answer
49
views
GzipHandler.setCompressionLevel() method not available in latest release
Jetty version : 11.0.15
Java version : 17
I am trying to update my Spring boot project to 3.1.0. I need GZip compression for reduce response data size. For that I use spring-boot-starter-jetty instead ...
1
vote
1
answer
136
views
How to setup secure Websocket server using Jetty 11
I'm new in Jetty and want to create a small test Websocket server with SSL (using Jetty 11).
Found many Jetty 9 based examples, but nothing for Jetty 11.
My test code looks as this:
public class Test {...
1
vote
1
answer
47
views
@PreDestroy not invoked in JAX-RS resource, how do I close/release resources?
I have a java class annotated with the jakarta.ws.rs-api annotations, which is a rest resource class. I have created an executor service as part of the resource class (which contains methods with ...
0
votes
0
answers
50
views
Unable to support mongodb+srv// style connections as the 'com.sun.jndi.dns.DnsContextFactory' class is not available in this JRE
I'm trying to make an API in java using resteasy and jetty to run the API and Morphia to connect to a MongoDB database, however when I try to create a datastore the application crashes and gives the ...
0
votes
1
answer
52
views
Serving files in src/main/resources using Java Jetty
I am trying to create a simple Java Jetty/Jersey project with Maven and have successfully got Jersey to return content back to the client from the methods defined in Java classes. I believe that I ...
0
votes
1
answer
72
views
How to check that Jetty ssl configuration is working
I read the different answer to set an SSL and https connection with jetty.
I follow all the steps and when I launch jetty I have in the logs :
jetty9[31330]: 2023-06-13
16:45:40.260:INFO:oejs....
0
votes
0
answers
17
views
How to add HttpOnly Attribute for Sensitive Cookies in Jetty Server 8.1.3 [duplicate]
I am using Jetty server 8.1.3.
I need to add HttpOnly Attribute for Sensitive Cookies
((ServletContextHandler) context).setInitParameter("org.eclipse.jetty.servlet.SessionCookie", "...
0
votes
2
answers
172
views
Apache CXF: How to get rid of log warning "Unimplemented getRequestCharacterEncoding() - use org.eclipse.jetty.servlet.ServletContextHandler"
I am using the latest Apache CXF 4.0.1 completely standalone, no EE, no magic, just plain Kotlin code.
To set up my Endpoint, I simply do this:
val jettyHTTPServerEngine = prepareServerForPort(8081)
...
0
votes
1
answer
74
views
How to configure geoserver in jetty web server with SSL
I am trying to configure geoserver with SSL but it is not happening. I am using Windows Server 2019.
Configured geoserver it is running fine and available in http://example.com/geoserver/web but not ...
0
votes
0
answers
15
views
Weird Behaviour in Spring MVC when context.xml configured in contextConfigLocation is missing
We have a Jetty Application which supports JAX RS using Apache CXF and also Spring Controllers. The Jetty server is configured to create a Spring Application Context and also initialize a Dispatcher ...
1
vote
0
answers
47
views
Why my socket connection is breaking after 2 mins after upgrading websocket-jetty-server from 9.4.48.v20220622 to 11.0.12?
websocket-jetty-server 11.0.12 socket connection is breaking after 2 mins
I am using websocket-jetty-server version 11.0.12 to use websocket.
I wanted to use the java verion 17 so I upgraded websocket-...
0
votes
1
answer
89
views
Will Jetty outperform netty in a blocking/ non reactive REST application
I understand the case for NETTY in a reactive non blocking application. But I was wondering if Jetty will outperform Netty in the classic case when we have a regular REST application with blocking / ...
0
votes
1
answer
46
views
nifi 1.8.0 fails to start webgui due to zip and jetty errors
I tried to build a docker image that starts nifi1.8.0 (yeah, it's an old version)
Here's the info in this image:
base OS: RH8
[root@dp-nifi-6c4cc6fdf5-n5psv logs]# cat /etc/redhat-release
Red Hat ...
2
votes
1
answer
190
views
HTTP/3 Server using Jetty 11 not responding
I'm trying to implement a HTTP/3 test server using Jetty 11 with Java 11 (as experiment). I'm following the code in the documentation:
public class HTTP3Server {
public static void main(String[] ...
0
votes
1
answer
102
views
ActiveMQ REST DELETE call unable to read multibyte characters
I'm using Apache ActiveMQ 5.16 and simply trying to send data with multibyte characters (e.g. 日一国会ABC) to a queue using ActiveMQ web console. I'm using CURL call to read the data but response has data ...
0
votes
0
answers
21
views
How do I configure the jetty http client over JAXRS to connect to a unix domain socket?
I have the following code to connect to a JAXRS endpoint using jersey and the jetty HTTP client as follows:
ClientConfig config = new ClientConfig();
config.connectorProvider(new ...