jetty

Which way is best, to implement Comets in a Java Servlet

I want to write an aplication that uses the Comets pattern - that is a request that can be responded to when an event occurs on the server, rather than only as a response to an immediate request. What is the easiest application server to use for this purpose, is it: 1) Tomcat with its NIO package 2) Jetty with its continutations 3) or...

Running a J2EE/Grails app as a windows desktop application

I'd like to do the following but am not sure if it can be done and if so how. Create a Grails application on my local machine and test it. Then somehow package it up along with the Jetty server, and install it on a users desktop. The installer would put an icon in the start menu that would launch the server and load the start page in eit...

gwt Comet easier to implement on jetty or tomcat?

gwt Comet easier to implement on jetty or tomcat? ...

Remote debug Jetty (no mvn, no plugins)

Hello all, Past scenario - Work with Tomcat and start in debug mode and Remote Debug with Eclipse. - Define a port and connect with eclipse in this debug/remote port. - Use to debug servers in other hosts/servers Today scenario Now, I'm using Jetty and I've try to do the same, but with no success, could anyone help-me with that? I ...

How can I avoid the general Exception thrown by the Server-class in Jetty?

Jetty can be used as a library to embed a servlet-server into your application. To do that, you create an instance of the class Server and call start at some point. This method throws Exception. Catching or throwing a pure Exception (not a specialized subclass) is bad style. Does anyone know, how I can avoid this and get a Jetty-server i...

Jetty: Mount to a directory on a different host

I'm looking to map to a directory on a different host using Jetty/Maven when working locally. I've found you can do this w/ Apache using mod_jk (JkMount/JkUnMount), but haven't figured it how to do the same on jetty. On our dev/q/live servers, we have Apache in front of JBoss and use mod_jk to do this. Locally, we're using jetty To g...

Getting maven to start jetty (Tapestry Tutorial)

I'm trying to work through the Tapestry tutorial. I think I got everything set up right and so far so good but I get to the part where the tut rather glibly states: Change into the newly created directory, and execute the command: mvn jetty:run Again, the first time, there's a dizzying number of downloads, but before...

JSESSIONID collision between two servers on same ip but different ports

I've got a situation where I have two different webapps running on a single server, using different ports. They're both running Java's Jetty servlet container, so they both use a cookie parameter named JSESSIONID to track the session id. These two webapps are fighting over the session id. Open a Firefox tab, and go to WebApp1 WebApp1's...

Maven jetty plugin - delay when starting in background mode

I start a jetty server on linux using nohup mvn jetty:run & to run it in background and to stay when I quit from the console. Usually (mvn jetty:run) it starts in seconds, but in this case it takes about minute to start. What can be the cause of such a delay? Thanks. ...

Maven, Jetty, JOTM

Hi all, I have been unable to configure JOTM ontop of Jetty inside a Maven build environment. The exception I get when I try to run my application is the following: 2009-07-21 19:47:23.499::WARN: Config error at <New id="UserTransaction" class="org.mortbay.jetty.plus.naming.Transaction"><Arg> <Ref id="ut"/> </Arg><...

I'm getting a weird java.lang.AbstractMethodError running a webapp in eclipse with jetty.

I am working on a project in eclipse that when I launch using the jetty plugin gives me a java.lang.AbstractMethodError: au.com.mycopmpany.impl.MyClassDAOImpl.findById(Ljava/lang/Integer;)Ljava/lang/Object;. This file compiles file in eclipse, and the code is implementing the method that the error talks about. From my reading this erro...

Strangeness with Jetty serving images

I'm completely stumped. I'll give the background for the sake of completeness but I'm not sure if it will help or not. I'm running a Lift project on a standard Jetty set-up running one Lift instance. Mac OS X. I have a snippet which transforms the XML input, renders an image, saves it to disc under the webroot/images/ directory with a f...

Running resource filters when using jetty:run

I'm using resource filtering on jsps, based on profiles. I'm also developing locally using mvn jetty:run, but the filtering phase does not run. How can I perform filtering using the jetty plugin? Configuration snippets: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.0.2</ver...

Xerces JAR on GAE project's classpath leads to "SAXParserFactoryImpl not found"

I'm using the Eclipse plugin for Google App Engine and I'm having a strange issue with a Xerces dependency. On of my classes depends on the Apache Xerces JAR which I have added to the project's classpath. This however, triggers an error when starting the Jetty app server: WARNING: failed com.google.apphosting.utils.jetty.DevAppEngine...

What are "Jetty 6 Continuations" and how do they compare to the continuations found in programming languages?

I'm looking for an answer that describes a "continuataion' mechanism in a web server vs. a programming language. My understanding is that using continuations, it is trivial to have a "digits of pi" producer communicate with a "digits of pi" consumer, without explicit threading. I've heard very good things about Jetty continuations, cur...

Jetty Hosting Providers

Hi all, I am looking for a good Hosting provider for Java either running Jetty or Tomcat. I currently use PairOne/OddHost and my monthly rate is 5.99 which isn't bad, but I am thinking I would like to move up to a virtual private host. What are my alternatives? I don't contact support that much - only when configuring my application ...

How to limit only a POST with IP address inJetty which Solr riding

I think about the use of Solr. Only a POST limits a thing moving in Jetty in an IP address and wants to use it. How to limit only a POST of Jetty which Solr appears in IP address ...

Serving static content from a jarfile with Jetty?

This should be fairly easy, but for some reason nearly everything I try just seems to hand out a 'not found' error when I hook it up to a web browser. I've got a single static context, and for the ResourceBase I've got 'file:jar:/path/to/myjar!/.'... any ideas what I'm missing? ...

Detecting when an embedded Jetty server is fully initialized.

I have embedded Jetty in a java application and am calling the start() method on an instance of the Jetty server object (after setting a handler list which describes the location of the static and dynamic web content). Does the start() call block until initialization is complete? If not, how do I determine when the server is fully star...

Trouble Configuring JPA in Jetty

I am trying to get JPA (Toplink) configured to run in Jetty being run from the maven plugin and am getting a javax.naming.NameNotFoundException. The specifics. web.xml: <persistence-unit-ref> <persistence-unit-ref-name>persistence/mod</persistence-unit-ref-name> <persistence-unit-name>ModPU</persistence-unit-name> </persistence...