Questions tagged [embedded-jetty]

Jetty is a widely used web container (server) written in Java and produced by Eclipse.

Jetty is a widely used web container written in Java. Jetty has a slogan, "Don't deploy your application in Jetty, deploy Jetty in your application."

What this means is that as an alternative to bundling your application as a standard WAR to be deployed in Jetty, Jetty is designed to be a software component that can be instantiated and used in a Java program just like any POJO. Put another way, running Jetty in embedded mode means putting an HTTP module into your application, rather than putting your application into an HTTP server.

You can find extra information for Jetty at Codehaus.

1375 questions
4
votes
0 answers

How do I use a web.xml file with noir?

I'm writing a web app in clojure, and want to edit Jetty's settings. One way to do this is to use a web.xml file. How do I use a web.xml file with Jetty?
Paul Biggar
  • 27,579
  • 21
  • 99
  • 152
3
votes
1 answer

Lift application performance degrade

I am using lift framework with embedded jetty. My application is running pretty fast if I am it in development. As soon as I make a assembly of it using SBT, the performance degrades upto 20-30 times. The request which was taking 400ms, starts…
Puneet Jain
  • 219
  • 2
  • 7
3
votes
1 answer

MySQL connection pooling with embedded Jetty

I have a working WebSocket server based on the current release of Jetty. It runs as an embedded server, mainly because I don't know anything about writing servlets and embedding Jetty seems to be one of the few well documented things with this…
j0ker
  • 4,069
  • 4
  • 43
  • 65
3
votes
1 answer

Getting FileNotFoundException when deploying war using Maven Jetty plugin

I'm using Maven 3.0.3 with the Jetty plugin. I'm getting the error below: java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml which I don't understand, because the file is present at…
Dave
  • 8,667
  • 25
  • 72
  • 90
3
votes
1 answer

Disable TRACE for embedded jetty server?

I’m working on a project where I want to disable TRACE method for an embedded jetty server. As it turned out, it is not disabled by default for embedded server. I tried creating a Constraint and even a filter using the following source: Java…
jhthewow
  • 133
  • 1
  • 3
  • 12
3
votes
1 answer

How to get the client's certificate in jetty server when doing authentication

After set an embedded Jetty server that requests client authentication by setting SslContextFactory.setNeedClientAuth(true), how can I get the client's certificate information when a client connect to jetty server for both cases, the authentication…
siaodi
  • 33
  • 5
3
votes
2 answers

How to set up SSL on an embedded Jetty?

I've got jetty 7.x embedded. Basically just creating a SelectChannelConnector to listen on port 80 and WebAppContext to deploy a single WAR directory. I need to add SSL now (all the keystore stuff is done), and I would have guessed to just add an…
David Parks
  • 30,789
  • 47
  • 185
  • 328
3
votes
1 answer

error embedding a war into a jetty

I tried this example of an embedding war into a jetty. When I debug on eclipse everything its ok and the webservices is deployed fine in port 8080, but when I make a jar with this program and put into a server (I tried into a tomcat 5.5 and into a…
user758779
  • 31
  • 1
3
votes
0 answers

Authenticating with Jetty through GWT button

I'm trying to create a login page using SmartGWT and have been trying to get Form Authentication to work with the Jetty server embedded with the GWT plug-in for Eclipse. I have a page that takes a username and password using TextItems, then once the…
3
votes
1 answer

Linux top command reporting high CPU usage for Java ThreadPoolExecutor thread in Waiting state (after updating Jetty server from 9.0.6 to 9.4.22)

I have a web service which receives requests and after performing certain validations dumps data to a Message Queue. This service creates a ThreadPoolExecutor internally. I use Prometheus and Grafana to visualize application metrics and observed…
Dhruvil Vaghela
  • 580
  • 6
  • 13
3
votes
1 answer

how to make keycloak work with embedded jetty?

Hello every one I have just been trying out key-cloak for IAM and it seems a great tool to me but one thing that I can't seem to figure out is how to integrate it with my current JAX-rs web services that run on an embedded jetty container. As far as…
JayD
  • 748
  • 1
  • 13
  • 38
3
votes
1 answer

Serving static content outside the WAR with Embedded Jetty

I have a WAR (being served through Embedded Jetty) that I'd like to include static files outside the WAR. My goals are: Serve static files from a path outside the WAR, relative to the directory the Embedded Jetty is running. So, if I invoke the…
SRobertJames
  • 8,210
  • 14
  • 60
  • 107
3
votes
2 answers

Spring Boot APPLICATION FAILED TO START as class org.eclipse.jetty.server.Server does not exist

I am migrating a web application to a Spring Boot application which fails to start and displays the following error message : An attempt was made to call the method org.eclipse.jetty.server.Server. …
deepankardixit90
  • 351
  • 4
  • 19
3
votes
1 answer

Embedded jetty: display all sessions in context

I recently moved a project that uses an embedded Jetty from version 6.1 to 9.4. It was easier than I expected. Now only one feature is left to migrate: The project has an administration tool, that shows all the loaded contexts (it can host more than…
Udo Klimaschewski
  • 5,150
  • 1
  • 28
  • 41
3
votes
1 answer

Jersey JAX-RS register more controllers on embedded Jetty

I'm trying to implement a restful web service using Jersey JAX-RS. I embedded a Jetty web server and wanted to register all the controllers on it. I based on this example:…
Alessandro Argentieri
  • 2,901
  • 3
  • 32
  • 62