Hi

that config works fine with me, so I can not reproduce the problem


what you can do is the following :
copy paste the config in notepad, and paste it back
maybe there are some weird characters that are not shown


also it is best to set the root node to the following :
this make it possible to use the pre-processor :

<cruisecontrol xmlns:cb="urn:ccnet.config.builder">

I got this output when copying in the config from your mail :


CruiseControl.NET Server 1.5.7256.1 -- .NET Continuous Integration Server
Copyright © 2003 - 2010 ThoughtWorks Inc.  All Rights Reserved.
.NET Runtime Version: 2.0.50727.3053    Image Runtime Version: v2.0.50727
OS Version: Microsoft Windows NT 6.0.6001 Service Pack 1        Server
locale: n
l-BE

[1:DEBUG] The trace level is currently set to debug.  This will cause CCNet
to l
og at the most verbose level, which is useful for setting up or debugging
the se
rver.  Once your server is running smoothly, we recommend changing this
setting
in
C:\Users\ruben\Desktop\CruiseControl.NET-1.5.7256.1\Server\ccnet.exe.Config
t
o a lower level.
[1:DEBUG] [FileChangedWatcher] Add config file 'ccnet.config' to file change
wat
cher collection.
[CCNet Server:INFO] Reading configuration file
"C:\Users\ruben\Desktop\CruiseCon
trol.NET-1.5.7256.1\Server\ccnet.config"
[CCNet Server:DEBUG] [FileChangedWatcher] Add config file
'C:\Users\ruben\Deskto
p\CruiseControl.NET-1.5.7256.1\Server\ccnet.config' to file change watcher
colle
ction.
[CCNet Server:WARN] Configuration does not have any version information -
assumi
ng the configuration is for version 1.5
[CCNet Server:WARN] Unable to find executable 'c:\projects\test.cmd'
[CCNet Server:INFO] Log cache time set to 5 minutes
[CCNet Server:INFO] Registered channel: tcp
[CCNet Server:INFO] CruiseManager: Listening on url: tcp://
81.164.56.174:21234/C
ruiseManager.rem



with kind regards
Ruben Willems


On Mon, Aug 16, 2010 at 11:03 AM, jim_offroadcode <
[email protected]> wrote:

> Hi Ruben. Thanks for your reply. Really appreciate you taking time to
> help.
>
> What is frustrating is that my fresh CCNet installation is failing
> with an example config file from the FAQs/Setup tutorial.
>
> <cruisecontrol>
>    <project>
>        <name>SimpleExample</name>
>
>        <triggers />
>
>        <tasks>
>            <exec>
>                <executable>c:\projects\test.cmd</executable>
>            </exec>
>        </tasks>
>    </project>
> </cruisecontrol>
>
>
> Throws this exception:
>
>
> 2010-08-16 10:01:19,390 [CCNet Server:ERROR] INTERNAL ERROR:
> System.Xml.Xsl.Runtime.StringConcat.ConcatNoDelimiter(System.String)
> ----------
> System.MethodAccessException:
> System.Xml.Xsl.Runtime.StringConcat.ConcatNoDelimiter(System.String)
>   at System.Xml.XmlEventCache.WriteString(String text)
>   at
> System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStringUnchecked(String
> text)
>   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template
> name="EvalTextConstants">(XmlQueryRuntime {urn:schemas-microsoft-
> com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-
> debug}current, Double {urn:schemas-microsoft-com:xslt-debug}position,
> Double {urn:schemas-microsoft-com:xslt-debug}last, IList`1
> {urn:schemas-microsoft-com:xslt-debug}namespaces) in :line 25
>   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template
> match="text()">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current,
> Double {urn:schemas-microsoft-com:xslt-debug}position, Double
> {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-
> microsoft-com:xslt-debug}namespaces) in :line 41
>   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
> templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> runtime, XPathNavigator , Double , Double )
>   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template match="node()"
> priority="-3">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current,
> Double {urn:schemas-microsoft-com:xslt-debug}position, Double
> {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-
> microsoft-com:xslt-debug}namespaces) in :line 16
>   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
> templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> runtime, XPathNavigator , Double , Double )
>   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template match="node()"
> priority="-3">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current,
> Double {urn:schemas-microsoft-com:xslt-debug}position, Double
> {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-
> microsoft-com:xslt-debug}namespaces) in :line 16
>   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
> templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> runtime, XPathNavigator , Double , Double )
>   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template match="node()"
> priority="-3">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current,
> Double {urn:schemas-microsoft-com:xslt-debug}position, Double
> {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-
> microsoft-com:xslt-debug}namespaces) in :line 16
>   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
> templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> runtime, XPathNavigator , Double , Double )
>   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
> templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> runtime, XPathNavigator , Double , Double )
>   at System.Xml.Xsl.CompiledQuery.Query.Root(XmlQueryRuntime
> {urn:schemas-microsoft-com:xslt-debug}runtime)
>   at System.Xml.Xsl.CompiledQuery.Query.Execute(XmlQueryRuntime
> {urn:schemas-microsoft-com:xslt-debug}runtime)
>   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument,
> XmlResolver dataSources, XsltArgumentList argumentList,
> XmlSequenceWriter results)
>   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument,
> XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter
> writer, Boolean closeWriter)
>   at System.Xml.Xsl.XmlILCommand.Execute(XmlReader contextDocument,
> XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter
> results)
>   at System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input,
> XsltArgumentList arguments, XmlWriter results, XmlResolver
> documentResolver)
>   at
>
> ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ConfigPreprocessor.PreProcess(XmlReader
> input, XmlWriter output, PreprocessorUrlResolver resolver, Uri
> input_uri) in c:\Documents and Settings\Jim  McKerchar\My Documents
> \Work\project\core\configuration\preprocessor
> \ConfigPreprocessor.cs:line 90
>    at
>
> ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.CreateXmlValidatingLoader(FileInfo
> configFile) in c:\Documents and Settings\Jim  McKerchar\My Documents
> \Work\project\core\configuration
> \DefaultConfigurationFileLoader.cs:line 76
>    at
>
> ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.AttemptLoadConfiguration(FileInfo
> configFile) in c:\Documents and Settings\Jim  McKerchar\My Documents
> \Work\project\core\configuration
> \DefaultConfigurationFileLoader.cs:line 57
>    at
>
> ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.Load(FileInfo
> configFile) in c:\Documents and Settings\Jim  McKerchar\My Documents
> \Work\project\core\configuration
> \DefaultConfigurationFileLoader.cs:line 35
>    at
> ThoughtWorks.CruiseControl.Core.Config.FileConfigurationService.Load()
> in c:\Documents and Settings\Jim  McKerchar\My Documents\Work\project
> \core\configuration\FileConfigurationService.cs:line 23
>    at
>
> ThoughtWorks.CruiseControl.Core.Config.FileWatcherConfigurationService.Load()
> in c:\Documents and Settings\Jim  McKerchar\My Documents\Work\project
> \core\configuration\FileWatcherConfigurationService.cs:line 26
>    at
> ThoughtWorks.CruiseControl.Core.Config.CachingConfigurationService.Load()
> in c:\Documents and Settings\Jim  McKerchar\My Documents\Work\project
> \core\configuration\CachingConfigurationService.cs:line 20
>   at
> ThoughtWorks.CruiseControl.Core.CruiseServer..ctor(IConfigurationService
> configurationService, IProjectIntegratorListFactory
> projectIntegratorListFactory, IProjectSerializer projectSerializer,
> IProjectStateManager stateManager, IFileSystem fileSystem,
> IExecutionEnvironment executionEnvironment, List`1 extensionList) in c:
> \Documents and Settings\Jim  McKerchar\My Documents\Work\project\core
> \CruiseServer.cs:line 74
>   at
> ThoughtWorks.CruiseControl.Core.CruiseServerFactory.CreateLocal(String
> configFile) in c:\Documents and Settings\Jim  McKerchar\My Documents
> \Work\project\core\CruiseServerFactory.cs:line 33
>   at
> ThoughtWorks.CruiseControl.Core.CruiseServerFactory.CreateRemote(String
> configFile) in c:\Documents and Settings\Jim  McKerchar\My Documents
> \Work\project\core\CruiseServerFactory.cs:line 64
>   at
> ThoughtWorks.CruiseControl.Core.CruiseServerFactory.Create(Boolean
> remote, String configFile) in c:\Documents and Settings\Jim  McKerchar
> \My Documents\Work\project\core\CruiseServerFactory.cs:line 69
>   at ThoughtWorks.CruiseControl.Core.ConsoleRunner.LaunchServer() in
> c:\Documents and Settings\Jim  McKerchar\My Documents\Work\project\core
> \ConsoleRunner.cs:line 80
>   at ThoughtWorks.CruiseControl.Core.ConsoleRunner.Run() in c:
> \Documents and Settings\Jim  McKerchar\My Documents\Work\project\core
> \ConsoleRunner.cs:line 58
>   at ThoughtWorks.CruiseControl.Console.AppRunner.Run(String[] args,
> Boolean usesShadowCopying) in c:\Documents and Settings\Jim  McKerchar
> \My Documents\Work\project\console\AppRunner.cs:line 67
> ----------
>
>
>
> The only time i can get ccnet.exe tpo start successfully is by
> removing all but the cruisecontrol block...
>
> <cruisecontrol></cruisecontrol>
>
>
> Regards
> Jim
>
>
> On Aug 13, 7:28 pm, Ruben Willems <[email protected]> wrote:
> > Hi
> >
> > can you post your config?
> >
> > with kind regards
> > Ruben Willems
> >
> > On Wed, Aug 11, 2010 at 1:25 PM, jim_offroadcode <
> >
> > [email protected]> wrote:
> > > Wondering if anyone can help...
> >
> > > I'm trying to fix some of the errors we're getting on our build server
> > > (which i've posted about in this group) so i installed CCNet
> > > 1.5.7256.1 on my local machine. However it is having problems starting
> > > the server. The console outputs '[CCNet Server:INFO] Reading
> > > configuration file "C:\Program Files\CruiseControl.NET\server
> > > \ccnet.config"'  and then a big red ERROR section.
> >
> > > I thought maybe i had an error in my config so tried with the default
> > > config file provided with the install. The server starts ok with the
> > > default config file (i.e. with nothing except the <cruisecontrol>
> > > block but as soon as add any <project> blocks it is throwing an
> > > exception. It does this when starting cruisecontrol and when
> > > validating the file using ccvalidator.
> >
> > > This only happens on my local install. The CCValidator on the build
> > > machine itself opens and validates our main config file without any
> > > problems.
> >
> > > This is the error being thrown....
> >
> > > 2010-08-11 11:52:51,390 [7] ERROR CruiseControl.NET [(null)] -
> > > INTERNAL ERROR:
> > > System.Xml.Xsl.Runtime.StringConcat.ConcatNoDelimiter(System.String)
> > > ----------
> > > System.MethodAccessException:
> > > System.Xml.Xsl.Runtime.StringConcat.ConcatNoDelimiter(System.String)
> > >   at System.Xml.XmlEventCache.WriteString(String text)
> > >   at
> > > System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStringUnchecked(String
> > > text)
> > >   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template
> > > name="EvalTextConstants">(XmlQueryRuntime {urn:schemas-microsoft-
> > > com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-
> > > debug}current, Double {urn:schemas-microsoft-com:xslt-debug}position,
> > > Double {urn:schemas-microsoft-com:xslt-debug}last, IList`1
> > > {urn:schemas-microsoft-com:xslt-debug}namespaces) in :line 25
> > >   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template
> > > match="cb:include">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-
> > > debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}
> > > current, Double {urn:schemas-microsoft-com:xslt-debug}position, Double
> > > {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-
> > > microsoft-com:xslt-debug}namespaces) in :line 61
> > >   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
> > > templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> > > runtime, XPathNavigator , Double , Double )
> > >   at System.Xml.Xsl.CompiledQuery.Query.<xsl:template match="node()"
> > > priority="-3">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> > > runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current,
> > > Double {urn:schemas-microsoft-com:xslt-debug}position, Double
> > > {urn:schemas-microsoft-com:xslt-debug}last, IList`1 {urn:schemas-
> > > microsoft-com:xslt-debug}namespaces) in :line 16
> > >   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
> > > templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> > > runtime, XPathNavigator , Double , Double )
> > >   at System.Xml.Xsl.CompiledQuery.Query.<xsl:apply-
> > > templates>(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}
> > > runtime, XPathNavigator , Double , Double )
> > >   at System.Xml.Xsl.CompiledQuery.Query.Root(XmlQueryRuntime
> > > {urn:schemas-microsoft-com:xslt-debug}runtime)
> > >   at System.Xml.Xsl.CompiledQuery.Query.Execute(XmlQueryRuntime
> > > {urn:schemas-microsoft-com:xslt-debug}runtime)
> > >   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument,
> > > XmlResolver dataSources, XsltArgumentList argumentList,
> > > XmlSequenceWriter results)
> > >   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument,
> > > XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter
> > > writer, Boolean closeWriter)
> > >   at System.Xml.Xsl.XmlILCommand.Execute(XmlReader contextDocument,
> > > XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter
> > > results)
> > >   at System.Xml.Xsl.XslCompiledTransform.Transform(XmlReader input,
> > > XsltArgumentList arguments, XmlWriter results, XmlResolver
> > > documentResolver)
> > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ConfigPreprocessor.PreProcess(XmlReader
> > > input, XmlWriter output, PreprocessorUrlResolver resolver, Uri
> > > input_uri)
> > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.CreateXmlValidatingLoader(FileInfo
> > > configFile)
> > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.AttemptLoadConfiguration(FileInfo
> > > configFile)
> > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.Load(FileInfo
> > > configFile)
> > >   at
> > > ThoughtWorks.CruiseControl.Core.Config.FileConfigurationService.Load()
> > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.FileWatcherConfigurationService.Load()
> > >   at
> > >
> ThoughtWorks.CruiseControl.Core.Config.CachingConfigurationService.Load()
> > >   at ThoughtWorks.CruiseControl.Core.CruiseServer.Restart()
> > >   at
> > >
> ThoughtWorks.CruiseControl.Core.Config.ConfigurationUpdateHandler.Invoke()
> > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.FileWatcherConfigurationService.HandleConfigurationFileChanged(Object
> > > source, FileSystemEventArgs args)
> > > ----------
> >
> >
>

Reply via email to