dev@glassfish.java.net

Re: Error building Admin Console Common : V3 Trunk (fresh checkout)

From: Kumar Jayanti <Vbkumar.Jayanti_at_Sun.COM>
Date: Tue, 09 Jun 2009 12:34:19 +0530

Jane Young wrote:
> Kumar,
>
> Can you check if there is tools.jar file in JAVA_HOME/lib?
> The class: "com/sun/mirror/apt/AnnotationProcessorFactory" should be
> bundled in JDK 1.6's tools.jar.
>
sorry for the trouble i got around the problem. I was doing some
bugfixes for the JDK6 update build and it required me to copy certain
things to the endorsed dir of JRE. I figured out this was causing the
trouble. Thanks for the help.

regards,
kumar

> Jane
>
>
> Kumar Jayanti wrote:
>> Jason Lee wrote:
>>> What version of the JDK are you using to build? It looks like
>>> you're using JDK 5. The build requires version 6, though it should
>>> have enforced that requirement....
>>>
>> v3>java -version
>> java version "1.6.0_12"
>> Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
>> Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode)
>>
>> regards,
>> kumar
>>> On Jun 5, 2009, at 3:14 AM, Kumar Jayanti wrote:
>>>
>>>> Hi,
>>>> I am seeing the following error when i did a fresh build (mvn -U
>>>> did not help either). Can someone tell me what needs to be fixed.
>>>>
>>>>
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Building Admin Console Common
>>>> [INFO] task-segment: [install]
>>>> [INFO]
>>>> ------------------------------------------------------------------------*
>>>> ..................
>>>> *[INFO]
>>>> ------------------------------------------------------------------------
>>>> [ERROR] FATAL ERROR
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] com/sun/mirror/apt/AnnotationProcessorFactory
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Trace
>>>> java.lang.NoClassDefFoundError:
>>>> com/sun/mirror/apt/AnnotationProcessorFactory
>>>> at java.lang.ClassLoader.findBootstrapClass(Native Method)
>>>> at
>>>> java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:892)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:302)
>>>> at
>>>> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassL
>>>> oader.java:195)
>>>> at
>>>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassReal
>>>> m.java:255)
>>>> at
>>>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.
>>>> java:214)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:300)
>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>>>> at
>>>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>>>> at java.lang.Class.forName0(Native Method)
>>>> at java.lang.Class.forName(Class.java:247)
>>>> at
>>>> com.sun.enterprise.module.maven.ServiceFinder$LazyIterator.next(Servi
>>>> ceFinder.java:374)
>>>> at
>>>> com.sun.enterprise.module.maven.HK2CompileMojo.loadAdditionalAnnotati
>>>> onProcessors(HK2CompileMojo.java:184)
>>>> at
>>>> com.sun.enterprise.module.maven.HK2CompileMojo.access$000(HK2CompileM
>>>> ojo.java:78)
>>>> at
>>>> com.sun.enterprise.module.maven.HK2CompileMojo$1.compileInProcess(HK2
>>>> CompileMojo.java:123)
>>>> at
>>>> com.sun.enterprise.module.maven.AptCompiler.compile(AptCompiler.java:
>>>> 103)
>>>> at
>>>> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
>>>> Mojo.java:521)
>>>> at
>>>> com.sun.enterprise.module.maven.CompilerMojo.execute(CompilerMojo.jav
>>>> a:149)
>>>> at
>>>> com.sun.enterprise.module.maven.HK2CompileMojo.execute(HK2CompileMojo
>>>> .java:137)
>>>> at
>>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
>>>> nManager.java:451)
>>>> at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>>>> ultLifecycleExecutor.java:558)
>>>> at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
>>>> fecycle(DefaultLifecycleExecutor.java:499)
>>>> at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>>>> ltLifecycleExecutor.java:478)
>>>> at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
>>>> dleFailures(DefaultLifecycleExecutor.java:330)
>>>> at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
>>>> ts(DefaultLifecycleExecutor.java:291)
>>>> at
>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>>>> fecycleExecutor.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(DelegatingMethodAcces
>>>> sorImpl.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]
>>>> ------------------------------------------------------------------------
>>>> [INFO] Total time: 18 minutes 25 seconds
>>>> [INFO] Finished at: Fri Jun 05 15:41:13 IST 2009
>>>> [INFO] Final Memory: 80M/143M
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>>
>>>
>>> <http://www.java.com> * Jason Lee *
>>> Senior Java Developer
>>> GlassFish Administration Console
>>>
>>> *Sun Microsystems, Inc.*
>>> Phone x31197/+1 405-343-1964
>>> Email jasondlee_at_sun.com <mailto:jasondlee_at_sun.com>
>>> Blog http://blogs.sun.com/jasondlee
>>> Blog http://blogs.steeplesoft.com
>>>
>>>
>>
>