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
0
votes
1 answer

GWT SSLContext.setDefault(SSLContext) Jetty exception

I am trying to execute the following code in GWT Jetty development mode final SSLContext sslContext = SSLContext.getInstance(PROTOCOL); sslContext.init(null, trustManagerFactory.getTrustManagers(), null); …
user1782634
  • 187
  • 1
  • 11
0
votes
1 answer

Which is a better way to handle connection pooling?

I'm trying to implement connection pooling for a JSF 2.1 application which has a H2 database and Jetty 9 Web server embedded in it. I have two options to implement connection pooling for the h2 database. The options being let Jetty implement…
FiendFyre
  • 157
  • 3
  • 17
0
votes
2 answers

Embedding jetty server into android applications

So far i am trying making sample android applications to embedded android jetty web server enables to run samples hello-3.1.war from Google code. While i run hello-3.1 in eclipse then null pointer exception has been occur. HTTP ERROR 500 Problem…
Venkatesh
  • 144
  • 1
  • 18
0
votes
1 answer

GWT-Log & Jetty: How dynamicially set the SymbolMap path

Currently we have the following working example with a messy "war" prefix in path: gwt-log-remote-logger-servlet com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl
Jens Peters
  • 2,075
  • 1
  • 22
  • 30
0
votes
2 answers

Load different spring configuration when running integrations tests

I have the following setup: normally my webapp will be deployed on stand-alone server and connect to MySQL database. However I want ability to "self-test" the application with Selenium. So during mvn clean install there will be embedded server…
0
votes
0 answers

enable JMX in embedded jetty

I want to enable JMX in jetty 9 for collecting statistics. According to the documentation I have to do this as follows Server _server = new Server(); // Setup JMX MBeanContainer mbContainer=new…
user2004360
  • 209
  • 2
  • 3
  • 8
0
votes
1 answer

Disable cookies in embedded eclipse Jetty via vm argements

How to disable cookies in embedded eclipse Jetty via vm argements like "-Dorg.eclipse.jetty..."?
Nawa
  • 2,058
  • 8
  • 26
  • 48
0
votes
2 answers

How to control chunks in jetty?

I'm writing HTTP webservice that may take quite long to produce results. I use embedded Jetty 8.1.5 and JAX-RS (Apache CXF) I decided to go with some kind of control protocol: when new request comes, I start a long-running job in a separate thread…
relgames
  • 1,356
  • 1
  • 16
  • 34
0
votes
1 answer

Jetty 8: proxyservlet use ExecutorThreadPool or QueuedThreadPool

I'm using Jetty 8 with its ProxyServlet, and was wondering what's the fastest threadpool to use, ExecutorThreadPool or QueuedThreadPool? This is the code I'm currently using: Server httpProxy = new Server(); SelectChannelConnector connector =…
Jochen
  • 1,853
  • 3
  • 20
  • 28
0
votes
1 answer

SLF4J multiple bindings error on jetty 9 embedded webapp when trying to log jetty logs

I try to build a standalone version (executable jar) of a webapp. So I use jetty to load the war file. The war file already contains slf4j and logback as dependencies. In my standalone app I have a logback.xml to define the logger definitions.
tobr
  • 127
  • 1
  • 8
0
votes
1 answer

Does Anyone know if there is any incompatibility between COMETD and JERSEY 9? Last version of Jetty is incompatible I think

After trying to configure maven to work with the last Jetty version (embedded JETTY 9) , I tried to use cometd (last version is 2.5.1) and I figured out that is not possible to make it work. As you can see below , it seems there is compilation…
didilin
  • 41
  • 4
0
votes
1 answer

How can I create a number of jetty run tasks in gradle?

I need create a number of different modes for running jetty in my gradle build. They differ in system properties and classpath. How can I do it using gradle jetty plugin?
Pavel Bernshtam
  • 4,232
  • 8
  • 38
  • 62
0
votes
2 answers

External static resources with Jetty

I have the following Jetty config: ${project.basedir}/configuration/webdefaults.xml /app
kaqqao
  • 12,984
  • 10
  • 64
  • 118
0
votes
1 answer

flushBuffer() not working

I'm running a embedded Jetty Server (Jetty 8). I wanted to make an HTTP streaming app. Thus, I have to flush my writer every few seconds (The servlet will continue running). The problem is that neither response.flushBuffer(), nor…
user1523170
  • 393
  • 4
  • 9
0
votes
1 answer

Configuring jetty to work with JDBC datasource

i have an spring web application (on glassfish server) that use JDBC connection pool. It defined in XML file like this:
Chuprin
  • 1,147
  • 1
  • 13
  • 18