jetty

run jetty without packaging the project using maven 2 plugin

I'm trying to run jetty without building the whole project, but simply point jetty to a folder under the target folder. Reason behind doing this is that I wish to use jetty as a static content server while i build application for glassfish. i don't want to redeploy all the time when i make a little change to a css file, for example. Whe...

Jetty 6 - QueuedThreadPool versus ThreadPool

Hi all, I am using Jetty 6 and was wondering when the QueuedThreadPool should be used over the ThreadPool? By default, Jetty 6 comes configured with the QueuedThreadPool. My server has Java 6 installed so I was thinking that I should use the ThreadPool: <New class="org.mortbay.thread.QueuedThreadPool"> <Set name="minThreads">10...

How to setup a self contained project running jetty+sinatra+jruby?

I already installed jruby and gems seems to be installed nicely under jruby's directory so I don't have to worry about that. Now I would like to be able create a sinatra application and run it on top of jetty or some other efficient standalone server? What do you recommend? It would be important for me that the application source can be...

Birt report file path

I'm trying to setup Birt running under Jetty. I can get the "congratulations" report to run: http://10.10.11.1:8080/reports/frameset?%5F%5Freport=test.rptdesign&amp;sample=my+parameter However, I am not able to get any other reports to run. I have the BIRT viewer running from the "reports" context. Trying to run one of the sample repor...

Can Jetty pick up changes to WEB-INF/lib on hot deployment? How?

I am running several webapps on Jetty 6 through Apache. They are set to hot deploy using .xml files in the contexts/ directory. Those .xml files simply define WebAppContext instances and tell them where to look for a WAR file. `touch'-ing their contexts/.xml files picks up changes to JSPs defined in the relavnt WAR file, which is great. ...

Dependency Injection: Jetty 7

Hi StackOverflow! My application requires several interface implementations which require a Jetty server to do their job. This is, however, not necessarily the case in every implementations of those interfaces so the Jetty server is only a dependency. Since it would be a huge amount of pain to wrap the entire jetty server with all its ...

Buliding a WAR that uses Axis2 + Rampart for Tomcat

I'm trying to build an axis-based web service with rampart for security, and I've been hoping to deploy a single war to tomcat, rather than installing axis and deploying within axis. (I'm not fixed on that though... this is all very new territory for me, so I could use any feedback that you might have.) I'm running into a few problems:...

HTTP 303 redirect is not working for my browsers

My jersey resource is sending this to the client browsers namely (safari & chrome) but the browsers are not redirecting. Is there anything wrong with my HTTP response below ? HTTP/1.1 303 See Other Date: Thu, 12 Nov 2009 10:17:23 GMT Location: http://twitter.com/oauth/authenticate?oauth_token=KNHo4mcLMJG Content-Length: 0 Server: Jetty(...

Jetty vs CXF / Which one to choose?

Hi, I am fairly new to the Java world and pretty overwhelmed by the beauty of choice between dozens of libraries doing more or less the same thing, or not. So with Jetty and CXF. I am looking for a web services stack that has built-in support for a wide range of transports and protocols. I was under the impression that CXF is the more...

jetty - noSuchMethodError

I get the following error when running mvn jetty:run-war: 2009-11-14 15:19:28.459:/:INFO: Initializing Spring root WebApplicationContext * ERROR 15:19:28,491 Context initialization failed (ContextLoader.java [main]) java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.makeAccessible(Ljava/lang/reflect/Constructor;)V .....

Embedded jetty ServletTester serving single static file

I'm unit testing with jetty and I want to serve not only my servlet under test but a static page as well. The static page is needed by my application. I'm initializing jetty like this tester = new ServletTester(); tester.setContextPath("/context"); tester.addServlet(MyServlet.class, "/servlet/*"); tester.start(); What I need now, is s...

How to start cxf service on localhost but return external address in wsdl?

I'm using cxf and jetty behind apache to expose a webservice via soap. The goal is to start jetty on http://localhost:9000 in all cases and have apache proxy to it, but have the autogenerated wsdl show a soap:address appropriate to the environment it's running in (eg http://api.testing.example.com, http://api.uat.example.com, https://ap...

VisualVM breaks jetty

Hi, I'm trying to profile application that is run by "mvn jetty:run", when I connect VisualVM to it and click on Profile jetty crashes with: Profiler Agent: Waiting for connection on port 5140 (Protocol version: 8) Profiler Agent: Established local connection with the tool # # A fatal error has been detected by the Java Runtime Environm...

Is Comet easier in ASP.NET with Asynchronous Pages?

I don't mean to ask, is Comet easier in ASPNET than in Jetty? I mean, is Comet easier inn either ASPNET or Jetty, as compared to other alternatives? I think the asynch capabilities of ASP.NET and Jetty specifically make Comet more scalable when implemented on those platforms and I'd like to confirm that. ASPNET introduced "Asynchrono...

Some servlet/jetty questions

Having the ServletAPI plus the configurations you can make to jetty or any other web container Do we have a way to limit the request sizes ? (ie to close the connection if posting more that 50 MB) Can we in some way kill the dispatching of a request that is taking too long ? While dispatching a request in your own configured servlet, c...

Recommended way to develop using Jetty and Eclipse

Hi, I am currently developing a J2EE application and I would like to use Jetty. I would like to have iot integrated with Eclipse, so I could debug the appliaction. I've tried out couple of plugins (including WTP) but nothing works well enough. Run Jetty Run plugin is the best, but I cannot specify context-root in it, which makes it un...

How to tie the Lifecycle for a Spring Bean to the webapps' lifecycle ?

I want to create a bean that has start() and stop() methods. When the webapp's context is active, start() is called during Spring's runtime bootup. When the webapp is undeployed or stopped, the stop() method is invoked. Is this correct: I annotate my start() method with @PostConstruct and the stop() method with @PreDestroy ? Normally ...

Jetty JNDI Java Mail

Hi all, I am using Jetty 7 with JBoss Seam and have 2 Java Mail Sessions configured, one for support notifications and another for general notifications. The problem I am having appears to be from JBoss Seam / JSF not being able to resolve the session which I set in the Event Context to the proper Java Mail Session prior to sending the...

How to stop Jetty webserver in Google App Engine

If you are doing local development I want to know how we can stop/kill Jetty webserver? I have to close my Eclipse IDE whenever I need to do that. Is there any other way to do it? Or we have to kill the process? Thanks. ...

Maven Jetty: Internal error in the plugin manager executing goal 'org.mortbay.jetty:maven-jetty-plugin:6.1.22:run'

I have been able to run some web services locally through Maven's jetty plugin for testing purposes for some time now. I was able to run about 7 services like this and it worked fine. Recently, without any configuration changes, I started receiving the following errors: $ mvn jetty:run -Puat [INFO] Scanning for projects... Downloading: ...