On 28/01/10 10:21 PM, barrymac wrote:
Hi there,

In order to first get the plugin to work I had to set the
webAppSourceDirectory to build/jetty/webapp which is where the exploded
webapp seems to end up. But I found this only by trial and error.

The build/jetty directory is the temporary directory that jetty creates to cache things such as compiled jsps. You shouldn't be pointing webAppSourceDirectory at it.

In fact, you shouldn't have to change anything if you are following the convention for web application layout. What was going wrong before you changed the webAppSourceDirectory property?

Now I get a

java.lang.NoClassDefFoundError: javax/annotation/Resource
         at
org.mortbay.jetty.annotations.AnnotationCollection.processMethodResourceAnnotations(AnnotationCollection.java:296)

which is listed as a bug in gradle version 0.5 but fixed. I tried replacing
all the jetty jars in gradle with the latest distribution and added all the
ones that come with that but makes no difference.

Should I reopen this bug?

http://jira.codehaus.org/browse/GRADLE-343


Not necessarily. It might be a different issue. Where and when was the stack trace reported? Can you post the full stack trace (make sure you're using an unmodified Gradle distribution)?


--
Adam Murdoch
Gradle Developer
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to