Re: problem while building cruise control

"Bal Krishna Shrestha" <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hi Dan
Warm Greetings to you and Thanks for your quick response.


I am using src distribution  because in site it is written as follows

This Binary Distribution is a trimmed down version of the Source
Distribution. It is fully functional and intended to work with a sample
project - the game Connect Four - "out of the box".

I think with this quote means binary distribution work only with sample
project "connect four" with fully functional.So, I build cruisecontrol with
src distribution



Sorry to make you not clear  with my previous mail.

Now I build cruisecontrol src distribution latest version 2.8.4  and other
supporting tools for cruisecontrol is same as before that I mention in
previous mail.

1. Build in main
	BUILD SUCCESSFUL


2. Build in reporting/jsp



While building in reporting/jsp, I set following input for log, build status
file and  artifacts

	-set.log.dir:
   	 [input] WARNING! Property user.log.dir not set!  Please enter the
absolute path to the CruiseControl logs directory:
/var/log/cruisecontrol
 
	-set.status.file:
 	   [input] WARNING! Property user.build.status.file not set!  Please
enter the name of the current build status file:
/opt/cruisecontrol-2.8.4/reporting/jsp/webcontent/WEB-INF/web.xml

 
	-set.artifacts.dir:
	    [input] WARNING! Property cruise.build.artifacts.dir not set!
Please enter the absolute path to the directory where additional build
artifacts are stored:
/opt/cruisecontrol-2.8.4/artifacts


	Build in reporting/jsp it give following Build Failed error

		jsp-precompile:
 		   [mkdir] Created dir:
/opt/cruisecontrol-2.8.4/reporting/jsp/target/jsp-precompile/exploded-war
		[unzip] Expanding:
/opt/cruisecontrol-2.8.4/reporting/jsp/dist/cruisecontrol.war into
/opt/cruisecontrol-2.8.4/reporting/jsp/target/jsp-precompile/exploded-war
  		  [mkdir] Created dir:
/opt/cruisecontrol-2.8.4/reporting/jsp/target/jsp-precompile/src
 
		BUILD FAILED
	
/opt/cruisecontrol-2.8.4/reporting/jsp/build.xml:206: jasper2 doesn't
support the "listerrors" attribute


Then I disable the following block in build.xml file

<!--     <jasper2 compile="true" outputdir="target/jsp-precompile/src"
                 listerrors="false" validatexml="true" verbose="2"
                uriroot="${basedir}/target/jsp-precompile/exploded-war"/>
-->


Now its show BUILD SUCCESSFUL



3. Build in reporting/dashboard
	Following error is generate in -unit-tests



-unit-tests:
    [mkdir] Created dir:
/opt/cruisecontrol-2.8.4/reporting/dashboard/target/reports
    [mkdir] Created dir:
/opt/cruisecontrol-2.8.4/reporting/dashboard/target/classes/test/build
    [junit] WARNING: multiple versions of ant detected in path for junit 
    [junit]
jar:file:/opt/ant/lib/ant.jar!/org/apache/tools/ant/Project.class
    [junit]      and
jar:file:/opt/cruisecontrol-2.8.4/reporting/dashboard/lib/ant.jar!/org/apach
e/tools/ant/Project.class
    [junit] Running net.sourceforge.cruisecontrol.dashboard.BuildDetailTest
    [junit] Testsuite:
net.sourceforge.cruisecontrol.dashboard.BuildDetailTest
    [junit] Tests run: 10, Failures: 2, Errors: 0, Time elapsed: 0.666 sec
    [junit] Tests run: 10, Failures: 2, Errors: 0, Time elapsed: 0.666 sec
    [junit] 
    [junit] Testcase:
testShouldReturnAllArtifactsForTheBuild(net.sourceforge.cruisecontrol.dashbo
ard.BuildDetailTest): FAILED
    [junit] This test failure could be a JVM TimeZone issue: 
    [junit] timestamp: 20001212050505; 
    [junit] BuildDetail.getTimeStamp(): 20001212105005; 
    [junit] BuildDetail.getBuildDate(): 20001212050505; 
    [junit] Do you see the extra/missing '5' above?; 
    [junit] Joda TimeZone: UTC; 
    [junit] Is Joda TimeZone above what you'd expect? Does it match your OS
setting?; 
    [junit] see:
http://www.mail-archive.com/[email protected]/msg01073.htm
l
    [junit]  expected:<3> but was:<0>
    [junit] junit.framework.AssertionFailedError: This test failure could be
a JVM TimeZone issue: 
    [junit] timestamp: 20001212050505; 
    [junit] BuildDetail.getTimeStamp(): 20001212105005; 
    [junit] BuildDetail.getBuildDate(): 20001212050505; 
    [junit] Do you see the extra/missing '5' above?; 
    [junit] Joda TimeZone: UTC; 
    [junit] Is Joda TimeZone above what you'd expect? Does it match your OS
setting?; 
    [junit] see:
http://www.mail-archive.com/[email protected]/msg01073.htm
l
    [junit]  expected:<3> but was:<0>
    [junit]     at
net.sourceforge.cruisecontrol.dashboard.BuildDetailTest.testShouldReturnAllA
rtifactsForTheBuild(BuildDetailTest.java:166)
    [junit]     at
org.jmock.core.VerifyingTestCase.runBare(VerifyingTestCase.java:39)
    [junit] 
    [junit] 
    [junit] Testcase:
testShouldGetArtifactsInSubDirectories(net.sourceforge.cruisecontrol.dashboa
rd.BuildDetailTest):  FAILED
    [junit] This test failure could be a JVM TimeZone issue: 
    [junit] timestamp: 20001212050505; 
    [junit] BuildDetail.getTimeStamp(): 20001212105005; 
    [junit] BuildDetail.getBuildDate(): 20001212050505; 
    [junit] Do you see the extra/missing '5' above?; 
    [junit] Joda TimeZone: UTC; 
    [junit] Is Joda TimeZone above what you'd expect? Does it match your OS
setting?; 
    [junit] see:
http://www.mail-archive.com/[email protected]/msg01073.htm
l
    [junit]  expected:<4> but was:<0>
    [junit] junit.framework.AssertionFailedError: This test failure could be
a JVM TimeZone issue: 
    [junit] timestamp: 20001212050505; 
    [junit] BuildDetail.getTimeStamp(): 20001212105005; 
    [junit] BuildDetail.getBuildDate(): 20001212050505;
    [junit] Do you see the extra/missing '5' above?; 
    [junit] Joda TimeZone: UTC; 
    [junit] Is Joda TimeZone above what you'd expect? Does it match your OS
setting?; 
    [junit] see:
http://www.mail-archive.com/[email protected]/msg01073.htm
l
    [junit]  expected:<4> but was:<0>
    [junit]     at
net.sourceforge.cruisecontrol.dashboard.BuildDetailTest.testShouldGetArtifac
tsInSubDirectories(BuildDetailTest.java:199)
    [junit]     at
org.jmock.core.VerifyingTestCase.runBare(VerifyingTestCase.java:39)
    [junit] 
    [junit] 
 
BUILD FAILED
/opt/cruisecontrol-2.8.4/reporting/dashboard/build.xml:152: Tests failed
 
Total time: 29 seconds



What would be the cause of error in reporting/jsp. Is is my way is correct
to remove error while build in reporting/jsp i.e disabling the portion of
jasper2 in build.xml and make BUILD SUCCESSFUL?

Also what would be cause of error "after BUILD SUCCESSFUL in repoting/jsp"
in reporting/dashboard as report. And wish to have clear step to resolve the
error.



Kindly Regards,
Bal Krishna Shrestha








-----Original Message-----
From: Dan Rollo [mailto:[email protected]] 
Sent: Tuesday, May 24, 2011 5:34 AM
To: [email protected]
Subject: Re: [Cruisecontrol-user] problem while building cruise control

Hi Again,

So I just went through the steps described here:
http://cruisecontrol.sourceforge.net/gettingstartedsourcedist.html
using CruiseControl 2.8.4 on Ubuntu linux and didn't have any problems.

I re-read your email and it is not clear to me what the exact errors 
where: You mention an error building 'main', yet the error you post 
comes from 'reporting/jsp'.

Is it possible you did not build 'main' first? The order is important, 
you must build 'main' before building 'reporting/jsp' or 
'reporting/dashboard'.

Dan



On 05/23/2011 07:34 PM, Dan Rollo wrote:
>
> Hi,
>
> I know our CI build of CruiseControl itself does not actually exercise
> those build steps from the 'src' jar mentioned here:
> http://cruisecontrol.sourceforge.net/gettingstartedsourcedist.html
> That is probably why these instructions have become out dated.
>
> We should either fix the docs (and/or steps), or we should change the
> docs to suggest building the source from subversion.
>
>
> If you want to build from source, I would suggest you first try checking
> out the project from subversion (see:
> http://cruisecontrol.sourceforge.net/svn.html), and try running either
> the release.bat/.sh or 'ant' from the root directory (eg: from the
> parent directory containing main and reporting, etc).
> If these work, that verifies a baseline for you environment. From there,
> we can work on fixing the build steps if desired.
>
> (I've always been a little unsure that trying to build from the bundled
> 'src' file has any advantage over building from the subversion checkout.)
>
> Dan
>
>
>
> From: "Bal Krishna Shrestha" <[email protected]>
> Subject: [Cruisecontrol-user] problem while building cruise control
> To: <[email protected]>
>
> Hi,
>
> Warm Greetings to you all.
>
>
>
> In my system I have following package install for cruisecontrol
>
>
>
> OS - CentOS 5.5
>
> Php - php5.3.6 (source distribution)
>
> Mysql - mysql-5.0.77 (installed with yum)
>
> Apache - httpd-2.2.3 (installed with yum)
>
> Jdk - java version "1.6.0_25" (download java_ee_sdk-6u2-jdk-linux.sh
> from sun java)
>
> Ant -ant-1.8.0 (Apache Ant version 1.8.0 bin file)
>
> Junit -junit-3.8.2-3jpp.1 (junit install with yum)
>
> Cruisecontrol - cruisecontrol-2.7.1 (src, using src file b/c bin files
> only work with sample file connectfour as it is mention in site as -- This
> Binary Distribution is a trimmed down version of the Source
> Distribution. It
> is fully functional and intended to work with a sample project - the game
> Connect Four - "out of the box". Site :
> http://cruisecontrol.sourceforge.net/gettingstartedbindist.html)
>
>
>
>
>
>
>
> Following is steps I did to build ant with cruisecontrol
>
>
>
> I used latest version (2.8.4) cruise control but it give error when build
> ant in INSTALL_DIR/main . just run 'ant' command in INSTALL_DIR/main it
> give
> error
>
> Following the last lines with build failed while building ant with cruise
> control
>
>
>
> jsp-precompile:
>
> [mkdir] Created dir:
> /opt/cruisecontrol-2.8.4/reporting/jsp/target/jsp-precompile/exploded-war
>
> [unzip] Expanding:
> /opt/cruisecontrol-2.8.4/reporting/jsp/dist/cruisecontrol.war into
> /opt/cruisecontrol-2.8.4/reporting/jsp/target/jsp-precompile/exploded-war
>
> [mkdir] Created dir:
> /opt/cruisecontrol-2.8.4/reporting/jsp/target/jsp-precompile/src
>
>
>
> BUILD FAILED
>
> /opt/cruisecontrol-2.8.4/build.xml:39: The following error occurred while
> executing this line:
>
> /opt/cruisecontrol-2.8.4/reporting/jsp/build.xml:206: jasper2 doesn't
> support the "listerrors" attribute
>
>
>
>
>
> Moving lower version and building cruisecontrol
>
>
>
> 1. Then I moved to lower version 2.7.1 , ant successfully build with
> cruisecontrol in INSTALL_DIR/main,
>
> Following the last lines with build failed while building ant with cruise
> control
>
>
>
> jar:
>
> [jar] Building jar: /opt/cc/main/dist/cruisecontrol.jar
>
> [jar] Building jar: /opt/cc/main/dist/cruisecontrol-launcher.jar
>
> [jar] Building jar:
> /opt/cc/main/dist/cruisecontrol-antprogresslogger.jar
>
>
>
> all:
>
>
>
> clean-all:
>
>
>
> BUILD SUCCESSFUL
>
> Total time: 55 seconds
>
>
>
>
>
>
>
>
>
>
>
> 2. After this build ant with cruisecontrol in
> INSTALL_DIR/reporting/jsp/ it give error
>
>
>
> While building I give following input as it asked for input path for
> directory
>
>
>
> -set.log.dir:
>
> [input] WARNING! Property user.log.dir not set! Please enter the
> absolute path to the CruiseControl logs directory:
>
> /var/logs/cruisecontrol/
>
>
>
>
>
> -set.status.file:
>
> [input] WARNING! Property user.build.status.file not set! Please enter
> the name of the current build status file:
>
> /opt/cc/reporting/jsp/webcontent/WEB-INF/web.xml
>
>
>
>
> -set.artifacts.dir:
>
> [input] WARNING! Property cruise.build.artifacts.dir not set! Please
> enter the absolute path to the directory where additional build artifacts
> are stored:
>
> /opt/cc/reporting/dashboard/test/data/arbitrary_artifacts/artifacts/
>
>
>
>
>
> After this it show following build message
>
>
>
> jsp-precompile:
>
> [mkdir] Created dir:
> /opt/cc/reporting/jsp/target/jsp-precompile/exploded-war
>
> [unzip] Expanding: /opt/cc/reporting/jsp/dist/cruisecontrol.war into
> /opt/cc/reporting/jsp/target/jsp-precompile/exploded-war
>
> [mkdir] Created dir: /opt/cc/reporting/jsp/target/jsp-precompile/src
>
>
>
> BUILD FAILED
>
> /opt/cc/reporting/jsp/build.xml:236: jasper2 doesn't support the
> "listerrors" attribute
>
>
>
> Then I disable the line of listerrors in file jsp/build.xml as commenting
> following lines
>
>
>
> <jasper2 compile="true" outputdir="${basedir}/target/jsp-precompile/src"
>
> listerrors="false" validatexml="true" verbose="2"
>
> uriroot="${basedir}/target/jsp-precompile/exploded-war"/>
>
>
>
>
>
> again I build with command "ant"
>
> with same input as above while building.
>
>
>
> Following the last lines with build failed while building ant with cruise
> control
>
>
>
>
>
> jsp-precompile:
>
> [mkdir] Created dir:
> /opt/cc/reporting/jsp/target/jsp-precompile/exploded-war
>
> [unzip] Expanding: /opt/cc/reporting/jsp/dist/cruisecontrol.war into
> /opt/cc/reporting/jsp/target/jsp-precompile/exploded-war
>
> [mkdir] Created dir: /opt/cc/reporting/jsp/target/jsp-precompile/src
>
>
>
> all:
>
>
>
> clean-all:
>
>
>
> BUILD SUCCESSFUL
>
> Total time: 1 minute 4 seconds
>
>
>
>
>
>
>
>
>
> 3. Now build ant in INSTALL_DIR/reporting/dashboard directory
>
> Build fail with following last lines message
>
>
>
>
>
>
>
> -unit-tests:
>
> [mkdir] Created dir: /opt/cc/reporting/dashboard/target/reports
>
> [mkdir] Created dir:
> /opt/cc/reporting/dashboard/target/classes/test/build
>
> [junit] WARNING: multiple versions of ant detected in path for junit
>
> [junit]
> jar:file:/opt/ant/lib/ant.jar!/org/apache/tools/ant/Project.class
>
> [junit] and
>
jar:file:/opt/cc/reporting/dashboard/lib/ant.jar!/org/apache/tools/ant/Proje
>
> ct.class
>
> [junit] Running net.sourceforge.cruisecontrol.dashboard.BuildDetailTest
>
> [junit] Testsuite:
> net.sourceforge.cruisecontrol.dashboard.BuildDetailTest
>
> [junit] Tests run: 9, Failures: 1, Errors: 0, Time elapsed: 0.425 sec
>
> [junit] Tests run: 9, Failures: 1, Errors: 0, Time elapsed: 0.425 sec
>
> [junit]
>
> [junit] Testcase:
>
testShouldGetArtifactsInSubDirectories(net.sourceforge.cruisecontrol.dashboa
>
> rd.BuildDetailTest): FAILED
>
> [junit] expected:<4> but was:<0>
>
> [junit] junit.framework.AssertionFailedError: expected:<4> but was:<0>
>
> [junit] at
>
net.sourceforge.cruisecontrol.dashboard.BuildDetailTest.testShouldGetArtifac
>
> tsInSubDirectories(BuildDetailTest.java:178)
>
> [junit]
>
> [junit]
>
>
>
> BUILD FAILED
>
> /opt/cc/reporting/dashboard/build.xml:160: Tests failed
>
>
>
>
>
>
>
> Then I changed the values 4 to 0 in line "assertEquals(4,
> artifactNames.size());" of class "testShouldGetArtifactsInSubDirectories"
> in file
> test/unit/net/sourceforge/cruisecontrol/dashboard/BuildDetailTest.java
>
>
>
> After changing the value from 4 to 0 it give following build fail error
>
>
>
>
>
> -unit-tests:
>
> [mkdir] Created dir: /opt/cc/reporting/dashboard/target/reports
>
> [mkdir] Created dir:
> /opt/cc/reporting/dashboard/target/classes/test/build
>
> [junit] WARNING: multiple versions of ant detected in path for junit
>
> [junit]
> jar:file:/opt/ant/lib/ant.jar!/org/apache/tools/ant/Project.class
>
> [junit] and
>
jar:file:/opt/cc/reporting/dashboard/lib/ant.jar!/org/apache/tools/ant/Proje
>
> ct.class
>
> [junit] Running net.sourceforge.cruisecontrol.dashboard.BuildDetailTest
>
> [junit] Testsuite:
> net.sourceforge.cruisecontrol.dashboard.BuildDetailTest
>
> [junit] Tests run: 9, Failures: 1, Errors: 0, Time elapsed: 0.524 sec
>
> [junit] Tests run: 9, Failures: 1, Errors: 0, Time elapsed: 0.524 sec
>
> [junit]
>
> [junit] Testcase:
>
testShouldGetArtifactsInSubDirectories(net.sourceforge.cruisecontrol.dashboa
>
> rd.BuildDetailTest): FAILED
>
> [junit] null
>
> [junit] junit.framework.AssertionFailedError
>
> [junit] at
>
net.sourceforge.cruisecontrol.dashboard.BuildDetailTest.testShouldGetArtifac
>
> tsInSubDirectories(BuildDetailTest.java:179)
>
> [junit]
>
> [junit]
>
>
>
> BUILD FAILED
>
> /opt/cc/reporting/dashboard/build.xml:160: Tests failed
>
>
>
>
>
>
>
>
>
> This is my situation and cannot build cruisecontrol
>
>
>
> Can you please suggest me what I am missing in above steps that make build
> failed while build cruise control, If lack of any steps or package, please
> suggest me
>
>
>
> Hoping to get solution from you
>
>
>
> It is very important for me to solve this problem.
>
>
>
> I tried many ways that is found in different sites while googled, but
> results is still same, build failed.
>
> Can you please provide me the right way to build cruisecontrol with source
> package.
>
>
>
>
>
> Thank you
>
>
>
>
>
>
>
> Kindly Regards,
>
> Bal Krishna Shrestha
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


----------------------------------------------------------------------------
--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user


------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.