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

Can't set context path with embeded Jetty

I try to pack embedded jetty into jar file. But all the time i can't access to my "home" jar dir, where is all html file situated. Here is my launcher file, i tried to use classloader resource path but all the time it is null. I found several…
Andrew
  • 266
  • 6
  • 18
0
votes
1 answer

Eclipse RCP error 404 in custom help tab

I want to add some advanced functionality to help browser in an Eclipse RCP application based on Eclipse 3.7. I've created a separate plugin for help functionality and extended org.eclipse.help.webapp.AbstractView: import java.util.Locale; import…
McMonster
  • 171
  • 1
  • 10
0
votes
1 answer

Maven/Eclipse - Quick iteration acceptance Testing a project packaged as a WAR file

Eclipse makes working with multi module maven projects easy because you don't have to re-build and re-install a module before dependent modules will see changes to it. So you just change the code and eclipse updates the dependencies magically in the…
PiersyP
  • 5,003
  • 2
  • 33
  • 35
0
votes
1 answer

How can I programmatically start a jetty server with multiple configuration files?

In other words, what is this equivalent to: java -jar start.jar etc/jetty.xml jetty-plus.xml I'm using Jetty 6.
0
votes
0 answers

Why does the debugger not find the executed source code of javax.faces.component.UIViewRoot

I have a JSF 2 application. There is a NullPointerException in one page. The logs and stacktrace does not give any useful information. Therefore, I wanted to debug the exact location where the NullPointerException is thrown. The stacktrace is…
Mert Nuhoglu
  • 9,695
  • 16
  • 79
  • 117
0
votes
2 answers

Configure Jetty OSGi bundle for max number of connection

How do we configure an embedded Jetty OSGi Bundle to have a limited number of HTTP Connections. i.e. I want to limit the number of connections that clients can make with Jetty Server. once the limit is reached, it should reject the connection…
0
votes
2 answers

Error When Using A Data Source Without A Password In Jetty 9

I was able to make the following example project work on my system using HSQLDB and Jetty: http://www.programmingforfuture.com/2011/02/in-process-mode-of-hsqldb-in-web.html I then wanted to convert the project to use JNDI to reference the data…
Tom Purl
  • 519
  • 4
  • 20
0
votes
1 answer

Make jetty display effective config?

I'm a frontend developer with a backend server using jetty. I am making a small fix that belongs in web.xml / webdefault.xml / jetty.xml / the various other methods mentioned on http://wiki.eclipse.org/Jetty/Howto/Configure_Jetty. I understand there…
mikemaccana
  • 110,530
  • 99
  • 389
  • 494
0
votes
0 answers

Getting ERROR - Failed to Boot! while running JettyTestServer with multiple ports together for remote integration testing

I have one scenario, where I have to test remote functionality through multiple JVMs. I am trying to run JettyTestServer with two different ports. But I am getting below error while running Jetty on second port. ERROR - Failed to Boot! Your…
Ayush Mishra
  • 567
  • 1
  • 7
  • 19
0
votes
1 answer

WebApplicationInitializer is not launched on jetty+selenium

i am trying to run selenium test on jetty using gradle and my gradle configuration is as follows: gradle.build: apply plugin: 'java' apply plugin: 'eclipse-wtp' apply plugin: 'war' apply plugin: 'findbugs' //apply…
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
0
votes
1 answer

Running embedded Jetty : How to access hosting applications' methods?

We are using an embedded jetty instance that we pass a .war file to host a web application. That works very well. Now, we want to call methods in the hosting java application (that started the jetty server) What is the best way to call methods in…
AndyB
  • 556
  • 1
  • 9
  • 25
0
votes
1 answer

Expose POJO as webservice with CXF without deploying as WAR file

I need to write a server with an embedded Jetty or Tomcat which is capable of exposing a POJO as a webservice using apache CXF programatically, i.e. without deploying it as a .war file. Is this possible with CXF? Thanks.
Jeewantha
  • 965
  • 1
  • 11
  • 28
0
votes
2 answers

How to access servlet attribute in GWT server side code?

I've assembled my GWT app as war file which I am running in embedded Jetty- String confFile = System.getProperty("configFilename"); config = new XMLConfiguration(configFilename); Server server = new Server(8080); WebAppContext webapp = new…
user375868
  • 1,288
  • 4
  • 21
  • 45
0
votes
1 answer

How to bind a jetty server to specific set of IPs.

How to bind a jetty server to multiple IPs. In my case I want request coming on 172.18.1.1 to 172.18.1.5 ips binded on same port will get handle by a single instance of server.
Rajan Garg
  • 317
  • 1
  • 3
  • 7
0
votes
0 answers

Server returned HTTP response code: 403 for URL

I'm calling SAOP Webservice via a main method and it works fine.. But when i invoke the same method via a browser called method it give me the following error. Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL:…
Charitha
  • 317
  • 2
  • 4
  • 17