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
7
votes
2 answers

Google AppEngine + Local JUnit Tests + Jersey framework + Embedded Jetty

I use Google Appengine for Java (GAE/J). On top, I use the Jersey REST-framework. Now i want to run local JUnit tests. The test sets up the local GAE development environment ( http://code.google.com/appengine/docs/java/tools/localunittesting.html…
Dr. Max Völkel
  • 1,780
  • 2
  • 17
  • 24
7
votes
1 answer

Embedded Jetty - Spring MVC - view resolver - NO XML - HTTP ERROR: 404

I'm trying to set up a simple Spring MVC server using embedded Jetty. I've set up the server, enabled spring and configured a view resolver for .jsp files. The controller gives me 404 with the following message: Problem accessing /jsp/test.jsp.…
PalSivertsen
  • 384
  • 2
  • 11
7
votes
2 answers

How do I configure embedded jetty server to log all requests?

I want to log all soap requests to my server. The server instance is an embedded jetty server. Is there a way to setup a handler to do this. I have access to the web.xml file
sab
  • 9,767
  • 13
  • 44
  • 51
6
votes
2 answers

Apache Nifi failed to start web server (shutting down) during DocGenerator.generate()

Apache-Nifi v-1.7.1 was running fine on AWS Centos machine but now on restart it thrown following error: (below content of /nifi-app.log) org.apache.nifi:nifi-standard-nar:1.7.1 ||…
Zubair
  • 5,833
  • 3
  • 27
  • 49
6
votes
1 answer

Jetty : Dynamically removing the registered servlet

I created and started jetty server with WebAppContext. I can also add servlet to the WebAppContext with addServlet method. But I want to dynamically remove this servlet. How can I do this ? Something like removeServlet() is not provided in the…
nattu
  • 149
  • 2
  • 9
6
votes
2 answers

Using ContentCachingRequestWrapper causes Empty Parameters Map

I have implemented a Filter, in which I want to read the content of request first for some checks and then I would like to go on. But the problem is, that in the following filter from the filter chain the getParameters() Method from class Request…
Michael Kronberger
  • 93
  • 1
  • 2
  • 12
6
votes
2 answers

javax.servlet.http.HttpServletResponse.getStatus() not found

I am working with an embedded Jetty server, deploying a Jersey REST api, and I am trying to log the errors, with log4J. When an error happens, for instance a URL not found, and the console log shows the following error: java.lang.NoSuchMethodError:…
user4052054
  • 395
  • 1
  • 6
  • 22
6
votes
2 answers

Libraries for embedding Jetty?

Embedding Jetty webserver into a Java application is supposedly easy; examples abound. No examples indicate the Jetty libraries that must be imported. I have downloaded the Jetty distribution package... it has 36 jar files. Where can I find a…
corgrath
  • 11,673
  • 15
  • 68
  • 99
6
votes
3 answers

Servlet 3.0 support in embedded Jetty 8.0

For my unit-tests I use a simple test-server based on Jetty: package eu.kostia.textanalysis.webservices.jetty; import java.awt.Desktop; import java.net.URI; import org.eclipse.jetty.server.Server; import…
kostia
  • 305
  • 1
  • 3
  • 8
6
votes
1 answer

Jetty custom error pages when running as embedded server

How do you override the default error pages (suffixed with "Powered by Jetty") when running Jetty as an embedded server? i.e. Server server = new Server(8080); server.setHandler(new Handler()); /* configure custom error pages?…
Jonny Rylands
  • 193
  • 4
  • 12
6
votes
1 answer

is possible to combine: jersey + jetty + spring

I'm trying to create a webserver embedding jetty (rather than Java EE) , and map my servlets RESTfully, using jersey. I'm using spring for dependency injection, and mapping the servlets as beans However, when I try to make an HTTP req to the mapped…
msshapira
  • 257
  • 1
  • 4
  • 12
6
votes
1 answer

Embedded Jetty doesn't recognise Spring MVC Security

I am developing a Spring application that starts an embedded Jetty Server. It then "deploys" a Spring MVC web app to this Jetty server. All is working well with multiple controllers, but I fail to add Spring Security to the web app. I use…
feob
  • 1,930
  • 5
  • 19
  • 31
6
votes
1 answer

Jersey problems with Maven - Shade Plugin

My problem is very similar to: Jersey exception only thrown when depencencies assembled into a single jar I run my application (jetty embedded + jersey) and everything works. When i try to create a executable JAR i get the…
p.magalhaes
  • 7,595
  • 10
  • 53
  • 108
6
votes
1 answer

Customizing HttpConfiguration of Jetty with Spring Boot

I'm using spring boot (1.2.1 as of now) and I need to increase the default 8k request header size limit which lives in HttpConfiguration class in Jetty. Looking into JettyEmbeddedServletContainerFactory which I can get hold of via…
Jan Zyka
  • 17,460
  • 16
  • 70
  • 118
6
votes
1 answer

Asynchronous Servlet with Embedded Jetty

I want to build a real simple example for invoking a asynchronous servlet in an embedded Jetty server. When I try to start a Runnable from the AsyncContext of the Request, I get a NullPointerException. This is the server code: public static void…
Gregor
  • 2,917
  • 5
  • 28
  • 50