Details
Description
To try to work around the issue with AntBuilder not working in war files (GRAILS-5675), I was testing with run-war and found another but similar problem. If you add a manual dependency:
runtime 'org.apache.ant:ant:1.7.1'
To your app and generate a war, the war has the ant jar in it - which serves as a workaround for GRAILS-5675. However if you run-war you still get class def not found errors:
java.lang.NoClassDefFoundError: org/apache/tools/ant/DemuxInputStream
That class is in the ant.jar that is included in the war when this dependency is added.
Issue Links
| This issue relates to: | ||||
| GRAILS-5666 | Run-war has some classpath conflicts |
|
|
|
| GRAILS-5675 | Ant jars are missing from packaged WARs |
|
|
|
Well in my case it's worse: I get the Class not found errors even when deployed to a container...