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

CruiseControl: Does not start - how to determine reason?

CruiseControl does not start any more (only known change was adding new memory to the machine.) Ok, it seems to start: Calling the web gui brings: HTTP ERROR: 404 NOT_FOUND RequestURI=/ Powered by jetty:// There are two exceptions in…
Heinrich
  • 408
  • 4
  • 13
4
votes
3 answers

Maven Webjars are not found

I'm trying to use webjars for bootstrap based on their documentation org.webjars bootstrap 3.1.0
Marc
  • 16,170
  • 20
  • 76
  • 119
4
votes
0 answers

javax.net.ssl.SSLHandshakeException: Unrecognized SSL message, plaintext connection?

I'm facing below exception when I try to establish a secure connection between Zuul gateway and microservice. Both Zuul and microservice are registered to secure Service Registry Server(Eureka). Able to access the REST endpoints exposed in the…
Barathi
  • 189
  • 1
  • 2
  • 11
4
votes
2 answers

Enabling TLS-1.2 on embedded Jetty

Currently I am using this code which is enabling TLS 1.2: ServerConnector httpsConnector = new ServerConnector(server, new SslConnectionFactory(sslContextFactory, "http/1.1"), new…
billabong
  • 41
  • 1
  • 1
  • 2
4
votes
0 answers

ERR_CONNECTION_ABORTED on chrome when uploading a big file using SPARK Framework

I have the following piece of code to handle file uploads in Spark for files below the limit it works flawlessly. Now when I use a big file 1GB and on some Jetty internal logic fires up aborting the browser connection without providing a response…
Odiel Leon
  • 83
  • 1
  • 6
4
votes
0 answers

Authenticate a user using CAC (Common Access Card) in a web application running in Jetty for an application used by a US government agency

I've been recently tasked with a similar task that this question describes. My task is to enable a web application to verify credentials via a CAC card. My web application is running on an embedded Jetty server running in an OSGi container. While…
twindham
  • 930
  • 9
  • 31
4
votes
3 answers

Jetty "javax.net.ssl.SSLHandshakeException: no cipher suites in common"

I've looked through similar questions on this but nothing seems to match what I'm doing or the suggested fixes work. I've got a Jetty 9.4.0 server configured from Java (JDK 1.8.0_101) which is not accepting SSL connections from Chrome or from my own…
Mike Cooper
  • 1,065
  • 3
  • 13
  • 34
4
votes
1 answer

Supporting Angular 2's PathLocationHandler with Jetty (using a 404 error page)

I'm trying to work out how to support Angular 2's PathLocationHandler with an embedded Jetty server. To do that, as I understand it, I need to redirect any 404 request to the top-level index.html file (https://stackoverflow.com/a/34104534/797) I…
Matt Sheppard
  • 116,545
  • 46
  • 111
  • 131
4
votes
1 answer

How to remove trailing slash from embedded Jetty URLs?

I use embedded Jetty 9.3.8.v20160314 from Scala (Scala is incidental here, this is a pure Jetty question), configured like this: val loginService = new RepoLoginService(usersRepository, signInsRepo) val server = new…
François Beausoleil
  • 16,265
  • 11
  • 67
  • 90
4
votes
0 answers

using ANT to package the Web app directory with the executable jar

I am working on an open source project that uses ANT which can perform all kind of useful targets. One of them generate an executable jar and a webapp directory in the same directory. I tried to find ways to package that webapp directory with the…
InsaneBot
  • 2,422
  • 2
  • 19
  • 31
4
votes
1 answer

"Provider not a subtype" on org.eclipse.jetty.apache.jsp.JuliLog for Embedded Jetty

When using embedded jetty and started via mvn jetty:run The following exception is thrown: Exception in thread "main" java.util.ServiceConfigurationError: org.apache.juli.logging.Log: Provider org.eclipse.jetty.apache.jsp.JuliLog not a…
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560
4
votes
2 answers

How to view custom 404 page in Dropwizard

can anyone point me how to view my custom 404 page. I googled and tried implementing ExceptionMapper but this did not work fully. I'm using 0.8.1 version My Exception mapper: public class RuntimeExceptionMapper implements…
4
votes
1 answer

Out Of Memory Error with larger file uploads

I've had some issues with larger file uploads to my jetty server Trace. I'm uploading as Multipart/form-data, and fetching the file from the request using scalatra's FileUploadSupport (as below) class foo extends ScalatraServlet with…
Richard
  • 43
  • 4
4
votes
1 answer

How to do unit test websocket with embedded jetty?

I want to write Junit UT case for my websocket serverendpoint code using embedded Jetty. i tried things explained in below link: JUnit test with javax.websocket on embedded Jetty throws RejectedExecutionException: NonBlockingThread I want to test my…
4
votes
0 answers

How to load properties file to embedded jetty?

I have a embedded jetty server running. I want to inject system properties such as database uri,name,pass to server before starting up how can I do that ? The properties are in a .ini file not in the classpath. The server looks like this: public…
Pranaya Behera
  • 545
  • 1
  • 9
  • 24