Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails : Error generating web.xml file

I have upgraded my Grails project from version 2.1.2 to 2.2.3. Before the upgrade, the project worked flawlessly. However, I am not able to run the project now. I get a strange error :

| Compiling 143 source files.....
| Error Error generating web.xml file (Use --stacktrace to see the full trace)

and the compilation stops.

I thought that the "--stacktrace" option would provide some useful information. However, I am not able to decipher the error.

Error here > http://pastebin.com/zwR4YzXS

Googling / searching this problem did not help. I hope I am not the only one, who is getting this error.

Thank you for your advices !

Some useful info :

Grails 2.2.3

Java version :
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.10.1)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
OS: Ubuntu 12.04 x64
like image 789
user2547287 Avatar asked Jul 03 '13 15:07

user2547287


3 Answers

Faced the same issue while working with grails 2.3.2. Actually, I added and then removed clojure plugin. Right after got such problem.

$ grails clean just worked for me.

like image 136
prayagupa Avatar answered Nov 01 '22 21:11

prayagupa


Same problem i was facing i used the below command :

grails clean

grails refresh-dependencies

and that worked for me

like image 29
Gaurav vijayvargiya Avatar answered Nov 01 '22 20:11

Gaurav vijayvargiya


If you are using Intellij the problem is that: the reason for this is that IDEA adds classpath by default on creating integration test run configuration. So if you run tests you might cause that error

Open Run → Edit Configurations... (or press Alt-Shift-F10) Select your configuration that fails Uncheck Add --classpath checkbox You are done! Run.

like image 29
Giuseppe Iacobucci Avatar answered Nov 01 '22 20:11

Giuseppe Iacobucci