dev@glassfish.java.net

Re: trunk build error

From: Jane Young <jane.young_at_oracle.com>
Date: Fri, 18 Nov 2011 13:47:57 -0800

Thanks for catching this.
I've updated the scripted.

Jane

On 11/18/11 12:23 PM, Bill Shannon wrote:
> Ah ha! I figured out that gfbuild.sh is overriding my setting!
> Can you update gfbuild.sh to use the following to set MAVEN_OPTS,
> which prevents it from overriding any previous value while setting
> the new default?
>
> MAVEN_OPTS=${MAVEN_OPTS:='-Xmx512m -Xms256m -XX:MaxPermSize=512m'}
>
> Thanks.
>
> Jane Young wrote on 11/18/11 01:57:
>> I'm able to build trunk successfully.
>> This is what I have for MAVEN_OPTS.
>> MAVEN_OPTS='-Xmx512m -Xms256m -XX:MaxPermSize=512m'
>>
>>
>>
>> On 11/17/11 11:52 PM, Bill Shannon wrote:
>>> I can't get the trunk to build. I'm running into an out of memory
>>> error.
>>> I tried the below but it didn't help. I bumped up MaxPermSize to 256m
>>> and it still fails, now with:
>>>
>>> [INFO] Fatal error compiling
>>>
>>> Embedded error: Error while executing the compiler.
>>> PermGen space
>>>
>>>
>>> Am I the only one? It's failing on two different machines for me.
>>> I even removed my .m2 directory but that didn't help.
>>>
>>>
>>> Jerome Dochez wrote on 11/14/2011 10:09 AM:
>>>> I have had some instability last week and I bumped up my memory to
>>>>
>>>> MAVEN_OPTS='-Xmx1024m -XX:MaxPermSize=128m'
>>>>
>>>> and that seems to have fixed the issues I had (I do remember the one
>>>> you have below but I am not sure how/why it went away).
>>>>
>>>> let me know.
>>>>
>>>> jerome
>>>>
>>>> On Nov 14, 2011, at 10:05 AM, hong.hz.zhang_at_oracle.com wrote:
>>>>
>>>>> Yes, the continous build is also blue. But I tried a couple times,
>>>>> each time it stopped here. I will check out a new workspace and try
>>>>> again.
>>>>>
>>>>> On 11/14/2011 1:00 PM, Jason Lee wrote:
>>>>>> I built without error this morning.
>>>>>>
>>>>>>
>>>>>> On 11/14/11 11:58 AM, hong.hz.zhang_at_oracle.com wrote:
>>>>>>> Anyone else seeing this (this is with the latest trunk workspace)?
>>>>>>>
>>>>>>> [INFO] Building in
>>>>>>> /home/hzhang/files/workspaces/glassfish/main/appserver/paas/console/webapp
>>>>>>>
>>>>>>> [INFO]
>>>>>>> ------------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>> [INFO] [resources:resources {execution: default-resources}]
>>>>>>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>>>>>>> [INFO] Copying 0 resource
>>>>>>> [INFO] [compiler:compile {execution: default-compile}]
>>>>>>> [INFO] Compiling 41 source files to
>>>>>>> /home/hzhang/files/workspaces/glassfish/main/appserver/paas/console/webapp/target/classes
>>>>>>>
>>>>>>> [INFO]
>>>>>>> ------------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>> [ERROR] BUILD ERROR
>>>>>>> [INFO]
>>>>>>> ------------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>> org.codehaus.classworlds.NoSuchRealmException: plexus.core
>>>>>>> at
>>>>>>> org.codehaus.classworlds.ClassWorld.getRealm(ClassWorld.java:128)
>>>>>>> at
>>>>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:434)
>>>>>>>
>>>>>>> at
>>>>>>> org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>>>>
>>>>>>
>>>>>>
>>>>
>>>
>>
>