Having trouble getting "XML Log File" and "Build Artifacts" to work

Roger André <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
Hi All,

Just recently started using Cruisecontrol to manage our nightly
builds.  It's doing a great job of checking the SVN repo every night
and building the code when changes have been checked in, but I'm
having some trouble getting a few of the functions in the JSP
reporting app to work.  I am using cruisecontrol-2.8.2, jdk1.5.0_17,
and tomcat5 on a CentOS 5.2 machine

Specifically, I have the following problems:
----------
1. When I click on the "XML Log File" button at the top of the page, I
get a "HTTP Status 500" page that tells me there was some sort of Java
exception.  The catalina.out log tells me that:

6-Mar-09 2:13:28 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet LogServlet
java.lang.NoSuchMethodError: method java.util.Collections.emptyList
with signature ()Ljava.util.List; was not found.

My config.xml file has the <log> parameter set to
"logs/${project.name}", and the htmlemail publisher that I have setup
has the logdir set to logdir="logs/${project.name}">.  I have checked
that I have log files being generated in
"/var/cruisecontrol/logs/{$project.name}.  My web.xml file has the
following entries; "<param-name>logDir</param-name>",
"<param-value>/var/cruisecontrol/logs</param-value>"
---------
2. When I click on the "Build Artifacts" button, I also get a "Status
500" html page, and the catalina.out file has the same error type
logged:

6-Mar-09 2:30:28 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet ArtifactServlet
java.lang.NoSuchMethodError: method java.util.Collections.emptyList
with signature ()Ljava.util.List; was not found.

I have an <artifactpublisher> entry in my config.xml that has the
following in it:

      <artifactspublisher
        dir="build_output/${project.name}"
        dest="artifacts/${project.name}"/>

And a /var/cruisecontrol/build_output/${project_name} directory (which
is empty), and a /var/cruisecontrol/artifacts/${project_name} dir
which contains many date-stamped directories - all of which are also
empty.
----------

The worst aspect of this is that clicking on these buttons has the
nasty habit of occasionally causing Tomcat to crash.  I'm not sure
what I should be seeing when I click on these buttons, and perhaps
there actually is nothing to be seen?

An additional issue is that I would like to actually see in the build
reports a copy of the information whic is currently being sent out to
the cruisecontrol.log file, as it actually traps the reasons for build
errors, when they occur.  That info looks something like this below:

[cc]Mar-06 14:38:14 Project       - Project ttbuild-test-package:
waiting for next time to build
[cc]Mar-06 14:40:14 Project       - Project ttbuild-test-package:  in
build queue
[cc]Mar-06 14:40:14 BuildQueue    - now adding to the thread queue:
ttbuild-test-package
[cc]Mar-06 14:40:14 Project       - Project ttbuild-test-package:  bootstrapping
[cc]Mar-06 14:40:14 VNBootstrapper- At revision 9.
[cc]Mar-06 14:40:15 Project       - Project ttbuild-test-package:
checking for modifications
[cc]Mar-06 14:40:15 odificationSet- 1 modification has been detected.
[cc]Mar-06 14:40:15 Project       - Project ttbuild-test-package:  now building
[cc]Mar-06 14:40:15 ScriptRunner  - ln -sf
/var/cruisecontrol/projects/build/ttbuild-test-package build
[cc]Mar-06 14:40:15 ScriptRunner  - mkdir -p
/var/cruisecontrol/projects/build/ttbuild-test-package/lib
[cc]Mar-06 14:40:15 ScriptRunner  - rsync -r -C ./*
/var/cruisecontrol/projects/build/ttbuild-test-package/lib
[cc]Mar-06 14:40:15 ScriptRunner  - skipping non-regular file "build"
[cc]Mar-06 14:40:15 Project       - Project ttbuild-test-package:
merging accumulated log files
[cc]Mar-06 14:40:15 Project       - Project ttbuild-test-package:
build successful
[cc]Mar-06 14:40:15 Project       - Project ttbuild-test-package:
publishing build results

I think I am very close to having CC work properly, but the 80/20 rule
seems to be having its way with me.

Any advice you could share with me would be greatly appreciated.

Roger

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
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.