[GRADLE-343] Jetty plugin fails to start with 2.5 deployment descriptor Created: 30/Dec/08  Updated: 04/Jan/13  Resolved: 06/Jan/09

Status: Resolved
Project: Gradle
Affects Version/s: 0.5
Fix Version/s: 0.5.1

Type: Bug
Reporter: Levi Hoogenberg Assignee: Hans Dockter
Resolution: Fixed Votes: 0


 Description   

When using a deployment descriptor (web.xml) with version 2.5, gradle jettyRun fails with the following exception:

java.lang.ClassNotFoundException: org.mortbay.jetty.annotations.AnnotationParser

This issue can be worked around by either copying jetty-annotations-6.1.14.jar from the Jetty distribution to $GRADLE_HOME/lib, or by declaring it as a providedCompile/providedRuntime dependency in build.gradle.



 Comments   
Comment by Hans Dockter [ 06/Jan/09 ]

The jetty annotations are now in the classpath out-of-the-box. This should solve the issue.

Generated at Wed Jun 30 11:27:44 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.