Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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, and WebSocket protocols.

4
votes
3answers
983 views

Apache Zeppelin 0.7.3 - http error 503 in browser

Following the minimalist installation instructions from here, then on macOS High Sierra 10.13.1 executing: bin/zeppelin-daemon.sh start The daemon starts OK, but pointing any browser to http://...
2
votes
1answer
204 views

Cling Upnp scan causes ClassDefNotFoundError Jetty

I am working on an Android app, which is using Cling to perform an UPNP scan. Its logging that it receives packets but then it crashes with a NoClassDefFound exception for Jetty. Below is the code I ...
0
votes
0answers
13 views

How to run Jetty with Gradle

I have a Gradle project, and I'm trying to run it with it Jetty. My build.gradle file looks like following. build.gradle apply plugin: 'java' apply plugin: 'war' apply plugin: 'jetty' [jettyRun, ...
0
votes
1answer
16 views

How to suppress logging output to stdout when using Jetty Websocket client?

When using Jetty's Websocket client implementation and creating an instance of WebSocketClient, logging is being written to stdout as such: 2018-08-22 22:30:34.720:INFO::main: Logging initialized @...
1
vote
1answer
17 views

Using Jetty Websocket Client API through the javax.websocket API: how to set MaximumMessageSize?

I'm writing a Java websocket client, using the API provided through javax.websocket. The implementation of those interfaces is provided through Jetty, in particular org.eclipse.jetty.client and ...
12
votes
2answers
9k views

Spring boot app vs .war file deployed on Tomcat/Jetty [closed]

In my case let's consider a simple RESTful service created and configured with Spring Boot. This service communicates with a database (e.g. Postgres). What is a difference between: Building a ...
0
votes
0answers
26 views

Gwt project fatal error in local using jetty

When I try to access a specific frame of my project, the jetty server on local crash with this error : A fatal error has been detected by the Java Runtime Environment: SIGSEGV (0xb) at pc=...
0
votes
0answers
21 views

gwt application and spring MVC return error 404

I have a gwt Application with spring core 4 framework. In the server part i added a RestController to produce a web service for other application. I used Java configuration for this but now when i run ...
0
votes
0answers
12 views

Web process failed to bind to $PORT within 90 seconds of launch | Jetty

I have a .jar file that I am deploying through Heroku CLI through the command heroku deploy:jar file.jar --app=appName I do not have access to a .procfile. I just have access to the jar file. When ...
2
votes
0answers
50 views

How to migrate existing Spring project to Spring Boot

I'm trying to migrate existing Spring project to Spring Boot. In project already used Spring Data JPA/Hibernate and simple DAO with JDBC (PostgreSQL used). In few states I found that all that I need ...
0
votes
0answers
15 views

RestEasy + Guice + Jetty : unable to get a resource served

Hello I am trying to serve a simple Resource class with RestEasy + Jetty. I would like to use Guice for server configuration and dependency injection (I would like to use scoped Dependency Injection)....
3
votes
1answer
10k views

Jetty v8.x - How to Configure / Enable SSL for HTTPS and steps to create Windows Service

I have currently deployed a war file in my Jetty 8.x webapps container. I can start the Jetty server and connect to my server using HTTP. I want to be able to connect using HTTPS. What is the ...
0
votes
0answers
23 views

Eclipse HTTP Listener to run Internal Plugin in Headless Mode

I have an Eclipse plugin that my company uses to analyze some data files. I've been tasked with writing a REST application that will take uploaded data files and use this plugin to generate some ...
-1
votes
1answer
266 views

Jetty and Java EE 8

Two weeks ago Java EE 8 was released. And new Tomcat 9 was announced to support it. Are there any plans for Jetty to support Java EE8? I couldn't find any information about that in the documentation ...
0
votes
1answer
29 views

Bad Message 400: Folding Header

We recently switched from Jetty v 6_1_26 to 9_4_11. We followed following url: http://jetty.4.x6.nabble.com/Configuring-option-2-of-RFC-7230-paragraph-5-HTTP-header-folding-td4966330.html And made ...
0
votes
1answer
17 views

org.eclipse.jetty.websocket.jsr356.server.ServerContainer cannot be cast to org.apache.tom cat.websocket.server.WsServerContaine

2018-08-15 16:05:57.353:WARN:oejw.WebAppContext:main: Failed startup of context o.e.j.w.WebAppContext@6a400542{/,file:/o pt/meituan/fd/apps/fd-crm/webroot/,STARTING} java.lang....
0
votes
0answers
14 views

Deploying a war file in a Jetty Conatiner

I am deploying jenkins.war file in my jetty container. Steps I performed are as follows: In my AWS EC2 Instance I first created a Dockerfile: FROM jetty:latest ADD http://archives.jenkins-ci.org/...
0
votes
0answers
14 views

Connection Pool running out of connection. Using DBCP2 BasicDataSource in Jetty embedded server

Below are the details for configuring connection pool in my application. I am using Oracle 12C. initialSize=20 maxTotal=100 minIdle=20 maxWaitMillis=45000 minEvictableIdleTimeMillis=3600000 ...
1
vote
1answer
14 views

Jetty/javalin getting HttpSession from websocket returns null always

Hello guys so am using javalin(uses jetty) and trying to get HttpSession but it returns null always! is there any better way i can get HttpSession in websockets without context? app.ws("/console"...
0
votes
1answer
16 views

package org.mortbay.http does not exist. How to add dependencies for this in pom.xml

I'm trying to build my java project using maven. While compiling I'm getting the following error - package org.mortbay.http does not exist package org.mortbay.jetty does not exist package org....
3
votes
0answers
35 views

HTTP 502 “Bad Gateway” / writev() failed (104: Connection reset by peer)

We have the configuration above, where the server handles up to 100 concurrent requests, a few of them are rather large: up to 3-4MB payload, at a single request (not using multi-part etc.) This ...
6
votes
2answers
5k views

Does embedded Jetty have the ability to set the init-params of a filter?

Suppose I'm running embedded jetty with the following code. I want to pass in some parameters to my filter. When I look at the Jetty API for adding a filter - there are no options to set init-params. ...
0
votes
1answer
25 views

ClassNotFoundException: javax.servlet.jsp.JspFactory

I have a maven-based app that I copied exactly and tried to run mvn jetty:run And now getting this error: Caused by: java.lang.ClassNotFoundException: javax.servlet.jsp.JspFactory at org....
-1
votes
1answer
31 views

How do I get maven to recognize my jdk version?

I'm on OSx (El Capitain) and I have Java 8 running > ${JAVA_HOME}/bin/java -version java version "1.8.0_60" Java(TM) SE Runtime Environment (build 1.8.0_60-b27) Java HotSpot(TM) 64-Bit Server VM (...
0
votes
1answer
12 views

Grails 3.3.2 deployment to Jetty 9.1.4.v20140401

How do I build my Grails 3.3.2 app to deploy it into a Jetty 9.1.4 contained I provide (not embedded)? I am trying to run my Grails 3.3.2 app in a Jetty (v 9.1.4) container. I added the following to ...
6
votes
1answer
360 views

How to select specific jetty version in Gretty plugin

I am using Gretty plugin for running web application from Gradle script. Is it possible to select a specific version of jetty container to run? Not just jetty9 vs jetty8, but e.g. 9.2.13.v20150730
0
votes
0answers
43 views

Occasionally Bad Gateway (502) from nginx and jetty on aws after upgrading dropwizard

I'm running a jetty REST server on AWS - Elastic Beanstalk, with nginx. The application is running using the Dropwizard framework. Recently, I've upgraded Dropwizard from version 1.2.2 to 1.3.5. ...
0
votes
0answers
9 views

How change pool threads name in Jetty?

I use Jetty with Apache Karaf and I need to change the name of pool thread name because by default it is generated a random name for it that is unfriendly. How is it possible? I use Jetty 9 and Karaf ...
1
vote
0answers
27 views

openbd upgrading jetty version 8 to version 9

We have centOS based system where openbd is setup with jetty version 8.1 My requirement is now to upgrade the version of 8 to latest 9.x.x version. I do not find the exact example to do this. Please ...
2
votes
2answers
2k views

Application Server was not connected before run configuration stop, reason: java.io.IOException: Failed to retrieve RMIServer stub:

I am trying to deploy my app using the Jetty plug in with IntelliJ. I am getting this error message. I am able to deploy the app using Tomcat successfully. Can anyone suggest why? Application Server ...
26
votes
3answers
27k views

Debug web app in IntelliJ, webapp built by maven, run by jetty

I'm using s/o code, it's a java webapp built by maven. The webapp is run by maven script, like below, and the app is run on localhost:8080, : <build> <plugins> <...
15
votes
4answers
55k views

java.io.IOException: Broken pipe

We are currently migrating a legacy application to Jetty. And I have somehow an exception regarding a broken pipe. Java 6 Jetty 8.1.8 Spring 3.2.0 I am trying to migrate a Glassfish web application ...
0
votes
1answer
100 views

Jetty doesn't show up in jcmd

When I launch jcmd it shows me all java processes except Jetty, why? JCmd: [root@test_app_bm 2015_06_01_18_19_47_13098]# /usr/java/latest/bin/jcmd 15152 sun.tools.jcmd.JCmd 21785 DummyTrkPartner....
0
votes
0answers
69 views

LDAP integration with Solr

I am trying to integrate LDAP with Solr. I know it was possible with the old Solr 5 but we need LDAP authentication for Solr 7. Solr 7 now only comes with bare minimum Jetty and doesn't support ...
0
votes
1answer
23 views

Eclipse Jetty won't start

I've tried a lot, but Jetty just would not start, here's the config in the pom.xml <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</...
0
votes
2answers
2k views

How to make embedded servlet engine instantiate servlets eagerly?

The problem is simple, but I'm struggling a bit already. Server server = new Server(8080); Context context = new Context(server, "/", Context.NO_SESSIONS); context.addServlet(MainPageView.class, "/"...
0
votes
0answers
34 views

keycloak 403 forbidden error while accessing rest resource where as evaluate api shows permit

I have setup authentciation with keycloak 4.1 successfully. Now I am setting up authorization. NOTE: Post might seem longer than it actually is as it contains lot of images that show configuration. ...
0
votes
2answers
1k views

Java web.xml location for embedded jetty

I'm trying to understand the way we should configure the web application. Now i have a simple gradle project with embedded jetty Dependencies: dependencies { compile('org.eclipse.jetty:jetty-...
-1
votes
0answers
17 views

How to add multiple contexts in Jetty web.xml?

I was able to spin up a Jetty web server with standalone files. I have a requirement where when a request comes to a specific context like "server" it should be posted to a backend Tomcat on ...
1
vote
1answer
45 views

How to securely provide ssl keystore and key passwords

I use ssl keystores for Jetty 9 and Kafka. I need to provide keystore and key passwords to access the keystore and private key. However, I don't want to provide these passwords in clear text in the ...
0
votes
1answer
36 views

Running Spring MVC app with jetty-runner on Amazon Elastic Beanstalk

I am moving my Spring MVC app that uses hibernate from heroku to Amazon. The app works perfectly on heroku with; web: java $JAVA_OPTS -jar target/dependency/jetty-runner.jar --port $PORT target/*.war ...
0
votes
0answers
40 views

Jetty http client establish a connection to https REST API with “self-signed” certificate

I am having trouble establishing a successfull connection with the http client from Jetty to a https server in my local network. With curl everything works fine: curl -X POST 'https://local-network....
0
votes
1answer
386 views

Jetty to serve plain html and JS code

I've installed Jetty using homebrew on osx. Jetty is in the usual folder: /usr/local/Cellar/jetty/9.4.5.v20170502 However, we are not going to use this for anything related to Java. It's just our ...
1
vote
0answers
39 views

Add CORSHandler to a camel-jetty component

I need to add the following CORSHandler to a camel-jetty component. public class CORSHandler extends AbstractHandler { @Override public void handle(String arg0, Request arg1, ...
1
vote
0answers
62 views

How can I configure an osgi http whiteboard servlet for HTTPS?

I have built a REST interface via the http whiteboard servlet pattern in osgi @Component(service = RestComponentImpl.class) @JaxrsResource @HttpWhiteboardResource(pattern = "/rest/*", prefix = "...
1
vote
1answer
781 views

WireMock Performance and Load Testing

Is there any way to make WireMock Standalone faster? I have 1kb response file that I want to get back between 3ms - 10ms Currently the response is coming back within 20ms - 40ms This is for an ...
0
votes
0answers
20 views

Adding a new version of spring-boot-starter-parent creates an issue with jetty server configuration

After moving from <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.4.2....
0
votes
1answer
17 views

How do I configure ANY web server to accept POST requests that have No Host and absolute request URIS?

I have a client that sends http requests with absolute request uris and does not define "host" There for a web server like Jetty rejects the POST request saying: org.eclipse.jetty.http....
0
votes
1answer
14 views

Found class org.eclipse.jetty.websocket.api.UpgradeRequest, but interface was expected

I'm new in Java development and I faced this error when trying to get querystring variables by getParameterMap() method: Found class org.eclipse.jetty.websocket.api.UpgradeRequest, but interface was ...
0
votes
1answer
11 views

Jetty is not extracting my WAR file into temp directory. How can I stop it from extracting or make sure it extracts to the temp directory?

In a spring-boot app, how do I stop Jetty from extracting the War file ? I want to stop Jetty from extracting the War because the directory where it is supposed to be extracted is always empty. I ...