CruiseControl throwing Exception when Adding a new project

Harsh Kumar <[email protected]> Sat, 25 Feb 2012 16:17:35 +0530
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <CAMGaozvLo6YtVdod+nBFp0Sh1xBnvV+vqp0Lj_JvmODugyxYDA@mail.gmail.com>
Hi,
I am absolutely new to CruiseControl so do pardon me if i ask here some
pretty silly questions. I have spent quite a bit of bit "Googling" and
"Binging" it and i was just not able to figure it out and hence i thought i
would drop in a mail to you guys, just in-case if somebody can help me out.
Questions:
1. I installed CruiseControl and opened the config.xml and added my
project. Now when i run cruisecontrol.bat its throwing me exception. When i
remove the part which i wrote it just works fine. I am attaching here a
list with my mail my config.xml and also the output of exceltion which i
get. Can somebody please point out to me my mistake.

*Note: I am using CruiseControl 2.8.4

Regards,
Harsh Kumar

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
config.xml (text/xml, 3.2 KB)
<cruisecontrol>
	
    <project name="connectfour">

        <listeners>
            <currentbuildstatuslistener file="logs/${project.name}/status.txt"/>
        </listeners>
        <bootstrappers>
            <antbootstrapper anthome="apache-ant-1.7.0" buildfile="projects/${project.name}/build.xml" target="clean" />
        </bootstrappers>
        <modificationset quietperiod="30">
            <!-- touch any file in connectfour project to trigger a build -->
            <filesystem folder="projects/${project.name}"/>
        </modificationset>
        <schedule interval="300">
            <ant anthome="apache-ant-1.7.0" buildfile="projects/${project.name}/build.xml"/>
        </schedule>
        <log>
            <merge dir="projects/${project.name}/target/test-results"/>
        </log>
        <publishers>
            <onsuccess>
                <artifactspublisher dest="artifacts/${project.name}" file="projects/${project.name}/target/${project.name}.jar"/>
            </onsuccess>
        </publishers>
    </project>
	
	<project name="RA1000-Bachadeus forceBuildNewProject="true" requireModification="false" forceOnly="true">
	
		<property name="build_view" value="M:\fz015815_view6" />
		<property name="branch" value="cpacs_integ_blr" />
		<property name="log_dir" value="C:\CruiseControl\logs\${project.name}" />
		<property name="CC_HOME" value="C:\CruiseControl" />
		<property name="ant_home" value="${CC_HOME}\apache-ant-1.7.0" />
		<property name="target" value="${CC_HOME}\projects\${project.name}\target" />
		<property name="c_temp_dir" value="C:\Temp" />
		<listeners>
			<currentbuildstatuslistener file="${log_dir}/status.txt" />
		</listners>
		
		<bootstrappers>
			<clearcaseviewstrapper viewpath="${build_view}" voblist="\workstation,\rumba,\cws,\cws_devtools,\cws_dist,\cws_docs,\cws_pt,\cws_support,\comp"/>
		<bootstrappers>
		
		<modificationset quietperiod="60" ignoreFiles="*.jar,*properties">
			<clearcase branch="${branch}" viewpath="${build_view}\cws" recursive="true"/>
			<clearcase branch="${branch}" viewpath="${build_view}\rumba" recursive="true"/>
			<clearcase branch="${branch}" viewpath="${build_view}\workstation" recursive="true"/>
			<clearcase branch="${branch}" viewpath="${build_view}\cws_pt" recursive="true"/>
			<clearcase branch="${branch}" viewpath="${build_view}\cws_dist" recursive="true"/>
			<clearcase branch="${branch}" viewpath="${build_view}\cws_support" recursive="true"/>
		</modificationset>
		
		<schedule interval="1800">
			<composite>
			
				<!-- Checkout JAR Files -->
				<ant anthome="${anthome}" buildfile="${build_view}\\rumba\\src\\ant\\compile-pacs.xml">
					<property name="RA1000_VIEW" value="${build_view}" />
				</ant>
				
				<!-- Clean Build Directory -->
				<ant anthome="${anthome}" buildfile="${build_view}\\rumba\\src\\ant\\compile-pacs.xml">
					<property name="BUILD_LOC" value="${target}" />
					<property name="RA1000_VIEW" value="${build_view}" />
					<property name="VIEW_PATH" value="${build_view}" />
					<property name="lib.dist" value="${c_temp_dir}" />
					<property name="build.number" value="${label}" />
					
				</ant>
			</composite>
		</schedule>
		
		<publishers>
		
		</publishers>
		
	</project>
</cruisecontrol>
Error.log (application/octet-stream, 8.7 KB)
"C:\Program Files\Java\jdk1.6.0_23\bin\java" -Xms128m -Xmx256m -Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder "-Djetty.logs=logs" -jar "C:\CruiseControl\lib\cruisecontrol-launcher.jar"  -jmxport 8000 -webport 8080 -rmiport 1099
WARNING: cc.home reset to C:\CruiseControl
Classpath: C:\CruiseControl\lib\cruisecontrol-launcher.jar;C:\CruiseControl\lib\activation.jar;C:\CruiseControl\lib\ant-launcher.jar;C:\CruiseControl\lib\ant.jar;C:\CruiseControl\lib\aspirin-0.8.3.jar;C:\CruiseControl\lib\aspirin.jar;C:\CruiseControl\lib\comm.jar;C:\CruiseControl\lib\commons-codec-1.3.jar;C:\CruiseControl\lib\commons-httpclient-3.0.1.jar;C:\CruiseControl\lib\commons-logging.jar;C:\CruiseControl\lib\commons-net-1.1.0.jar;C:\CruiseControl\lib\commons-pool-1.5.4.jar;C:\CruiseControl\lib\commons-validator-1.3.1.jar;C:\CruiseControl\lib\core-3.1.1.jar;C:\CruiseControl\lib\cruisecontrol-antprogresslogger.jar;C:\CruiseControl\lib\cruisecontrol-launcher.jar;C:\CruiseControl\lib\cruisecontrol.jar;C:\CruiseControl\lib\dnsjava-2.0.8.jar;C:\CruiseControl\lib\emma.jar;C:\CruiseControl\lib\emma_ant.jar;C:\CruiseControl\lib\fast-md5.jar;C:\CruiseControl\lib\ivy-2.0.0-beta2.jar;C:\CruiseControl\lib\jakarta-oro-2.0.8.jar;C:\CruiseControl\lib\jaxen-1.1-beta-8.jar;C:\CruiseControl\lib\jdom.jar;C:\CruiseControl\lib\jetty-6.1.11.jar;C:\CruiseControl\lib\jetty-ajp-6.1.11.jar;C:\CruiseControl\lib\jetty-util-6.1.11.jar;C:\CruiseControl\lib\jsp-2.1.jar;C:\CruiseControl\lib\jsp-api-2.1.jar;C:\CruiseControl\lib\jug-lgpl-2.0.0.jar;C:\CruiseControl\lib\junit-4.4.jar;C:\CruiseControl\lib\log4j.jar;C:\CruiseControl\lib\mail.jar;C:\CruiseControl\lib\maven-embedder-2.0.4-dep.jar;C:\CruiseControl\lib\mx4j-remote.jar;C:\CruiseControl\lib\mx4j-tools.jar;C:\CruiseControl\lib\mx4j.jar;C:\CruiseControl\lib\saxon9-dom.jar;C:\CruiseControl\lib\saxon9.jar;C:\CruiseControl\lib\serializer-2.7.0.jar;C:\CruiseControl\lib\servlet-api-2.5-6.1.11.jar;C:\CruiseControl\lib\smack.jar;C:\CruiseControl\lib\smackx.jar;C:\CruiseControl\lib\twitter4j-1.1.4.jar;C:\CruiseControl\lib\velocity-1.5.jar;C:\CruiseControl\lib\velocity-dep-1.5.jar;C:\CruiseControl\lib\x10.jar;C:\CruiseControl\lib\xercesImpl-2.8.0.jar;C:\CruiseControl\lib\xml-apis-2.8.0.jar;C:\CruiseControl\lib\xmlrpc-2.0.1.jar;C:\CruiseControl\lib\xpp3_min-1.1.3.4.O.jar;C:\CruiseControl\lib\xstream-1.2.2.jar;C:\CruiseControl\lib\activation.jar;C:\CruiseControl\lib\ant-launcher.jar;C:\CruiseControl\lib\ant.jar;C:\CruiseControl\lib\aspirin-0.8.3.jar;C:\CruiseControl\lib\aspirin.jar;C:\CruiseControl\lib\comm.jar;C:\CruiseControl\lib\commons-codec-1.3.jar;C:\CruiseControl\lib\commons-httpclient-3.0.1.jar;C:\CruiseControl\lib\commons-logging.jar;C:\CruiseControl\lib\commons-net-1.1.0.jar;C:\CruiseControl\lib\commons-pool-1.5.4.jar;C:\CruiseControl\lib\commons-validator-1.3.1.jar;C:\CruiseControl\lib\core-3.1.1.jar;C:\CruiseControl\lib\cruisecontrol-antprogresslogger.jar;C:\CruiseControl\lib\cruisecontrol-launcher.jar;C:\CruiseControl\lib\cruisecontrol.jar;C:\CruiseControl\lib\dnsjava-2.0.8.jar;C:\CruiseControl\lib\emma.jar;C:\CruiseControl\lib\emma_ant.jar;C:\CruiseControl\lib\fast-md5.jar;C:\CruiseControl\lib\ivy-2.0.0-beta2.jar;C:\CruiseControl\lib\jakarta-oro-2.0.8.jar;C:\CruiseControl\lib\jaxen-1.1-beta-8.jar;C:\CruiseControl\lib\jdom.jar;C:\CruiseControl\lib\jetty-6.1.11.jar;C:\CruiseControl\lib\jetty-ajp-6.1.11.jar;C:\CruiseControl\lib\jetty-util-6.1.11.jar;C:\CruiseControl\lib\jsp-2.1.jar;C:\CruiseControl\lib\jsp-api-2.1.jar;C:\CruiseControl\lib\jug-lgpl-2.0.0.jar;C:\CruiseControl\lib\junit-4.4.jar;C:\CruiseControl\lib\log4j.jar;C:\CruiseControl\lib\mail.jar;C:\CruiseControl\lib\maven-embedder-2.0.4-dep.jar;C:\CruiseControl\lib\mx4j-remote.jar;C:\CruiseControl\lib\mx4j-tools.jar;C:\CruiseControl\lib\mx4j.jar;C:\CruiseControl\lib\saxon9-dom.jar;C:\CruiseControl\lib\saxon9.jar;C:\CruiseControl\lib\serializer-2.7.0.jar;C:\CruiseControl\lib\servlet-api-2.5-6.1.11.jar;C:\CruiseControl\lib\smack.jar;C:\CruiseControl\lib\smackx.jar;C:\CruiseControl\lib\twitter4j-1.1.4.jar;C:\CruiseControl\lib\velocity-1.5.jar;C:\CruiseControl\lib\velocity-dep-1.5.jar;C:\CruiseControl\lib\x10.jar;C:\CruiseControl\lib\xercesImpl-2.8.0.jar;C:\CruiseControl\lib\xml-apis-2.8.0.jar;C:\CruiseControl\lib\xmlrpc-2.0.1.jar;C:\CruiseControl\lib\xpp3_min-1.1.3.4.O.jar;C:\CruiseControl\lib\xstream-1.2.2.jar;C:\Program Files\Java\jdk1.6.0_23\lib\tools.jar;.;C:\CruiseControl\
[cc]Feb-25 16:11:16 Main          - CruiseControl Version 2.8.4 Compiled on September 15 2010 1952
[cc]Feb-25 16:11:16 LConfigManager- reading settings from config file [C:\CruiseControl\config.xml]
[cc]Feb-25 16:11:17 Main          - error setting config file on controller
net.sourceforge.cruisecontrol.CruiseControlException: failed to load file [config.xml]
	at net.sourceforge.cruisecontrol.util.Util.loadRootElement(Util.java:67)
	at net.sourceforge.cruisecontrol.config.XMLConfigManager.loadConfig(XMLConfigManager.java:88)
	at net.sourceforge.cruisecontrol.config.XMLConfigManager.<init>(XMLConfigManager.java:82)
	at net.sourceforge.cruisecontrol.CruiseControlController.setConfigFile(CruiseControlController.java:93)
	at net.sourceforge.cruisecontrol.Main.createController(Main.java:146)
	at net.sourceforge.cruisecontrol.Main.start(Main.java:113)
	at net.sourceforge.cruisecontrol.launch.Launcher.run(Launcher.java:259)
	at net.sourceforge.cruisecontrol.launch.Launcher.main(Launcher.java:117)
Caused by: org.jdom.input.JDOMParseException: Error on line 28 of document file:/C:/CruiseControl/config.xml: Element type "project" must be followed by either attribute specifications, ">" or "/>".
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:465)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:810)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:789)
	at net.sourceforge.cruisecontrol.util.Util.loadRootElement(Util.java:65)
	... 7 more
Caused by: org.xml.sax.SAXParseException: Element type "project" must be followed by either attribute specifications, ">" or "/>".
	at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
	at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
	at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
	... 10 more
[cc]Feb-25 16:11:17 Main          - failed to load file [config.xml]

Usage:

Starts a continuous integration loop

cruisecontrol [options]

Build loop options are:

  -configfile file     configuration file; default config.xml
  -debug               set logging level to DEBUG
  -log4jconfig url     URL to a log4j config (example: "file:/c:/mylog4j.xml")
  -? or -help          print this usage message

Options when using JMX
  Note: JMX server only started if -jmxport and/or -rmiport specified
  -jmxport [number]       port of the JMX HttpAdapter; default 8000
  -rmiport [number]       RMI port of the Controller; default 1099
  -user username          username for HttpAdapter; default no login required
  -password pwd           password for HttpAdapter; default no login required
  -xslpath directory      location of jmx xsl files; default files in package
  -agentutil [true/false] load JMX Build Agent utility; default is true

Options when using embedded Jetty
  -webport [number]       port for the Reporting website; default 8080, removing
                          this propery will make cruisecontrol start without Jetty
  -jettyxml file          Jetty configuration xml. Defaults to jetty.xml
  -postenabled enabled    switch of posting current build information to dashboard
                          default is true
  -dashboardurl url       the url for dashboard (used for posting build information)
                          default is http://localhost:8080/dashboard
  -postinterval interval  how frequently build information will be posted to dashboard
                          default is 5 (in seconds).
  -ccname name            A logical name which will be displayed in the
                          Reporting Application's status page.