Error Fatal error during compilation org.apache.tools.ant.BuildException: java
07/06/2016 11:44
0
Prezados membros,

Após um commandline grails CleanAll, ao tentar compilar meu aplicativo (grails compile) recebo o seguinte erro:

Error Fatal error during compilation org.apache.tools.ant.BuildException: java

Poderiam ajudar?

Obrigado
Tags: Grails,compile,cleanall,Error Fatal error during compilation org.apache.tools.ant.BuildException: java ,org.apache.tools.ant.BuildException: java


0
Oi Pedro, tem como nos fornecer o stacktrace para analisar melhor?


0
Olá Kiko.

Tem sim. Veja só:

| Error Fatal error during compilation org.apache.tools.ant.BuildException: java
java.lang.UnsupportedClassVersionError: org/apache/catalina/WebResourceRoot : Un
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at org.codehaus.groovy.tools.RootLoader.oldFindClass(RootLoader.java:175
        at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:147)
        at org.codehaus.groovy.grails.cli.support.GrailsRootLoader.loadClass(Gra
        at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
        at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:677)
        at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:545)
        at org.codehaus.groovy.control.ClassNodeResolver.tryAsLoaderClassOrScrip
        at org.codehaus.groovy.control.ClassNodeResolver.findClassNode(ClassNode
        at org.codehaus.groovy.control.ClassNodeResolver.resolveName(ClassNodeRe
        at org.codehaus.groovy.control.ResolveVisitor.resolveToOuter(ResolveVisi
        at org.codehaus.groovy.control.ResolveVisitor.resolve(ResolveVisitor.jav
        at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.
        at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisi
        at org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit$1.call(JavaA
        at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(
        at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(Compilat
        at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(Co
        at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.j
        at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.j
        at org.codehaus.groovy.tools.FileSystemCompiler.compile(FileSystemCompil
        at org.codehaus.groovy.tools.FileSystemCompiler.doCompilation(FileSystem
        at org.codehaus.groovy.ant.Groovyc.runCompiler(Groovyc.java:1165)
        at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:1216)
        at org.codehaus.groovy.grails.compiler.Grailsc.compile(Grailsc.java:78)
        at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:831)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
        at groovy.util.AntBuilder.performTask(AntBuilder.java:327)
        at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:272)
        at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:149)
        at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:207)
        at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:66)
        at org.codehaus.gant.GantBuilder.invokeMethod(GantBuilder.java:99)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaC
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at org.codehaus.groovy.grails.project.compiler.GrailsProjectCompiler.com
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMet
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(P
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.groovy.grails.project.compiler.GrailsProjectCompiler.com
        at org.codehaus.groovy.grails.project.compiler.GrailsProjectCompiler$com
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.groovy.grails.project.compiler.GrailsProjectCompiler.com
        at org.codehaus.groovy.grails.project.compiler.GrailsProjectCompiler$com
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at _GrailsCompile$_run_closure3$_closure8$_closure9.doCall(_GrailsCompil
        at _GrailsCompile$_run_closure3$_closure8$_closure9.doCall(_GrailsCompil
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMet
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMeta
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at _GrailsCompile.withCompilationErrorHandling(_GrailsCompile.groovy:68)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1155)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java
        at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
        at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:168)
        at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java
        at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.ja
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1169)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(Po
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at _GrailsCompile$_run_closure3$_closure8.doCall(_GrailsCompile.groovy:6
        at _GrailsCompile$_run_closure3$_closure8.doCall(_GrailsCompile.groovy)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at groovy.lang.Closure.call(Closure.java:426)
        at groovy.lang.Closure.call(Closure.java:420)
        at org.codehaus.groovy.grails.cli.api.BaseSettingsApi.profile(BaseSettin
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1077)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1212)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
        at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java
        at groovy.lang.Script.invokeMethod(Script.java:80)
        at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.ja
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1169)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java
        at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(Po
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at _GrailsCompile$_run_closure3.doCall(_GrailsCompile.groovy:57)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java
        at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaC
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaC
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMet
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(P
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMet
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMeta
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
        at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groo
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1155)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
        at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java
        at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.ja
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1169)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(Po
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMet
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(P
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at groovy.lang.Closure.call(Closure.java:426)
        at groovy.lang.Closure.call(Closure.java:420)
        at org.codehaus.gant.GantMetaClass.processClosure(GantMetaClass.java:81)
        at org.codehaus.gant.GantMetaClass.processArgument(GantMetaClass.java:95
        at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:128)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(Po
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at _GrailsCompile$_run_closure2.doCall(_GrailsCompile.groovy:44)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java
        at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaC
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaC
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMet
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(P
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMet
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMeta
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
        at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groo
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1155)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
        at groovy.lang.GroovyObjectSupport.invokeMethod(GroovyObjectSupport.java
        at groovy.lang.MetaClassImpl.invokeMethodOnGroovyObject(MetaClassImpl.ja
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1169)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(Po
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMet
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(P
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMet
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMeta
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMet
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMeta
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMet
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(P
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMet
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMeta
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSi
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCa
        at gant.Gant.withBuildListeners(Gant.groovy:427)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMet
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(P
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at gant.Gant.dispatch(Gant.groovy:415)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1210)
        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1123)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:812)
        at gant.Gant.invokeMethod(Gant.groovy)
        at groovy.lang.GroovyObject$invokeMethod.callCurrent(Unknown Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at gant.Gant.executeTargets(Gant.groovy:591)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMet
        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(P
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(Abs
        at gant.Gant.executeTargets(Gant.groovy:590)
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeWithGantInst
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptFile(G
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeScriptWithCa
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsS
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeCommand(Grai
        at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRu
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(Grail
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStart
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(Grail
        at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStart
| Error Fatal error during compilation org.apache.tools.ant.BuildException: java
08/06/2016 20:46


0
Fácil de resolver Pedro: é a versão do Java que você está usando.

"java.lang.UnsupportedClassVersionError"

Este erro ocorre quando você usa, por exemplo, o Java 6 em um código compilado com o Java 7 ou 8



Ainda não faz parte da comunidade???

Para se registrar, clique aqui.


Aprenda Groovy e Grails com a Formação itexto!

Newsletter Semana Groovy

Assinar

Envie seu link!


Livro de Grails


/dev/All

Os melhores blogs de TI (e em português) em um único lugar!

 
Creative Commons
RSS Grails Brasil é mantido por itexto Consultoria.
Em caso de problemas contacte Henrique Lobo Weissmann (Kico) por e-mail: kico@itexto.com.br
Todo o conteúdo presente neste site adota o Creative Commons como licença padrão.
Ver: 4.14.0
itexto