[GRADLE-3235] Compilation bug with Gradle building Groovy project. java.lang.NoClassDefFoundError: Unable to load class groovy.servlet.ServletCategory Created: 31/Jan/15  Updated: 03/Mar/15  Resolved: 03/Mar/15

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 2.4-rc-1

Type: Bug
Reporter: Sterling Greene Assignee: Sterling Greene
Resolution: Fixed Votes: 1

Attachments: Zip Archive dead-project.zip    

 Description   

Compilation bug with Gradle. Unable to build a Groovy project.

General error during instruction selection: java.lang.NoClassDefFoundError: Unable to load class groovy.servlet.ServletCategory due to missing dependency javax/servlet/jsp/PageContext

java.lang.RuntimeException: java.lang.NoClassDefFoundError: Unable to load class groovy.servlet.ServletCategory due to missing dependency javax/servlet/jsp/PageContext

Very simple sample project here:
https://jira.codehaus.org/browse/GROOVY-7070

Discussion here:
https://groups.google.com/forum/#!msg/gradle-dev/D6Xy1KrX5Hc/v0gD_jdEidUJ



 Comments   
Comment by Scott Murphy [ 01/Feb/15 ]

Sample project that demonstrates the problem.
Just unzip and run
./gradlew
without any options (default task is compileGroovy).

Generated at Wed Jun 30 12:43:30 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.