jetty

What is a best solution for hot deploy to Jetty?

Hi, I have a web application which is running on jetty. Continues builds are built on hudson. I would like to make a hot deploy on demand from hudson. I found cargo plugin which should be able to do so but cargo's web doesn't show any complete example how to do it - for remote jetty server - may be I miss it? What do you suggest? Do y...

How to write XML formatted JSP with generics?

I'm writing a web application using JSP, and I really like to use the "XML style" JSP directive (i.e. <jsp:scriptlet> instead of <% ). But if I use generics in my code, the code content is not valid XML and I get compilation errors when the server (I use Jetty 6) tries to parse the file as XML. For example, I want to write: <jsp:script...

Jasper in Jetty 6 throws exception for JSTL tag

I'm trying to run an application in jetty that runs fine in Tomcat 5.5. The app uses servlet 2.4 and JSP 2.0. Jetty/Jasper is throwing this exception: org.apache.jasper.JasperException: /WEB-INF/tiles/layout/main.jsp(85,55) PWC6340: According to the TLD, rtexprvalue is true, and deferred-value is specified for the attribute items of t...

Solr Container

What is better container for SOLR: Tomcat or Jetty ...

Jasper in jetty throws IllegalStateException on getOutputStream but not on Tomcat

I have a web application that's currently running under Tomcat 5.5.25. I'm attempting to port it to Jetty 6 to take advantage of the rapid refresh time for jsp and UI changes especially. Since my JSP files are JSP 2.0 compliant, I'm running jetty under maven using the configuration suggested on the maven jetty plugin web site. This con...

Creating a process from within an instance of Jetty that was launched from Maven

Hello, I'm looking to launch a separate Java process from within an instance of a Spring controlled bean that runs in a Jetty container. The Jetty instance was launched from mvn jetty:run This separate process communicates with the launching process via RMI and I'd like to be able to maintain a hook to the process's ID or Process objec...

How do I deploy multiple peer webapps from a parent pom

I have a set of web apps that I manage that I am trying to move to maven. /pom.xml // parent pom webapp1/pom.xml // configured to point to parent webapp2/pom.xml // peer of webapp1 and points to parent. each of the webapps refers to the parent pom, and they both currently have a jetty maven plugin that works. My...

Setting up JDBC Authentication in Jetty

I need to setup basic jdbc authentication using jetty. can anyone throw me some pointers (article, tutorial or even some simple solutions) ...

How do you specify the root context in your <web-app> tags in web.xml?

I would like specify the root context of my Java Web Application in my WAR file. How can I do this using valid web-app xml in web.xml file? Oh, yes I would like to do this in an Application Server agnostic way. Thank you in advance, Rob ...

How to prevent caching of static files in embedded Jetty instance?

I want to prevent my CSSs from being cached on the browser side. How can I do it in embedded Jetty instance? If I were using xml configuration file, I would add lines like: <init-param> <param-name>cacheControl</param-name> <param-value>max-age=0,public</param-value> </init-param> How I can turn that into the code? Right now I ...

Debian Lenny Solr Jetty install + running

I want to setup search for my site. I couldn't find much information to install Jetty + Solr on my linode. I could install solr-jetty on ubuntu simply using apt-get. any body has better experience with debian? ...

Jetty or Tomcat for small Linode

my site is running on linode. I have got 380+ MB RAM. I need to run the web server + Solr + Postgres + memcached on the same space. Which is best Jetty or Tomcat? It is simple, plain search server. We use Pylons for development. ...

Configuring setting for JPA

How can I configure Jetty to use Java Persistence API? I would prefer to use toplink-essentials. ...

Any known resources for Secured Socket Programming with Jetty?

Do you guys know fine tutorials, sample codes for SSL socket programming with Jetty? I am going to implement some secured applications with Jetty.. :) ...

Maven - Jetty - org.apache.maven.lifecycle.LifecycleExecutionException: Failure

What can I do to start the server? This is the command I type to the terminal: mvn jetty:run and this is the result: [INFO] Starting jetty 6.1.9 ... 2009-04-15 18:16:00.829::INFO: jetty-6.1.9 2009-04-15 18:16:03.748::INFO: No Transaction manager found - if your webapp requires one, please configure one. 1487 [main] INFO com.opensy...

Embeddable Java HTTP Servers

There seems to be multiple extremes when supporting embeddable Java HTTP servers. I have seen minimalist approaches such as NanoHTTPD and leveraging the com.sun.net.httpserver package to attempting to embed Jetty and Tomcat. The ideal embeddable HTTP server would be implemented such that it could be launched via Executor and come with Se...

Getting the real (virtual) host name under an application server

I have an application running under Jetty, and I want the application to return self referencing absolute URLs (when generating an RSS feed, so a client must be able to work without a "current URL" context). The problem is that I don't know ahead of time under which host name the application will be deployed, and it is quite likely tha...

Importing a certificate into Jetty

The overall goal here is to have jetty be configured with a client certificate to be able to call a secure SOAP web service. Does anyone know how to configure Jetty to accept a client certificate (*.cer) ? Update: I did not find an easy way to implement a solution to my problem/question, but the sole answer here technically is correct!...

How do I control execution of Maven Jetty Plugin with -Dmaven.test.skip

I am using Jetty and Selenium to automate some unit tests from my Maven 2. We only really want to run these tests as part of the CI build and would like to control it via the -Dmaven.test.skip property. I cannot find a way to apply this to the executions for the Jetty plugin. Am I missing something obvious? ...

Loading up a web.xml for integration tests with jetty

OK this is kind of related to : http://stackoverflow.com/questions/728805/using-jetty-to-install-and-run-servlet-tests-programmatically got great answers there, and have been able to load up servlets programmatically and its all made of awesome. What I would like to do however is load up a web.xml in a test (all in the classpath) and ...