Getting Started
Luke Briner <[email protected]> Mon, 12 Sep 2011 15:19:31 +0100
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <CAGw=R6JHpgTa48ZwywcUQW3MPOZL+wPBkmm0M9vf=XUWBhNXgQ@mail.gmail.com> |
Attempting to get CC up and running on a Windows 7 Desktop. I want to try
distributed builds so have downloaded the source and tried to follow the
getting started guide here:
http://confluence.public.thoughtworks.org/display/CC/GettingStarted but I
cannot get past the initial build of main/build.bat I get errors in the unit
tests but if I try to run ant -Dtest.skip=true, the unit tests are still run
and it still fails meaning I can't carry on. I looked in the build.xml and
it looks like this skip flag is for older deprecated targets which would
explain why it doesn't work.
I tried running the build.bat in main (as per the instructions on the web
site) and then using ant, I tried the one in the INSTALL_DIR both with the
skip and test still failed. The output is below.
Is this a real error that I need to fix or is it simply a problem with the
install scripts?
Thanks
lib/ant/ant-launcher.jar
Using Javac!
Buildfile: build.xml
--clean:
[delete] Deleting directory D:\cruisecontrol\ccmain\main\target
-clean:
clean:
[delete] Deleting directory D:\cruisecontrol\ccmain\main\dist
clean:
[delete] Deleting directory D:\cruisecontrol\ccmain\main\loggers\target
checklabel:
[echo] Java: 1.7.0 (Java HotSpot(TM) 64-Bit Server VM)
[echo] in C:\Program Files\Java\jdk1.7.0\jre
[echo] Ant: Apache Ant version 1.7.0 compiled on December 13 2006
[echo] in D:\cruisecontrol\ccmain\main\lib
[echo] CruiseControl: 2.8.4
--compile-init:
[mkdir] Created dir: D:\cruisecontrol\ccmain\main\target\classes
--javadoc-init:
[mkdir] Created dir: D:\cruisecontrol\ccmain\main\target\javadoc
--package-init:
[mkdir] Created dir: D:\cruisecontrol\ccmain\main\dist
--test-init:
--test-unit-init:
[mkdir] Created dir: D:\cruisecontrol\ccmain\main\target\test-classes
[mkdir] Created dir: D:\cruisecontrol\ccmain\main\target\test-results
[mkdir] Created dir: D:\cruisecontrol\ccmain\main\target\reports
init:
[mkdir] Created dir: D:\cruisecontrol\ccmain\main\target\tmp
[mkdir] Created dir: D:\cruisecontrol\ccmain\main\target\emma-results
logger.jar:
clean:
compile:
[mkdir] Created dir: D:\cruisecontrol\ccmain\main\loggers\target\classes
[javac] Compiling 4 source files to
D:\cruisecontrol\ccmain\main\loggers\target\classes
[javac] warning: [options] bootstrap class path not set in conjunction
with -source 1.4
[javac] 1 warning
[mkdir] Created dir:
D:\cruisecontrol\ccmain\main\loggers\target\test-classes
[javac] Compiling 1 source file to
D:\cruisecontrol\ccmain\main\loggers\target\test-classes
[javac] warning: [options] bootstrap class path not set in conjunction
with -source 1.4
[javac] 1 warning
test:
[mkdir] Created dir:
D:\cruisecontrol\ccmain\main\loggers\target\test-results
[junit] Running
net.sourceforge.cruisecontrol.builders.AntOutputLoggerTest
[junit] Testsuite:
net.sourceforge.cruisecontrol.builders.AntOutputLoggerTest
[junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.067 sec
[junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.067 sec
[junit]
[mkdir] Created dir:
D:\cruisecontrol\ccmain\main\loggers\target\test-report
[junitreport] Processing
D:\cruisecontrol\ccmain\main\loggers\target\test-report\TESTS-TestSuites.xml
to C:\Users\lbriner\AppData\Local\Temp\null2090956770
[junitreport] Loading stylesheet
jar:file:/D:/cruisecontrol/ccmain/main/lib/ant/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] Transform time: 366ms
[junitreport] Deleting: C:\Users\lbriner\AppData\Local\Temp\null2090956770
initVersionInfo:
jar:
[mkdir] Created dir: D:\cruisecontrol\ccmain\main\loggers\target\dist
[jar] Building jar:
D:\cruisecontrol\ccmain\main\loggers\target\dist\cruisecontrol-antprogresslogger.jar
dist:
[copy] Copying 1 file to D:\cruisecontrol\ccmain\main\dist
--compile:
[javac] Compiling 295 source files to
D:\cruisecontrol\ccmain\main\target\classes
[javac] warning: [options] bootstrap class path not set in conjunction
with -source 1.5
[javac] Note:
D:\cruisecontrol\ccmain\main\src\net\sourceforge\cruisecontrol\CruiseControlConfig.java
uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 1 warning
--compile-copy-resources:
[copy] Copying 3 files to D:\cruisecontrol\ccmain\main\target\classes
[copy] Copying 2 files to D:\cruisecontrol\ccmain\main\target\classes
-compile:
compile:
--test-functional-init:
[mkdir] Created dir:
D:\cruisecontrol\ccmain\main\target\test\functional\results
[mkdir] Created dir:
D:\cruisecontrol\ccmain\main\target\reports-functional
--test-functional-compile:
[javac] Compiling 1 source file to
D:\cruisecontrol\ccmain\main\target\test-classes
[javac] warning: [options] bootstrap class path not set in conjunction
with -source 1.5
[javac] 1 warning
--test-functional-copy-resources:
[copy] Copying 1 file to
D:\cruisecontrol\ccmain\main\target\test-classes
--test-functional:
[junit] Running
net.sourceforge.cruisecontrol.functionaltest.BuildLoopMonitorTest
[junit] Testsuite:
net.sourceforge.cruisecontrol.functionaltest.BuildLoopMonitorTest
[junit] ---- Debugging information ----
[junit] message : Cannot construct
net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a
no-args constructor
[junit] cause-exception :
com.thoughtworks.xstream.converters.reflection.ObjectAccessException
[junit] cause-message : Cannot construct
net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a
no-args constructor
[junit] class :
net.sourceforge.cruisecontrol.BuildLoopInformation
[junit] required-type :
net.sourceforge.cruisecontrol.BuildLoopInformation
[junit] path : /buildloop
[junit] line number : 1
[junit] -------------------------------)
[junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 0.587 sec
[junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 0.587 sec
[junit]
[junit] ------------- Standard Output ---------------
[junit] [cc]Sep-12 15:19:08 atusReportTask- Failed to reach dashboard
instance : http://localhost:3333/, either the dashboard has not started up
or there is a network problem.
[junit] java.net.SocketTimeoutException: Read timed out
[junit] at java.net.SocketInputStream.socketRead0(Native Method)
[junit] at java.net.SocketInputStream.read(SocketInputStream.java:150)
[junit] at java.net.SocketInputStream.read(SocketInputStream.java:121)
[junit] at
java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
[junit] at
java.io.BufferedInputStream.read(BufferedInputStream.java:254)
[junit] at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
[junit] at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
[junit] at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
[junit] at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
[junit] at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
[junit] at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
[junit] at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
[junit] at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
[junit] at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
[junit] at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
[junit] at
net.sourceforge.cruisecontrol.report.BuildLoopStatusReportTask.run(BuildLoopStatusReportTask.java:90)
[junit] at
net.sourceforge.cruisecontrol.report.BuildLoopStatusReportTask.run(BuildLoopStatusReportTask.java:75)
[junit] at java.util.TimerThread.mainLoop(Timer.java:555)
[junit] at java.util.TimerThread.run(Timer.java:505)
[junit] [cc]Sep-12 15:19:08 atusReportTask- Failed to reach dashboard
instance : http://localhost:3333/, either the dashboard has not started up
or there is a network problem.
[junit] java.net.SocketTimeoutException: Read timed out
[junit] at java.net.SocketInputStream.socketRead0(Native Method)
[junit] at java.net.SocketInputStream.read(SocketInputStream.java:150)
[junit] at java.net.SocketInputStream.read(SocketInputStream.java:121)
[junit] at
java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
[junit] at
java.io.BufferedInputStream.read(BufferedInputStream.java:254)
[junit] at
org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
[junit] at
org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
[junit] at
org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
[junit] at
org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
[junit] at
org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
[junit] at
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
[junit] at
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
[junit] at
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
[junit] at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
[junit] at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
[junit] at
net.sourceforge.cruisecontrol.report.BuildLoopStatusReportTask.run(BuildLoopStatusReportTask.java:90)
[junit] at
net.sourceforge.cruisecontrol.report.BuildLoopStatusReportTask.run(BuildLoopStatusReportTask.java:75)
[junit] at java.util.TimerThread.mainLoop(Timer.java:555)
[junit] at java.util.TimerThread.run(Timer.java:505)
[junit] ------------- ---------------- ---------------
[junit] Testcase:
testShouldPublishXmlInCertainFormat(net.sourceforge.cruisecontrol.functionaltest.BuildLoopMonitorTest):
Caused
an ERROR
[junit] Cannot construct
net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a
no-args constructor
[junit] ---- Debugging information ----
[junit] message : Cannot construct
net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a
no-args constructor
[junit] cause-exception :
com.thoughtworks.xstream.converters.reflection.ObjectAccessException
[junit] cause-message : Cannot construct
net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a
no-args constructor
[junit] class :
net.sourceforge.cruisecontrol.BuildLoopInformation
[junit] required-type :
net.sourceforge.cruisecontrol.BuildLoopInformation
[junit] path : /buildloop
[junit] line number : 1
[junit] -------------------------------
[junit] com.thoughtworks.xstream.converters.ConversionException: Cannot
construct net.sourceforge.cruisecontrol.BuildLoopInformation as it does not
have a no-args constructor
[junit] ---- Debugging information ----
[junit] message : Cannot construct
net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a
no-args constructor
[junit] cause-exception :
com.thoughtworks.xstream.converters.reflection.ObjectAccessException
[junit] cause-message : Cannot construct
net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a
no-args constructor
[junit] class :
net.sourceforge.cruisecontrol.BuildLoopInformation
[junit] required-type :
net.sourceforge.cruisecontrol.BuildLoopInformation
[junit] path : /buildloop
[junit] line number : 1
[junit] -------------------------------
[junit] at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63)
[junit] at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
[junit] at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46)
[junit] at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117)
[junit] at
com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29)
[junit] at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:846)
[junit] at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:833)
[junit] at com.thoughtworks.xstream.XStream.fromXML(XStream.java:781)
[junit] at com.thoughtworks.xstream.XStream.fromXML(XStream.java:773)
[junit] at
net.sourceforge.cruisecontrol.util.BuildInformationHelper.toObject(BuildInformationHelper.java:32)
[junit] at
net.sourceforge.cruisecontrol.functionaltest.BuildLoopMonitorTest.testShouldPublishXmlInCertainFormat(BuildLoopMonitorTest.java:130)
[junit] Caused by:
com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot
construct net.sourceforge.cruisecontrol.BuildLoopInformation as it does not
have a no-args constructor
[junit] at
com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:59)
[junit] at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:257)
[junit] at
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:124)
[junit] at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:56)
[junit]
[junit]
BUILD FAILED
D:\cruisecontrol\ccmain\.ant-scripts\build-test.xml:34: Test
net.sourceforge.cruisecontrol.functionaltest.BuildLoopMonitorTest failed
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user