Jane,
Thank you.
I made a change, and it's really annoying that the build doesn't say
which file is the problem. This happens whenever an annotation type
cannot be found.
I found that NetBeans will show me, so I went that way.
Lloyd
On Aug 3, 2009, at 3:47 PM, Jane Young wrote:
> Is this a new module, v3/code?
> I could not tell where the build is failing. You may want to try
> rebuilding the module with the following options "-e -X".
>
>
>
> Lloyd Chambers wrote:
>>
>> How can I determine *which file* is the problem out of the 152 it's
>> failing in?
>>
>> [INFO] Compiling 152 source files to /Volumes/Spare4/work/v3/code/
>> common/amx-core/target/classes
>> error: Could not create declaration for annotation type Taxonomy
>> Problem encountered during annotation processing;
>> see stacktrace below for more information.
>> java.lang.ClassCastException:
>> com.sun.tools.apt.mirror.type.ClassTypeImpl cannot be cast to
>> com.sun.mirror.type.AnnotationType
>> at
>> com
>> .sun
>> .tools
>> .apt
>> .mirror
>> .declaration
>> .AnnotationMirrorImpl.getAnnotationType(AnnotationMirrorImpl.java:82)
>> at com.sun.tools.apt.mirror.apt.AnnotationProcessorEnvironmentImpl
>> $CollectingAP
>> $
>> CollectingVisitor
>> .visitDeclaration(AnnotationProcessorEnvironmentImpl.java:118)
>> at
>> com
>> .sun
>> .mirror
>> .util
>> .SimpleDeclarationVisitor
>> .visitMemberDeclaration(SimpleDeclarationVisitor.java:60)
>> at
>> com
>> .sun
>> .mirror
>> .util
>> .SimpleDeclarationVisitor
>> .visitTypeDeclaration(SimpleDeclarationVisitor.java:70)
>> at
>> com
>> .sun
>> .mirror
>> .util
>> .SimpleDeclarationVisitor
>> .visitInterfaceDeclaration(SimpleDeclarationVisitor.java:100)
>> at
>> com
>> .sun
>> .mirror
>> .util
>> .SimpleDeclarationVisitor
>> .visitAnnotationTypeDeclaration(SimpleDeclarationVisitor.java:110)
>> at
>> com
>> .sun
>> .tools
>> .apt
>> .mirror
>> .declaration
>> .AnnotationTypeDeclarationImpl
>> .accept(AnnotationTypeDeclarationImpl.java:43)
>> at
>> com
>> .sun
>> .mirror
>> .util
>> .SourceOrderDeclScanner
>> .visitTypeDeclaration(SourceOrderDeclScanner.java:148)
>> at
>> com
>> .sun
>> .mirror
>> .util
>> .DeclarationScanner
>> .visitInterfaceDeclaration(DeclarationScanner.java:150)
>> at
>> com
>> .sun
>> .mirror
>> .util
>> .DeclarationScanner
>> .visitAnnotationTypeDeclaration(DeclarationScanner.java:159)
>> at
>> com
>> .sun
>> .tools
>> .apt
>> .mirror
>> .declaration
>> .AnnotationTypeDeclarationImpl
>> .accept(AnnotationTypeDeclarationImpl.java:43)
>> at com.sun.tools.apt.mirror.apt.AnnotationProcessorEnvironmentImpl
>> $CollectingAP.process(AnnotationProcessorEnvironmentImpl.java:126)
>> at
>> com
>> .sun
>> .tools
>> .apt
>> .mirror
>> .apt
>> .AnnotationProcessorEnvironmentImpl
>> .getDeclarationsAnnotatedWith
>> (AnnotationProcessorEnvironmentImpl.java:100)
>> at
>> com
>> .sun
>> .enterprise
>> .tools
>> .apt.CompanionSeedGenerator.process(CompanionSeedGenerator.java:72)
>> at com.sun.mirror.apt.AnnotationProcessors
>> $CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>> at com.sun.mirror.apt.AnnotationProcessors
>> $CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>> at com.sun.mirror.apt.AnnotationProcessors
>> $CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>> at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
>> at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:
>> 258)
>> at com.sun.tools.apt.main.Main.compile(Main.java:1102)
>> at com.sun.tools.apt.main.Main.compile(Main.java:964)
>> at com.sun.tools.apt.Main.processing(Main.java:95)
>> at com.sun.tools.apt.Main.process(Main.java:85)
>> at com.sun.enterprise.module.maven.HK2CompileMojo
>> $1.compileInProcess(HK2CompileMojo.java:123)
>> at
>> com
>> .sun.enterprise.module.maven.AptCompiler.compile(AptCompiler.java:
>> 103)
>> at
>> org
>> .apache
>> .maven
>> .plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:521)
>> at
>> com
>> .sun.enterprise.module.maven.CompilerMojo.execute(CompilerMojo.java:
>> 149)
>> at
>> com
>> .sun
>> .enterprise.module.maven.HK2CompileMojo.execute(HK2CompileMojo.java:
>> 137)
>> at
>> org
>> .apache
>> .maven
>> .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
>> 451)
>> at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor
>> .executeGoals(DefaultLifecycleExecutor.java:558)
>> at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor
>> .executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
>> at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:
>> 478)
>> at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor
>> .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>> at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor
>> .executeTaskSegments(DefaultLifecycleExecutor.java:291)
>> at
>> org
>> .apache
>> .maven
>> .lifecycle
>> .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun
>> .reflect
>> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun
>> .reflect
>> .DelegatingMethodAccessorImpl
>> .invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:
>> 315)
>> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>> at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Fatal error compiling
>>
>>
>>
>> Lloyd Chambers
>> lloyd.chambers_at_sun.com
>> GlassFish Team
>>
>>
>>
>
Lloyd Chambers
lloyd.chambers_at_sun.com
GlassFish Team