dev@glassfish.java.net

Re: Glassfish cvs checkout errors

From: Jim Jiang <jim.jiang_at_sun.com>
Date: Sat, 14 Oct 2006 05:46:33 +0800

Is it possible to add a goal for bootstrap/maven.xml , which used to
check if maven version is compatible?

Jim

Dinesh Patil wrote:

> welcome Jim! good to know it worked..
> -thanks
> Dinesh
>
> Jim Jiang wrote:
>
>> I replaced the maven 1.1 by 1.02. It works!
>>
>> Thanks! Dinesh
>>
>> Jim
>>
>> Dinesh Patil wrote:
>>
>>> Jim Jiang wrote:
>>>
>>>> Hi Dinesh,
>>>>
>>>> My maven version 1.1-beta-3. (It looks that the link to download
>>>> 1.02 is broken)
>>>> java version is "1.5.0_04"
>>>
>>> Jim, these versions are not correct as per the pre-requisites, so
>>> please make sure you have the updated versions which our nightly
>>> builds are using.
>>> http://maven.apache.org/maven-1.x/start/download.html
>>> Assuming you have Apache Maven
>>> <http://maven.apache.org/maven-1.x/start/download.html> 1.0.2 and
>>> JDK 5.0 <http://java.sun.com/j2se/1.5.0/download.jsp> (1.5.0_08)
>>> installed and configured as specified in the prerequisites above.
>>>
>>>> I followed the steps you instructed, but failed with same error.
>>>>
>>>> *Had better prompt the HOMEPATH with an example for windows user.
>>>> sth like this:
>>>> ... or %HOMEPATH%\build.properties (Windows) and set following
>>>> variables.
>>>> noted: %HOMEPATH% can be got by typing the command: echo
>>>> %HOMEPATH% (windows)
>>>
>>> ok got it.. will add this.
>>> thanks
>>> Dinesh
>>>
>>>> Thanks,
>>>> Jim
>>>>
>>>> Dinesh Patil wrote:
>>>>
>>>>> Hi Jim, my comments inline..
>>>>> Jim Jiang wrote:
>>>>>
>>>>>> Dinesh,
>>>>>>
>>>>>> I still got similar error. My steps:
>>>>>> 1.Created the build.properties with 2 entry setting under my
>>>>>> %HOMEPATH% (C:\Documents and Settings\jim).
>>>>>> glassfish.os.name=WINNT
>>>>>> glassfish.cvs.username=jj156416
>>>>>> 2. Then run the cmd: cvs update -d glassfish\bootstrap.
>>>>>
>>>>>
>>>>>
>>>>> what's java and maven version you are using?
>>>>> can you please try deleting this directory and run following
>>>>> commands again.
>>>>>
>>>>> % cvs -d :pserver:<userid>@cvs.dev.java.net:/cvs login
>>>>> % cvs -d :pserver:<userid>@cvs.dev.java.net:/cvs checkout
>>>>> glassfish/bootstrap
>>>>>
>>>>>> 3. cd glassfish/bootstrap. run: maven checkout
>>>>>> I got following error messages:
>>>>>>
>>>>>> BUILD FAILED
>>>>>> File...... file:/D:/work/glassfish/src/glassfish/bootstrap/maven.xml
>>>>>> Element... maven:reactor
>>>>>> Line...... 230
>>>>>> Column.... 40
>>>>>> Error parsing project.xml
>>>>>> 'D:\work\glassfish\src\glassfish\bootstrap\..\..\glassfish\bootstrap\maven.xml'
>>>>>>
>>>>>>
>>>>>>
>>>>>> I have succeeded with just changing 2 entries in
>>>>>> project.properties, but the way did not work either this time.
>>>>>> Here are my further questions and suggestions:
>>>>>>
>>>>>> * What's the use of the 2 entries glassfish.os.name and
>>>>>> glassfish.cvs.username in project.properties? Could it be
>>>>>> remove
>>>>>> to avoid confusing.
>>>>>
>>>>>
>>>>>
>>>>> No we have assigned default values in project.properties, but this
>>>>> can be overriden in build.properties or -Dvar1=value1.
>>>>>
>>>>>> * If the error was caused by build.properties setting, could the
>>>>>> error info be prompted more accurately?
>>>>>
>>>>>
>>>>>
>>>>> good idea.. but in your case we don't even know if that's the error..
>>>>>
>>>>>> * Had better prompt the HOMEPATH with an example for windows
>>>>>> user.
>>>>>
>>>>>
>>>>>
>>>>> didn't get this.. pls clarify.
>>>>> thanks
>>>>> Dinesh
>>>>>
>>>>>> Thanks,
>>>>>> Jim
>>>>>>
>>>>>>
>>>>>> Dinesh Patil wrote:
>>>>>>
>>>>>>> Jim,
>>>>>>> is your build issue resolved? if not please verify if all the
>>>>>>> pre-requisites are correctly setup..
>>>>>>> http://www.glassfishwiki.org/gfwiki/Wiki.jsp?page=BuildInformation#qs
>>>>>>>
>>>>>>> Also try on fresh workspace after setting up the variables in
>>>>>>> $HOME/build.properties file.
>>>>>>> thanks
>>>>>>> Dinesh
>>>>>>>
>>>>>>> Shreedhar Ganapathy wrote:
>>>>>>>
>>>>>>>> Hi Jim
>>>>>>>> I assume you are referring to the build document located at
>>>>>>>> http://www.glassfishwiki.org/gfwiki/Wiki.jsp?page=BuildInformation
>>>>>>>>
>>>>>>>> point number 2 sort of answers your question but I agree it
>>>>>>>> could be clearer :
>>>>>>>> <snip>
>>>>>>>> Configure Build Variables: Create
>>>>>>>> workspace/glassfish/bootstrap/build.properties or for re-usable
>>>>>>>> GlassFish workspace, one-time process is to
>>>>>>>> create${HOME}/build.properties (Unix) or
>>>>>>>> %HOMEPATH%\build.properties (Windows) and set following
>>>>>>>> variables.
>>>>>>>>
>>>>>>>> glassfish.os.name=<OS Name: Possible values- WINNT,
>>>>>>>> SunOS, Linux, SunOS_X86, Darwin>
>>>>>>>> glassfish.cvs.username=<java.net id >
>>>>>>>>
>>>>>>>> Following two variables don't need to be
>>>>>>>> configured, this
>>>>>>>> is just for information. Default values are set to:
>>>>>>>> glassfish.root=${basedir}/../.. (basedir -directory
>>>>>>>> points to where project.xml is present)
>>>>>>>> glassfish.home=${glassfish.root}/publish/glassfish =>
>>>>>>>> e.g. /workspace/publish/glassfish
>>>>>>>>
>>>>>>>> *</snip>*
>>>>>>>> In other words, if you would like to have a reusable
>>>>>>>> build.properties file whereby you do not have to set this up
>>>>>>>> each time a new build is created or recreated, you should place
>>>>>>>> the file in your home dir with the two entries. By default, the
>>>>>>>> build.properties file does not exist in the
>>>>>>>> <workspace>/glassfish/bootstrap directory when you checkout
>>>>>>>> sources.
>>>>>>>>
>>>>>>>> Hope this helps.
>>>>>>>>
>>>>>>>> regards
>>>>>>>> Shreedhar
>>>>>>>>
>>>>>>>> Jim Jiang wrote:
>>>>>>>>
>>>>>>>>> Dinesh,
>>>>>>>>>
>>>>>>>>> I met the errors exactly with Lloyd . My OS is windows XP.
>>>>>>>>> And after I deleted bootstrap module and updated again.
>>>>>>>>> I still got the errors when I try to run maven:
>>>>>>>>>
>>>>>>>>> //DEPRECATED: the default goal should be specified in the
>>>>>>>>> <build> section of proje
>>>>>>>>> ct.xml instead of maven.xml
>>>>>>>>> build:start:
>>>>>>>>>
>>>>>>>>> all:
>>>>>>>>> bootstrap:
>>>>>>>>> pre-bootstrap:
>>>>>>>>> Trying to get missing/snapshot dependencies required by
>>>>>>>>> glassfish:
>>>>>>>>> Attempting to download glassfish-image-SNAPSHOT.jar.
>>>>>>>>> Skipping download as local copy is up to date!
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> BUILD FAILED
>>>>>>>>> File......
>>>>>>>>> file:/D:/work/glassfish/src/glassfish/bootstrap/maven.xml
>>>>>>>>> Element... ant:unzip
>>>>>>>>> Line...... 43
>>>>>>>>> Column.... 118
>>>>>>>>> java.lang.StackOverflowError
>>>>>>>>> Total time : 7 seconds/ /
>>>>>>>>>
>>>>>>>>> Any thoughts?
>>>>>>>>> Jim
>>>>>>>>>
>>>>>>>>> Dinesh Patil wrote:
>>>>>>>>>
>>>>>>>>>> Yes this was network glitch which exposed some bug in cvs..
>>>>>>>>>> but after deleting the module and in new workspace this issue
>>>>>>>>>> is resolved.
>>>>>>>>>> thanks
>>>>>>>>>> Dinesh
>>>>>>>>>>
>>>>>>>>>> Lloyd L Chambers wrote:
>>>>>>>>>>
>>>>>>>>>>> This is on Mac OS X.
>>>>>>>>>>>
>>>>>>>>>>> On Oct 3, 2006, at 11:58 AM, Lloyd L Chambers wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Dinesh,
>>>>>>>>>>>>
>>>>>>>>>>>> It's very odd. If I do a 'maven checkout' from within
>>>>>>>>>>>> glassfish/ bootstrap, it always fails in
>>>>>>>>>>>> glassfish/admin/ws-mgmt/tests/com/sun/
>>>>>>>>>>>> enterprise/admin/wsmgmt/repository.
>>>>>>>>>>>>
>>>>>>>>>>>> If I go into glassfish/admin and do a "cvs update -d", it
>>>>>>>>>>>> succeeds.
>>>>>>>>>>>>
>>>>>>>>>>>> Thoughts?
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>> Lloyd
>>>>>>>>>>>>
>>>>>>>>>>>> On Oct 3, 2006, at 11:59 AM, Dinesh Patil wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> GlassFish Workspace status is OK, no issues on checkout or
>>>>>>>>>>>>> build..
>>>>>>>>>>>>> http://glassfishbuildtools.sun.com:8000/hudson/job/glassfish/
>>>>>>>>>>>>> it may be env problem or network glitch, few mins back, I
>>>>>>>>>>>>> couldn't access internet on my internal network. so try
>>>>>>>>>>>>> it again it may get resolved.
>>>>>>>>>>>>> I have started the build on local machine and going fine.
>>>>>>>>>>>>> thanks
>>>>>>>>>>>>> Dinesh
>>>>>>>>>>>>>
>>>>>>>>>>>>> Lloyd L Chambers wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> I am internal (SCA14):
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> d-usca14-133-153:/gf/build/glassfish/bootstrap lloyd$
>>>>>>>>>>>>>> ping cvs.dev.java.net
>>>>>>>>>>>>>> PING cvs.dev.java.net (64.125.133.206): 56 data bytes
>>>>>>>>>>>>>> 64 bytes from 64.125.133.206: icmp_seq=0 ttl=240
>>>>>>>>>>>>>> time=6.900 ms
>>>>>>>>>>>>>> 64 bytes from 64.125.133.206: icmp_seq=1 ttl=240
>>>>>>>>>>>>>> time=9.364 ms
>>>>>>>>>>>>>> 64 bytes from 64.125.133.206: icmp_seq=2 ttl=240
>>>>>>>>>>>>>> time=9.246 ms
>>>>>>>>>>>>>> ^C
>>>>>>>>>>>>>> --- cvs.dev.java.net ping statistics ---
>>>>>>>>>>>>>> 3 packets transmitted, 3 packets received, 0% packet loss
>>>>>>>>>>>>>> round-trip min/avg/max/stddev = 6.900/8.503/9.364/1.135 ms
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Oct 3, 2006, at 11:49 AM, Dinesh Patil wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Lloyd L Chambers wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Has something changed? 'maven checkout' goes through a
>>>>>>>>>>>>>>>> number of modules, then fails:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Lloyd,
>>>>>>>>>>>>>>> nothing has changed recently.. pls check your network
>>>>>>>>>>>>>>> settings and try pinging cvs.dev.java.net when this
>>>>>>>>>>>>>>> happens, your internet connection may have problem.
>>>>>>>>>>>>>>> thanks
>>>>>>>>>>>>>>> Dinesh
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> ------------
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> [cvs] cvs server: Updating
>>>>>>>>>>>>>>>> glassfish/admin/ws-mgmt/tests/ com/ sun/
>>>>>>>>>>>>>>>> enterprise/admin/wsmgmt/registry
>>>>>>>>>>>>>>>> [cvs] cvs server: Updating
>>>>>>>>>>>>>>>> glassfish/admin/ws-mgmt/tests/ com/ sun/
>>>>>>>>>>>>>>>> enterprise/admin/wsmgmt/repository
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> BUILD FAILED
>>>>>>>>>>>>>>>> File...... /gf/build/glassfish/bootstrap/maven.xml
>>>>>>>>>>>>>>>> Element... maven:reactor
>>>>>>>>>>>>>>>> Line...... 230
>>>>>>>>>>>>>>>> Column.... 40
>>>>>>>>>>>>>>>> Unable to obtain goal [checkout-pe] --
>>>>>>>>>>>>>>>> /gf/build/glassfish/ bootstrap/ maven.xml:214:56:
>>>>>>>>>>>>>>>> <ant:cvs> cvs exited with error code 1
>>>>>>>>>>>>>>>> Command line was [Executing 'cvs' with arguments:
>>>>>>>>>>>>>>>> '-d:pserver:llc_at_cvs.dev.java.net:/cvs'
>>>>>>>>>>>>>>>> 'checkout'
>>>>>>>>>>>>>>>> 'glassfish/admin'
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> The ' characters around the executable and arguments are
>>>>>>>>>>>>>>>> not part of the command.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> environment:
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> AMX_API_SRC=/gf/build/glassfish/admin-core/mbeanapi
>>>>>>>>>>>>>>>> APS_HOME=/gf/build/glassfish/appserv-tests
>>>>>>>>>>>>>>>> GF_RUN=/gf/run
>>>>>>>>>>>>>>>> TERM_PROGRAM=Apple_Terminal
>>>>>>>>>>>>>>>> GF=/gf
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> AMX_IMPL_SRC=/gf/build/glassfish/admin/mbeanapi-impl
>>>>>>>>>>>>>>>> SHELL=/bin/bash
>>>>>>>>>>>>>>>> TERM=xterm-color
>>>>>>>>>>>>>>>> TERM_PROGRAM_VERSION=133
>>>>>>>>>>>>>>>> GF_SRC=/gf/build/glassfish
>>>>>>>>>>>>>>>> USER=lloyd
>>>>>>>>>>>>>>>> __CF_USER_TEXT_ENCODING=0x1F5:0:0
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> PATH=/Applications/Utilities/diglloyd/diglloydTools:/
>>>>>>>>>>>>>>>> Applications/Utilities/diglloyd/diglloydTools:/Applications/
>>>>>>>>>>>>>>>> Utilities/
>>>>>>>>>>>>>>>> diglloyd/diglloydTools:/Applications/Utilities/
>>>>>>>>>>>>>>>> diglloyd/
>>>>>>>>>>>>>>>> diglloydTools:/Applications/Utilities/diglloyd/
>>>>>>>>>>>>>>>> diglloydTools:/
>>>>>>>>>>>>>>>> Applications/Utilities/diglloyd/diglloydTools:/
>>>>>>>>>>>>>>>> Applications/Utilities/
>>>>>>>>>>>>>>>> diglloyd/disktester:/tools/maven-1.0.2/
>>>>>>>>>>>>>>>> bin:/tools/maven-1.0.2/bin:/ bin:/sbin:/usr/bin:/usr/sbin
>>>>>>>>>>>>>>>> MAVEN_HOME=/tools/maven-1.0.2
>>>>>>>>>>>>>>>> PWD=/gf/build/glassfish/bootstrap
>>>>>>>>>>>>>>>> JAVA_HOME=/usr
>>>>>>>>>>>>>>>> ADMIN_SRC=/gf/build/glassfish/admin
>>>>>>>>>>>>>>>> ADMIN_CORE_SRC=/gf/build/glassfish/admin-core
>>>>>>>>>>>>>>>> S1AS_HOME=/gf/run
>>>>>>>>>>>>>>>> HOME=/Users/lloyd
>>>>>>>>>>>>>>>> SHLVL=2
>>>>>>>>>>>>>>>> LOGNAME=lloyd
>>>>>>>>>>>>>>>> SECURITYSESSIONID=5aacf0
>>>>>>>>>>>>>>>> _=/usr/bin/java
>>>>>>>>>>>>>>>> JAVA_MAIN_CLASS_319=com.werken.forehead.Forehead
>>>>>>>>>>>>>>>> CVS_PASSFILE=/Users/lloyd/.cvspass]
>>>>>>>>>>>>>>>> Total time: 1 minutes 3 seconds
>>>>>>>>>>>>>>>> Finished at: Tue Oct 03 11:30:04 PDT 2006
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> ------------------------------------------------------------------
>>>>>>>>>>>>>>>> ---
>>>>>>>>>>>>>>>> To unsubscribe, e-mail:
>>>>>>>>>>>>>>>> dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>>>>>>>>> For additional commands, e-mail:
>>>>>>>>>>>>>>>> dev-help_at_glassfish.dev.java.net
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> -------------------------------------------------------------------
>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>> To unsubscribe, e-mail:
>>>>>>>>>>>>>>> dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>>>>>>>> For additional commands, e-mail:
>>>>>>>>>>>>>>> dev-help_at_glassfish.dev.java.net
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --------------------------------------------------------------------
>>>>>>>>>>>>>> -
>>>>>>>>>>>>>> To unsubscribe, e-mail:
>>>>>>>>>>>>>> dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>>>>>>> For additional commands, e-mail:
>>>>>>>>>>>>>> dev-help_at_glassfish.dev.java.net
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>>>>
>>>>>>>>>>>>> To unsubscribe, e-mail:
>>>>>>>>>>>>> dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>>>>>> For additional commands, e-mail:
>>>>>>>>>>>>> dev-help_at_glassfish.dev.java.net
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>>>
>>>>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>>>>> For additional commands, e-mail:
>>>>>>>>>>>> dev-help_at_glassfish.dev.java.net
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>>
>>>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>>>> For additional commands, e-mail:
>>>>>>>>>>> dev-help_at_glassfish.dev.java.net
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>>>>
>>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>
>