Questions tagged [jetty-8]

Version 8 of Jetty, a widely used async java based http server and servlet engine supporting WebSockets and SPDY protocols.

Version 8 of Jetty, a widely used async java based http server and servlet engine supporting WebSockets and SPDY protocols.

122 questions
33
votes
13 answers

Spring 3.1 WebApplicationInitializer & Embedded Jetty 8 AnnotationConfiguration

I'm trying to create a simple webapp without any XML configuration using Spring 3.1 and an embedded Jetty 8 server. However, I'm struggling to get Jetty to recognise my implementaton of the Spring WebApplicationInitializer interface. Project…
Duncan
  • 763
  • 1
  • 6
  • 9
33
votes
2 answers

is it possible to send a data when a websocket connection is opened

I am implementing a Jetty Websocket servlet. When the server receives a new connection, I want to send a message that will be read by websocket's onopen function. I want this message to be sent only during the open and not using the regular…
DPD
  • 1,734
  • 2
  • 19
  • 26
9
votes
2 answers

How Jetty handles class loading with same class with different dependencies?

I want to know how jetty handles when multiple dependency paths which can lead to same class. For example, Jetty comes pre-packaged with JSTL-1.2, but I added a dependency to load JSTL-1.2.4. At compile time, if I breakpoint test it downloading the…
8
votes
2 answers

Deactivate Jetty's default 404 error handler

I want to provide a custom 404 error page in my Spring 3.1 web application, but I cannot deactivate Jetty 8's default 404 error page. Jetty 8, out of the box, provides a default 404 error page: when visiting a Jetty-hosted website, and providing a…
Abdull
  • 26,371
  • 26
  • 130
  • 172
8
votes
1 answer

Jetty Deployment Order

I have multiple wars getting deployed in jetty 8.1.4 using ContextAppProvider. we want to specify the order in which war apps are deployed, as we have some wars depend on other wars. So how to set the specific order of deployment in jetty
Surya Chaitanya
  • 602
  • 4
  • 13
7
votes
1 answer

Is the default configuration good in Jetty 8 sensible for quite heavily loaded web application?

Its been decided to deploy an application to Jetty 8, previously was using Tomcat 7. Jetty 8 is being used using the defaults, and seems to be working okay, but then occasionally waiting for connections, looking at the jetty.xml I'm confused about…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
6
votes
4 answers

SocketConnector 8081 - Address Already in use

I am trying to run 2 Dropwizard Server applications on 2 different ports 8080 and 9000.The first application starts successfully but I keep getting the below exception when I try to run on port 9000. What I am not understanding is that why are 2…
Abhijeet Kushe
  • 2,477
  • 3
  • 26
  • 39
6
votes
1 answer

Jetty 8 vs Jetty 9 for production environment

We are currently using Jetty 8 for a production environment serving low latency traffic. We were wondering what would be the advantages to move to jetty 9, given that we have a very low latency requirement. Thanks!
pampasman
  • 318
  • 2
  • 9
6
votes
0 answers

Regex context path in jetty ContextHandler?

I am trying to use jetty context configuration ( configuration placed in $JETTY_HOME/context/ ). I am trying to configure a ContextHandler that is responsible for serving static files as the one ine javadoc.xml. My configuration files is goes like…
Adelin
  • 18,144
  • 26
  • 115
  • 175
6
votes
1 answer

How to use JASPI/JASPIC on Jetty?

On Jetty's main project page compatibility with JASPI (JASPIC/JSR 196) is mentioned. However, the distribution of Jetty 8 does not seem to contain any classes related to JASPI. There's a jetty-security-8.1.8.v20121106.jar jar in [jetty home]/lib,…
Arjan Tijms
  • 37,782
  • 12
  • 108
  • 140
5
votes
1 answer

"Too many open files" exception while running mvn org.mortbay.jetty:jetty-maven-plugin:run

In one of my project , I have used Lift 2.5 M4 and Scala 2.10.0 . In this project , I am using Jetty 8.1.10.v20130312 . But while running project through mvn jetty , I am getting unexpected exception . I have configured jetty plugin in pom.xml…
Ayush Mishra
  • 567
  • 1
  • 7
  • 19
4
votes
2 answers

Jetty: Java.lang.NoClassDefFoundError:org/apache/jasper/runtime/JspApplicationContextImpl error

I am using Jetty 8 (stable), JDK 1.7. Eclipse Luna latest. I am new to using Jetty with Java, I am trying to run a sample code provided in Tutorial (Link to tutorial) But I am getting following error: 2015-06-24…
user1400290
  • 1,682
  • 5
  • 23
  • 43
4
votes
1 answer

Jetty 8: can a web fragment jar's /META-INF/resources/WEB-INF/classes directory contribute to the web app's classpath?

I created a Servlet 3.0 web fragment jar that contains a file: /META-INF/resources/WEB-INF/classes/com/foo/whatever/i18n.properties One of the Servlet Context Listeners enabled by the web fragment at app startup executes the following code: public…
Les Hazlewood
  • 18,480
  • 13
  • 68
  • 76
4
votes
1 answer

How do I dynamically add servlets to a jetty server?

I create a jetty server and want to programmatically and dynamically add servlets. I setup logging and a console then proceed to create the server as follows: Connector httpConn = null; Connector httpsConn =…
4
votes
5 answers

restful service interface with jersey

Can I create a restful service with interface and implementation class? If so, will all JAX-RS related imports go into the interface? I am using jersey2.4 and jetty8.1. Here is my MyService interface: package foo.bar; @Path("/abc") public…
Aravind Datta
  • 327
  • 4
  • 6
  • 17
1
2 3
8 9