jetty

Enable debug logging in maven jetty 7 plugin

I'm running a java webapp with a simple mvn jetty:run, using the latest jetty plugin, but I can't seem to find a way to tell jetty to output DEBUG messages to console (for the embedded jetty instance, not the plugin itself). It's currently outputting only WARN and INFO messages. I've tried setting -DDEBUG and -DVERBOSE, but they don't do...

hot deploying simple application in jetty

I am working with jetty hightide vesion 7 currently as a stand alone server. I have a simple web project with a couple of jsp's and backing classes that I am currently deploying in an unexploded war to the JETTY_HOME/webapps directory. Currently, jetty easily picks up any static jsp/html changes. If I understand correctly, I can configu...

What is wrong about my embedded jetty spring web application configuration?

I have a spring application that uses an embedded Jetty instance. Since I am programmatically defining my web.xml, here is how I am adding the dispatcher. DispatcherServlet dispatcherServlet = new DispatcherServlet(); dispatcherServlet.setContextClass( AnnotationConfigWebApplicationContext.class); ServletHolder ...

Jetty startup delay

I'm trying to figure out what would be causing a 1 minute delay in the startup of Jetty. Is it a configuration problem, my application, or something else? I have Jetty 7 (jetty-7.0.1.v20091125 25 November 2009) installed on a server and I deploy a 45MB ROOT.war file into the webapps directory. This is the only webapp configured in Jetty...

Debug Maven project in Eclipse

I am following below link to try to debug my maven project in Eclipse: http://mahertb.blogspot.com/2006/08/debugging-maven-web-application-with.html Somethings go fine until it throws an exception when I run it: org.codehaus.classworlds.Launcher class is not found. But I've set D:\Installs\apache-maven-2.2.1\boot\classworlds-1.1.jar in...

Multiple webroot folders with Jetty

I'm using Jetty (version 6.1.22) to service a Java web application. I would like to make Jetty look in two different folders for web resources. Take this layout: +- project1 | +- src | +- main | +- webapp | +- first.jsp | +- project2 +- src +- main +- webapp +- sec...

Limit ip address jetty

Hi, How can I make a virtual host on Jetty is only valid on some ip address? Effectively and as in Apache? I.e. I want to allow only host 123.123.123.123 to access http://8.8.3.3/mywebsite Thanks ...

Running Jetty 7 server in eclipse?

I'm trying to set up Eclipse to run and deploy my projects to a Jetty 7 server (the oldest version available from http://download.eclipse.org/jetty/). I've downloaded Jetty 7 and unpacked it, and I've installed the Jetty plugin from the available server adapters list, but when I try to configure a new Jetty server, the server type list ...

Grails 1.2.1 with Spring 3.0.0 dependency problem under Jetty

Just moved to Grails 1.2.1 (used 1.1.1 before). Changed application.properties, ran grails upgrade, fixed BuildConfig and Bootstrap - everything works just fine from grails console. However, getting a problem when deploy packaged war under jetty 6.1.22: 1581 [main] ERROR org.springframework.web.context.ContextLoader - Context initiali...

JSF in jetty-equinox, Cannot find Bean classes in other bundles!

Hi I have problems running JSF in an OSGi environment. I am using jetty web container and equinox to provide the OSGi functionality. The structure of my application is as follows: The first bundle has all the JSF libs, web.xml and a config.xml. It looks as the following: bundle1 ----src/mai...

Jetty 7 + MySQL Config [java.lang.ClassNotFoundException: org.mortbay.jetty.webapp.WebAppContext]

I've been trying to get a c3p0 db connection pool configured for Jetty, but I keep getting a ClassNotFoundException: 2010-03-14 19:32:12.028:WARN::Failed startup of context WebAppContext@fccada@fccada/phpMyAdmin,file:/usr/local/jetty/webapps/phpMyAdmin/,file:/usr/local/jetty/webapps/phpMyAdmin/ java.lang.ClassNotFoundException: org.mort...

Executable war file that starts jetty without maven

I'm trying to make an "executable" war file (java -jar myWarFile.war) that will start up a jetty webserver that hosts the webapp contained in the war file I executed. I found a page that described how to make what I'm looking for: http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/ however, following that advice alon...

Jar dependencies to use jetty httpclient

Hi all, I want to use the jetty httpclient(in netbeans) but have the least number of jar dependencies. I know I can import all jars from the jetty lib folder to my project but I would like to know what the minimum number of dependencies are and how you did find this out? Our there tools to find jar dependencies? ...

Jetty 6 - VirtualHosting

Hi all, I am using Jetty 6 to host multiple web applications for various domains. I am doing the exploded WAR route, so how would I configure that in Jetty? Would I still set the war path and then say extractWar = false? http://jetty.codehaus.org/jetty/jetty-6/apidocs/org/mortbay/jetty/webapp/WebAppContext.html <Configure class="org...

Jetty 7 Continuations: How to *not* redispatch the request?

I'm using Jetty 7 continuations to implement some asynchronous processing. What I'm trying to do is start off the continuation (via .suspend()), and then hand the continuation off to some other object that will compose the response, which works fine. But Jetty keeps redispatching the response (with isInitial = false) to the servlet, an...

Webdevelopment with Jetty & Maven

I find it very frustrating doing web development with Maven & Jetty using Eclipse, compare with what I did using Visual Studio. Everytime I make a change, even a minor change in my view file, (*.jsp, for example), then I have to re-package the whole web -> waiting for jetty to reload everything before I can see the change. Is there any ...

maven and lift using scala 2.8 : lift-mapper missing?

Newbie question since I'm not up to speed using maven at all. I'm trying to use scala + lift using scala 2.8, environment is a win7 box if that matters. I create a basic project using: mvn archetype:generate -U -DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift-archetype-basic -DarchetypeVersion=2.0-scala280-SNAPSHOT -Da...

Jetty 6 - VirtualHosts - SSL Certificates

Hi all, I have several virtualhosts configured on a single Jetty instance. I would like to also have unique SSL Certificates for each virtualhost. Can I do this? My understanding is that the call to add a connector can only be made inside a Server configuration meaning that there is only 1 SSL certificate that can be used. Walter ...

Maven Plugin - Restart Jetty with new WAR?

Hi all, What I would like to do is automatically test against several different maven build profiles. I want to write a maven plugin that iterates through each profile so I don't have to manually list them for the CI process. I just want to verify that the code works in all development, testing, staging, and production once deployed t...

Why 2 versions of jetty maven plugins ?

Hello, I set up a new webapp maven project and wanted to test it with jetty's maven plugin. So issuded in the console the command: mvn jetty:run After defining the pluginGroup in Maven's setting file I ran once again the command. Unfortunately, it failed because i was using one of the below mentioned versions of the plugin. The first h...