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

Embedded Jetty shutdown exception

Embedded Jetty shutdown issue. I embedded jetty within my java application. I run the application from the console. However whenever I press CONTROL+C to shutdown the server shutdowns alright but throws some socket exception. This is the code to run…
Arsene
  • 1,037
  • 4
  • 20
  • 47
0
votes
2 answers

Jetty and/or Servlet-api in JavaFX breaks deployment

I try to embed (use) Jetty into my JavaFX 2.2 applet (which runs in a browser). My problem is that, to host servlets I need to include the servlet-api-3.0.jar also (for javax.servlet namespaces) besides jetty-server.jar, jetty-servlet.jar and…
Csabi
  • 807
  • 3
  • 8
  • 18
0
votes
1 answer

Servlets and .jsp pages (hosted within the same .jar as the embedder)

I generate a jar file of an application containing an embedded Jetty 8.1.8.v20121106 with a jdk1.7.0_07 running on windows. However when I want to access the index.jsp I got the following error:
HTTP ERROR 500 Problem accessing /smpp/.…
Arsene
  • 1,037
  • 4
  • 20
  • 47
0
votes
1 answer

is it possible to set a global branded error page for 404's a using dropwizard

I find myself working a grails application that is being deployed as a fat jar built by a custom plugin that uses dropwizard to configure jetty. It seems as though dropwizard doesn't allow facilitate the use of a plain old web.xml or jetty.xml and…
bensfromoz
  • 11
  • 1
0
votes
1 answer

Jetty 8(Embedded) With HSQLDB Datasource

I've been hopelessly trying for two complete days to expose a data source using HSQLDB through JNDI, through Jetty (8.1.8.v20121106). Most of the tutorials out there are out of date: For example…
Mouhammed Soueidane
  • 1,056
  • 2
  • 24
  • 42
0
votes
1 answer

Add Servlet to Jetty using Configuration only?

Dealing with Jetty (v 8) instance running embedded under a JPOS QBean. For sake of simplicity, I'd like to add Jersey based servlet based REST web service using configuration onlly without having to program the servlet registration. I do have the…
Karoy
  • 193
  • 3
  • 9
0
votes
1 answer

Not found in embedded jetty

I deploy rest web-service (Jersey) in embedded jetty. My server: Map initMap = new HashMap(); initMap.put("com.sun.jersey.api.json.POJOMappingFeature", "true"); …
Anthony Tsivarev
  • 881
  • 3
  • 13
  • 25
0
votes
0 answers

Xsd location in embedded Java SE server

I use the built-in server in Java SE 6 for SOAP service. I have a WSDL with XSD. My code: Endpoint.publish ("http://localhost:9999/event-ws/wsdl", new SoapImpl ()); But when I open this WSDL in SOAP UI, it says it can not find XSD…
Anthony Tsivarev
  • 881
  • 3
  • 13
  • 25
0
votes
1 answer

setting the ContextPath in Jetty running under ServiceMix (OSGI)

Here is my brief background of environment. I am trying to convert a myapp WAR to an OSGi compliant by making the MANIFEST.MF as shown below, and wanted to deploy this war in ServiceMix an OSGi based container. MANIFEST.MF Manifest-Version:…
0
votes
1 answer

Hosting spring web service in embedded jetty

Problem: Host a spring web service in embedded Jetty. This needs to work for both unit testing and prod environments. The application is packaged in a jar and the entry point starts other services apart from Jetty. Using WAR…
Paramesh
  • 371
  • 1
  • 3
  • 8
0
votes
0 answers

Getting axis fault while runing axis2 webservice in jetty

java.lang.NullPointerException at org.apache.axis2.clustering.context.DefaultContextManager.updateContexts(DefaultContextManager.java:81) at org.apache.axis2.clustering.context.Replicator.replicate(Replicator.java:81) at…
0
votes
2 answers

Jetty-Maven-Plugin reads jettyXml and still starts default context

I am using Jetty 8.1.4.v20120524 and Maven 3. I have the following configuration in my pom: org.mortbay.jetty jetty-maven-plugin 8.1.4.v20120524
dirkk
  • 6,160
  • 5
  • 33
  • 51
0
votes
1 answer

Getting 404 when hitting OSGi WAB servlet deployed on JBoss AS7

I am very new to OSGi.I am doing a POC for my project. I am able to develop normal OSGi bundles,deploy them on JBoss AS 7 platform, consume other bundle's services etc. But when it comes to the web part I'm stuck. I wanted to create a web app bundle…
hashcoder
  • 498
  • 7
  • 19
0
votes
2 answers

Embedded Jetty Caching JSPs in an Unknown Location

I have a trivially simple embedded jetty instance with a mapped JspServlet. For performance reasons, Jetty is caching the compiled JSP files somewhere, but I can't find the cache location. When in production, caching is great. In development,…
Jim
  • 2,111
  • 4
  • 25
  • 34
0
votes
2 answers

Publish JAX-WS service with Spring and Embedded Jetty 8

I am trying to add a JAX-WS web service to my Embedded Jetty application. The web service client will be a .NET application. My project was created as a Maven application in Netbeans 7.1.1. It uses Spring 3.0. I took the following steps to add the…
Jerome
  • 2,059
  • 1
  • 16
  • 19