jetty

maven jetty plug in mvn:jetty ServletContext.getRealPath("") and ServletRequest.getRealPath("") to point to target _instead_ of source folders?

SUMMARY: The goal is to find the path to the WEB-INF folder in the target folder for maven-jetty-plugin that is compatible with other servers as well. The ServletContext.getRealPath("") works beautifully for, e.g., Tomcat, or mvn jetty:run-war. Thank you Misha Dear All: This is related to http://tickets.openmrs.org/browse/TRUNK-1760...

How do I force Jersey to load it's services?

I'm having trouble with a jersey application running on a jetty server that will take up to 30 seconds to start. I don't know what causes this behaviour, and I'm unsure how to debug it. Jersey is not started until the first HTTP request to one of its services are made. After the first request is made, the following gets printed: INFO:...

Is Jetty ever used for production deployment?

Why would it be preferred over Tomcat? Is your experience with big or little companies? Internal or external (customer/public facing) systems? ...

Google Earth Internal Browser is making a double request

While developing a servlet in Jetty to work with Google Earth (GE), I'm finding an odd behavior. I'm writing a servlet for the Internal Browser of GE to hit and download a dynamic KML file, based on session information. However, when the user clicks on the link http://download.kml.com/servlet/test.kml, GE makes two requests. The first r...

Jetty or Tomcat with Non-blocking IO (servlet 3.0)

I need a point to start from. I read from Yakov Fain about a performance break through with jetty and blazeds. I realized that we already have some trouble with about 1200 concurrent users, some consumers dont get messages and cpu is under heavy fire. Did somebody already tried this Nio with BlazeDS? Did this work with Tomcat too? Whe...

Form too Large Exception

Hello, When I send The Large File By Using Post Request The System Shows The Exception is java.lang.IllegalStateException: Form too large1105723>200000 at org.mortbay.jetty.Request.extractParameters(Request.java:1404) at org.mortbay.jetty.Request.getParameter(Request.java:749)...... When I Search Help For This In Google They Give So...

best way for Jetty to serve multiple wars hot

I have a new 64-bit Ubuntu server with 4G of memory. I need to serve several (6 now, maybe 50 later) war files as their own context roots. (Similar apps from a commmon code base branded differently). I'm more comfortable with Jetty than Apache. I can just drop the wars in /usr/share/jetty6/webapps. But how can I add new ones without ...

DRY way of defining dependencies for both jetty:run and deployment

I'm wrapping up the build for a web project which supports two ways of running: locally using mvn jetty-run; deployed on an application sever. For the application server many libraries are marked as provided, since otherwise classpath conflicts occur. At the same time, I have redeclared these dependencies as compile dependencies for ...

How do I turn off DBUG level logging in BayeuxServer (embedded in Jetty)?

When running the CometD Bayeux implementation in Jetty (7.1.5), lots of DBUG level logging is output to the console. I've identified the logger as a org.eclipse.jetty.util.log.StdErrLog instance, but I'm not sure how to configure it. I'm using Jetty embedded within another application, so I tried the things suggested at http://docs.code...

Want to set Jetty to hot deploy, but there is no deployer

I'm running a SmartFox 1.6 server with included Jetty servlet container. I want to configure Jetty to automatically deploy new web apps. Normally this is as simple as adding a scanInterval to the deployer: <Call name="addLifeCycle"> <Arg> <New class="org.mortbay.jetty.deployer.ContextDeployer"> <Set name="contexts"><Ref id="...

How to increase timeout for Solr

I am updating my index using Solr. I understand that to increase the timeout duration of the transaction in Jetty. But I can't seem to find the settings file i.e. XML config file. Where is it located? I am using Solr 1.4.1 Thanks ...

Jetty - set system property

I run webapp on Jetty. The configuration for the app come from file that lives on the same server where Jetty is running. Inside the app I rely on the system property to obtain path to the file so I can parse it. E.g. final String loc = System.getProperty(FACTORY); Now I can start jetty with D switch to provide $FACTORY on the command...

How to start and stop jetty with maven

I would like to start and stop jetty with maven. This is my setup http://nopaste.info/61ef12198d.html With mvn jetty:run my jetty starts locally but when I want to run jetty in test-phase with mvn -Pselenium test jetty doesn't run. ...

Confused about jetty-env.xml

I have a webapp that uses JNDI to locate a datasource and a transaction manager. I see from the Jetty documentation how to do this via the jetty-env.xml file. However it mentions that this file should be put into the WEB-INF directory. Why would they suggest that JNDI resources be configured in a configuration file that is located i...

Jetty does not recognize Solr installation as a context, what's wrong ?

Sorry for the vague question but I'm newbie in CentOs and Solr I have installed Java, Jetty and Solr, I start the Solr with: java -jar start.jar in the examples folder of the solr I have put in my CentOS box and it says : 2010-10-13 13:12:41.623::INFO: Logging to STDERR via org.mortbay.log.StdErrLog 2010-10-13 13:12:41.842::INFO: jett...

Jetty JNDI error within Maven Jetty Plugin

I am trying to configure a JNDI data source that can be used from an invocation of the Maven Jetty Plugin. I am trying to do this external to the WAR file, so that anyone who might later deploy our webapp with Jetty will not have to edit a configuration file inside the WAR's WEB-INF directory. I created a jetty.xml file as follows: <?...

How to set transaction timeout on Jetty JNDI Atomikos configuration

I am in the process of converting various Spring beans to JNDI lookups. Currently I am using Jetty to test this. I have configured the UserTransaction according to the Jetty documentation and it works: <New id="tx" class="org.mortbay.jetty.plus.naming.Transaction"> <Arg> <New class="com.atomikos.icatch.jta.UserTransactionI...

Jetty on Windows read-only files problem

I have a problem that when I run Jetty (Win Vista) all the files under my working copy get set to read-only. As soon as I kill Jetty, I'm able to write to the file. I'm not using any IDE (just plain SublimeText) and my editor doesn't do any magic for me (such as recompiling/redeploying changes). Is there some flag that would prevent thi...

Long net I/O on first web service call that returns a value

I have two applications: a Java server and a .net client. The Java server hosts a web service (JAX-WS / Metro) and the client application calls the web service (WCF). The first web service call that returns a value is always slow. It takes about 30 seconds. Calls that don't return a value or subsequent calls on the same operation are lig...

How embeded http server in own plugin on Eclipse?

I need an embedded http server. Which can be controlled by pressing the button (Start, Stop) in the plugin. I looked at the jetty, but don't understand how to use it. ...