Grails

The run-war script is not setting up classpath properly. Even with Ant added to runtime dependencies, errors occur using AntBuilder

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.2 final
  • Fix Version/s: 1.2.3, 1.3 RC2
  • Component/s: None
  • Labels:
    None

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

Activity

Hide
Jean-Noël Rivasseau added a comment -

Well in my case it's worse: I get the Class not found errors even when deployed to a container...

Show
Jean-Noël Rivasseau added a comment - Well in my case it's worse: I get the Class not found errors even when deployed to a container...
Hide
Jean-Noël Rivasseau added a comment -

Scratch that last comment - the error was on my side. I just realized I don't only need Ant but Ant launcher too, though...

Show
Jean-Noël Rivasseau added a comment - Scratch that last comment - the error was on my side. I just realized I don't only need Ant but Ant launcher too, though...
Hide
Graeme Rocher added a comment -

Duplicates GRAILS-5666

Show
Graeme Rocher added a comment - Duplicates GRAILS-5666

People

Vote (2)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: