I need to serve several Java web applications on a single server instance, but add them dynamically to a specific URI.
e.g.
launch webapp to this context /user_1_app
launch webapp to this context /user_2_app
I don't know what webserver to use, but I'm now investigating Jetty
Can I just drop the wars in /usr/share/jetty/webapps ?
But h...
There seems to be significant issues with Tomcat6/Comet/NIO (example). Are the majority of people doing asynchronous http using something else? Jetty/continuations? What about Glassfish's servlet 3.0 implementation? Others?
...
Hi,
does someone had an similar issue with maven and jetty, that jetty is run with an old war althought mvn clean is run.
My pom uses failsafe to start jetty with mvn verify.
...
My project runs on Wicket+Spring+JPA/Hibernate. When I run it using the command:
mvn jetty:run
I'd like jetty to print logs I make in the code. I have for example the following DAO implemented:
@Repository(value = "isinDao")
public class IsinDaoJpa implements IsinDao {
@PersistenceContext
private EntityManager em;
pr...
I am building a web application on top of a "custom" web framework. This framework is essentially the Equinox OSGi platform with Jetty sewn into a custom bundle (not the Equinox-supplied one, mind, as it is far too restrictive).
This framework is being used to build a large Java web application, primarily using JSP. No other frameworks ...
Hi,
I have project where we use DWR for comet, and Jetty because of continuations feature. My problem is, that we also use terracotta for clustering. And terracotta supports only Jetty 6.x but not Jetty 7, and DWR is best with Jetty 7 continuations. When I run terracotta with Jetty 7 it throws
java.lang.IllegalStateException: This clas...
Hi,
I'm using jetty6 with SLF4J and java logging and have been trying to add a custom log Formatter, but no matter what I try I can't seem to get it to work.
I have a Formatter, like this:
package mycode.logging;
public class DeadSimpleFormatter extends SimpleFormatter
{
// Nothing here at all - just an empty subclass of SimpleForma...
I am trying to run jetty web server in SSL mode using PKCS12 keystore. The code is as follows:
import org.mortbay.jetty.Server;
import org.mortbay.jetty.security.SslSelectChannelConnector;
class MyClass
{
public static void main(String[] args)
{
Server server = new Server();
SslSelectChannelConnector connector = new ...
I want to build an MVC app using Spring (first timer here).
As such I want to embed Jetty as the servlet engine. Jetty however doesn't stricly follow the java beans pattern, so I can't launch some classes from Spring (they use overloaded setters or non setter init methods like addXYZ).
What is the accepted/recommended practice for stru...
Hey guys,
I am trying to configure SSL on my Jetty.
I read this:
http://docs.codehaus.org/display/JETTY/How+to+configure+SSL
and created a key store.
Then, I jumped directly to section 4. But where is this configuration file I should configure Jetty?
I tried to serach for jetty.xml, but there is no such on my computer...
Thanks
...
I'm trying to speed test jetty (to compare it with using apache) for serving dynamic content.
I'm testing this using three client threads requesting again as soon as a response comes back.
These are running on a local box (OSX 10.5.8 mac book pro). Apache is pretty much straight out of the box (XAMPP distribution) and I've tested Jetty ...
Having a Jetty server set up programmatically which I try to access via ajax and xmlHttpRequest. Without authorization, the call works fine but with, I get 401 Unauthorized.
Any suggestions.
Javascript call looks like this (shortened):
var auth = base64encode('name','pwd');
try{
var xmlhttp = new XMLHttpRequest();
xmlhttp.open(...
I have a Java application running on Jetty/App Engine/Spring.
After removing some jar files from the pom and putting them in the WEB-INF/lib folder, they are no longer findable - I get numerous "Cannot find symbol" build errors.
I also tried putting the jars in the src/main/resources folder - but the same outcome.
How can I make thes...
Hi,
We are running nginx as a reverse proxy that forwards requests to a Clojure application running Compojure, a library that wraps around Jetty and provides our application with the ability to service web requests.
We currently capture logs generated by both nginx and the Clojure application (via log4j to syslog). We are unable, howev...
I am migrating from Maven's jetty plugin to the Cargo plugin (cargo-maven2-plugin) because Cargo will happily run WARs from dependent Maven modules. Within out web-app we have taken great pains to externalize all configuration through JNDI. These JNDI definitions are web-app specific and therefore are placed in a jetty-env.xml file tha...
I wrote a small GWT app that includes a websocket servlet. I installed jetty-hightide 7.1.6 on my ubuntu 10.04 server and I cannot access the websocket servlet. However I can access it no problem when running on my local machine for testing. I didn't do any configuration to jetty I simply dropped the war file for the GWT app into the web...
I've included all jars the application requires, I'm trying to use Jetty Embedded
I have a simple java class with a main method that has the following setup, servlets still work correctly just can't get JSP's to work. All required jars are included, started with basic Jetty jars then added all from the jsp folder.
Server server = new ...
I am looking for this simplest, plainest way to get a Java web service up in the air. I used to use Axis-1-on-Tomcat, but with Axis 2 its getting too thick. Some preferences for what I'm looking for:
Low memory footprint - A small library with minimal binaries. Axis2.war is 17 MB - I need something lighter.
Embedded - Runs from withi...