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

Jetty + jax-ws affects jsp compilation - it now needs ant?

We have just upgraded to the newest jax-ws code from metro, but for some reason we now have to ship ant too. This appears to be needed for the jsp compilation. Without it we get java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildListener …
Neil Wightman
  • 1,103
  • 2
  • 9
  • 29
0
votes
1 answer

Jetty embed in Processing.org, static assets + POST

I'm trying to embed Jetty in a Processing Sketch. So far I made it working to serve static files (a html directory in the Sketch folder). I want to react to one POST with a user input from one of the static pages. As I have no knowledge on Jetty and…
phl
  • 408
  • 1
  • 4
  • 9
0
votes
1 answer

Jetty : Client file download

I have a java application running Jetty, and containing several servlets and some beans. The whole thing is handled using a .war file. The architecture is already pretty big, and I don't handle all its concepts yet, so please excuse my ignorance.…
jlengrand
  • 12,152
  • 14
  • 57
  • 87
0
votes
1 answer

One security concept for multiple wars on embedded jetty

I have an embedded jetty server with multiple wars. Each war is one part of one web application. The goal is to add the same security to all wars. My preferred security mechanism would be spring security. There might be two solutions: a) Define…
Tristan
  • 309
  • 1
  • 3
  • 6
0
votes
1 answer

Serve both Thrift/TServlet and static files from same Jetty server

I'm trying to serve static files and a Thrift service from the same Jetty server. Up until now I have the following code: val server = new Server(); val connector = new…
wen
  • 3,782
  • 9
  • 34
  • 54
0
votes
2 answers

JMX enabling my Application using Jetty as embedded server

I have a java server application that would like to provide Http interface to for administrative tasks such as monitoring and configuring it at run-time and such. I have some idea that JMX would provide me with a neat standard interface that if I…
Selvakumar Esra
  • 1,154
  • 2
  • 15
  • 30
0
votes
1 answer

How to start an aggregate jetty-server JAR from Ant?

Background Disclaimer: I have very little experience with Java. We previously used a wrapped version of Jetty 6 for on-demand static content (JS, CSS, images, HTML) during our Ant build so we can run unit tests with PhantomJS against an HTTP-hosted…
James M. Greene
  • 1,251
  • 1
  • 16
  • 23
0
votes
1 answer

Response time of web server significantly longer when started from within eclipse

I am developing an application that includes an embedded Jetty webserver. When I start from within eclipse, I experience response times of about 100ms even for very simple requests which I would expect to return within about 15ms. However, when I…
lex82
  • 11,173
  • 2
  • 44
  • 69
0
votes
1 answer

how to view JSP java file when using runjettyrun plugin

I am using Eclipse Indigo with runjettyrun plugin (latest). The webapp deploys successfully, but on non-trivial page I get a JSP custom tag compilation error. I am getting the following JSP compilation error: java.lang.IllegalStateException: STREAM …
rk2010
  • 3,481
  • 7
  • 27
  • 39
0
votes
1 answer

Instance of running embedded jetty server at certain port

An embedded jetty server is running at a particular port number. I want to get that running instance to stop from
Madhusudan Joshi
  • 4,438
  • 3
  • 26
  • 42
-1
votes
0 answers

Spring boot: how to set the embedded server's sessionIdManger and sessionHandler to null?

I have a JettyServerCustomizer that configs my embedded server, however there are certain configs that will be set by Spring after the customizer. Is there a way to override these after the configs. sessionIdManager is an example, …
-1
votes
1 answer

Trouble running jetty servlet

I managed to follow some tutorial and setup a jetty webserver that runs with Maven in Intellij. It runs when I click into maven and do Jetty:run but does not run from my main class. My issue is when try and run the code to launch a webserver I get…
-1
votes
1 answer

Jetty 9 to 11 upgrade requires servlet 5.0. Latest spark-java still using servlet 3.0

Hi we're on our way to upgrade to jetty 11 and have come across this issue - Jetty 11 needs servlet 5.0 while spark-java even upto 2.9.4 is still using servlet 3.0. I could not find any info related to this on the spark-java page. Does anyone have…
shashwatZing
  • 1,550
  • 1
  • 17
  • 24
-1
votes
1 answer

Jetty: How do I protect unpack war file

I developed web that deploy ROOT.war through jetty(windows10) and I will deploy that to my client but I don't want to who modify my unpacked war file. and I want to protect my unpacked war file Someone tell me How do I protect unpacked war…
-1
votes
1 answer

Does Jetty 11 have a CORS filter? If not, is there a reason for it?

I have been searching for CORS examples with Jetty 11, and haven't had any success. There is no mention of CORS in the programmer's guide for Jetty 11 either. This makes me wonder if the CORS filter was intentionally omitted from the new version. If…
mainas
  • 754
  • 1
  • 6
  • 15
1 2 3
91
92