do you use a special hk2 version either through -D or in your v3/pom.xml ?
jerome
Lloyd L Chambers wrote:
> I blew away the repo, did another 'svn up', etc. Still no luck.
>
>
> [INFO]
> ----------------------------------------------------------------------------
>
> [INFO] Building Administration Configuration APIs
> [INFO] task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------------
>
> [INFO] Reloading plugin container for:
> com.sun.enterprise:hk2-maven-plugin. The plugin artifact has changed.
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [hk2:hk2-compile]
> [INFO] Compiling 121 source files to
> /v3/code/admin/config-api/target/classes
> error: Could not create declaration for annotation type DuckTyped
> 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.visitExecutableDeclaration(SimpleDeclarationVisitor.java:140)
>
> at
> com.sun.mirror.util.SimpleDeclarationVisitor.visitMethodDeclaration(SimpleDeclarationVisitor.java:160)
>
> at
> com.sun.tools.apt.mirror.declaration.MethodDeclarationImpl.accept(MethodDeclarationImpl.java:41)
>
> at
> com.sun.mirror.util.SourceOrderDeclScanner.visitExecutableDeclaration(SourceOrderDeclScanner.java:213)
>
> at
> com.sun.mirror.util.DeclarationScanner.visitMethodDeclaration(DeclarationScanner.java:214)
>
> at
> com.sun.tools.apt.mirror.declaration.MethodDeclarationImpl.accept(MethodDeclarationImpl.java:41)
>
> at
> com.sun.mirror.util.SourceOrderDeclScanner.visitTypeDeclaration(SourceOrderDeclScanner.java:170)
>
> at
> com.sun.mirror.util.DeclarationScanner.visitInterfaceDeclaration(DeclarationScanner.java:150)
>
> at
> com.sun.tools.apt.mirror.declaration.InterfaceDeclarationImpl.accept(InterfaceDeclarationImpl.java:32)
>
> 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:443)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> 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
>
> Embedded error: APT failed: 4
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Fatal error
> compiling
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
> 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)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal error
> compiling
> at
> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:526)
>
> 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:443)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>
> ... 16 more
> Caused by: org.codehaus.plexus.compiler.CompilerException: APT failed: 4
> at
> com.sun.enterprise.module.maven.HK2CompileMojo$1.compileInProcess(HK2CompileMojo.java:130)
>
> at
> com.sun.enterprise.module.maven.AptCompiler.compile(AptCompiler.java:103)
> at
> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:521)
>
> ... 20 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5 minutes 7 seconds
> [INFO] Finished at: Thu May 15 15:32:09 PDT 2008
> [INFO] Final Memory: 60M/151M
> [INFO]
> ------------------------------------------------------------------------
> MB2:code lloyd$
>
>
>
> On May 15, 2008, at 10:44 AM, Lloyd L Chambers wrote:
>
>> I've done:
>> svn up
>> mvn clean
>> mvn -U install
>>
>> ...several times
>>
>> [INFO]
>> ----------------------------------------------------------------------------
>>
>> [INFO] Building GlassFish Administration related modules
>> [INFO] task-segment: [install]
>> [INFO]
>> ----------------------------------------------------------------------------
>>
>> [INFO] [site:attach-descriptor]
>> [INFO] Preparing source:jar
>> [WARNING] Removing: jar from forked lifecycle, to prevent recursive
>> invocation.
>> [INFO] No goals needed for project - skipping
>> [INFO] [source:jar {execution: attach-sources}]
>> [INFO] [install:install]
>> [INFO] Installing /v3/code/admin/pom.xml to
>> /v3/repo/org/glassfish/admin/admin/10.0-SNAPSHOT/admin-10.0-SNAPSHOT.pom
>> [INFO]
>> ----------------------------------------------------------------------------
>>
>> [INFO] Building Administration Configuration APIs
>> [INFO] task-segment: [install]
>> [INFO]
>> ----------------------------------------------------------------------------
>>
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [hk2:hk2-compile]
>> [INFO] Compiling 121 source files to
>> /v3/code/admin/config-api/target/classes
>> error: Could not create declaration for annotation type DuckTyped
>> 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.visitExecutableDeclaration(SimpleDeclarationVisitor.java:140)
>>
>> at
>> com.sun.mirror.util.SimpleDeclarationVisitor.visitMethodDeclaration(SimpleDeclarationVisitor.java:160)
>>
>> at
>> com.sun.tools.apt.mirror.declaration.MethodDeclarationImpl.accept(MethodDeclarationImpl.java:41)
>>
>> at
>> com.sun.mirror.util.SourceOrderDeclScanner.visitExecutableDeclaration(SourceOrderDeclScanner.java:213)
>>
>> at
>> com.sun.mirror.util.DeclarationScanner.visitMethodDeclaration(DeclarationScanner.java:214)
>>
>> at
>> com.sun.tools.apt.mirror.declaration.MethodDeclarationImpl.accept(MethodDeclarationImpl.java:41)
>>
>> at
>> com.sun.mirror.util.SourceOrderDeclScanner.visitTypeDeclaration(SourceOrderDeclScanner.java:170)
>>
>> at
>> com.sun.mirror.util.DeclarationScanner.visitInterfaceDeclaration(DeclarationScanner.java:150)
>>
>> at
>> com.sun.tools.apt.mirror.declaration.InterfaceDeclarationImpl.accept(InterfaceDeclarationImpl.java:32)
>>
>> 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:443)
>>
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>>
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>>
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>>
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>>
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>>
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>>
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>> 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
>>
>> Embedded error: APT failed: 4
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: Fatal error
>> compiling
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564)
>>
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
>>
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
>>
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>>
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
>>
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
>>
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
>> 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)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal
>> error compiling
>> at
>> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:526)
>>
>> 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:443)
>>
>> at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>>
>> ... 16 more
>> Caused by: org.codehaus.plexus.compiler.CompilerException: APT failed: 4
>> at
>> com.sun.enterprise.module.maven.HK2CompileMojo$1.compileInProcess(HK2CompileMojo.java:130)
>>
>> at
>> com.sun.enterprise.module.maven.AptCompiler.compile(AptCompiler.java:103)
>>
>> at
>> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:521)
>>
>> ... 20 more
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 41 seconds
>> [INFO] Finished at: Thu May 15 10:43:16 PDT 2008
>> [INFO] Final Memory: 52M/168M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> ---
>> Lloyd L Chambers
>> lloyd.chambers_at_sun.com
>> Sun Microsystems, Inc
>>
>>
>>
>
> ---
> Lloyd L Chambers
> lloyd.chambers_at_sun.com
> Sun Microsystems, Inc
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>