Error generating web.xml file with IntelliJ IDEA

If you use IntelliJ IDEA for your Grails development you might encounter this error running integration tests: Error Error generating web.xml file (Use –stacktrace to see the full trace) The reason for this is that IDEA adds classpath by default on cr…

If you use IntelliJ IDEA for your Grails development you might encounter this error running integration tests:

Error Error generating web.xml file (Use --stacktrace to see the full trace)

The reason for this is that IDEA adds classpath by default on creating integration test run configuration. Unfortunately, sometimes it causes strange errors like this one. Follow these steps to resolve:

  1. Open Run → Edit Configurations… (or press Alt-Shift-F10)
  2. Select your configuration that fails
  3. Uncheck Add –classpath checkbox
  4. You are done! Run.
You May Also Like

Hibernate hbm2ddl won’t create schema before creating tables

Situation I have a local H2 in memory database for integration tests and an Oracle db for production. I do not control the Oracle DB model. The in memory H2 database is created automatically by adding <prop key="hibernate.hbm2ddl.auto">update&l...Situation I have a local H2 in memory database for integration tests and an Oracle db for production. I do not control the Oracle DB model. The in memory H2 database is created automatically by adding <prop key="hibernate.hbm2ddl.auto">update&l...