On 08.01.2013 21:41, James Pharaoh wrote: > Sorry, please ignore this, I got the wrong file this time and think I > can solve it! > > Although I would still suggest that an empty<settings> element > shouldn't be a problem here.
as you can see in the xmlns:ae section, it's an agavi envelope namespace which cannot be changed in this regard - rather suggest to agavi in that manner. > > 2013/1/8 James Pharaoh<ja...@phsys.co.uk>: >> My XML is not invalid, it's being ouput by the libxml2 library which >> my config management system uses. >> >> However, it does seem like the contents of my auth.xml file are >> somehow upsetting things. With the following contents things don't >> work: >> >> <settings xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0"> >> <setting name="defaults"/> >> <setting name="provider"/> >> <setting name="message"/> >> </settings> >> >> But with this they do: >> >> <settings xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0"> >> <setting name="defaults"> >> <!-- --> >> </setting> >> <setting name="provider"/> >> <!-- --> >> </setting> >> <setting name="message"/> >> <!-- --> >> </setting> >> </settings> >> >> This seems pretty unreasonable to me, but at least I have got rid of >> this particular error. >> >> Now I have come up with another similar problem: >> >> Error happened! Configuration file >> "/zattikka/icinga-web-1.8.1/app/modules/Api/config/module.xml" could >> not be parsed: Error occurred while resolving XInclude directives: >> [Error #1612] Line 32: XPointer evaluation failed: >> #xmlns(ae=http://agavi.org/agavi/config/global/envelope/1.0) >> xmlns(ac=http://agavi.org/agavi/config/parts/module/1.0) >> xpointer(//ae:configurations//ae:configuration/ac:settings/node()) >> >> This file contains the following include (I've reformatted it): >> >> <xi:include >> xmlns:xi="http://www.w3.org/2001/XInclude" >> href="/zattikka/icinga-web-config/sla.xml" >> xpointer=" >> xmlns(ae=http://agavi.org/agavi/config/global/envelope/1.0) >> xmlns(ac=http://agavi.org/agavi/config/parts/module/1.0) >> xpointer(//ae:configurations//ae:configuration/ac:settings/node()) >> "> >> <xi:fallback></xi:fallback> >> </xi:include> >> >> So, you would think that my sla.xml had a similar problem, but it's >> pretty much identical to the stock version: >> >> <?xml version="1.0" encoding="UTF-8"?> >> <ae:configurations >> xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0" >> xmlns="http://agavi.org/agavi/config/parts/module/1.0"> >> <ae:configuration> >> <settings> >> <ae:parameter name="default_timespan">-1 month</ae:parameter> >> <ae:parameter name="enabled">false</ae:parameter> >> </settings> >> </ae:configuration> >> </ae:configurations> >> >> The only differences between this and the stock version is in >> whitespace at the start of some lines, and the order of the xmlns >> attributes. The stock version is as such: >> >> <?xml version="1.0" encoding="UTF-8"?> >> <ae:configurations >> xmlns="http://agavi.org/agavi/config/parts/module/1.0" >> xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0"> >> <ae:configuration> >> <settings> >> <ae:parameter name="default_timespan">-1 month</ae:parameter> >> <ae:parameter name="enabled">false</ae:parameter> >> </settings> >> </ae:configuration> >> </ae:configurations> >> >> (the second<ae:parameter> line has four spaces and two tabs, the rest >> are all spaces as shown here) >> >> I wonder if anyone has any ideas what it could be this time? >> >> James >> >> 2013/1/7 Michael Friedrich<michael.friedr...@gmail.com>: >>> On 07.01.2013 17:08, James Pharaoh wrote: >>>> 2013/1/7 Michael Friedrich<michael.friedr...@gmail.com>: >>>>> On 07.01.2013 14:36, James Pharaoh wrote: >>>>>> I'm getting the following error when trying to run icinga-web: >>>>>> >>>>>> Error happened! Configuration file >>>>>> "/zattikka/icinga-web-1.8.1/app/modules/AppKit/config/module.xml" >>>>>> could not be parsed: Errors occurred while resolving XInclude >>>>>> directives: [Error #1612] Line 102: XPointer evaluation failed: >>>>>> #xpointer(//settings/setting[@name='defaults']/node()) [Error #1612] >>>>>> Line 250: XPointer evaluation failed: >>>>>> #xpointer(//settings/setting[@name='provider']/node()) [Error #1612] >>>>>> Line 267: XPointer evaluation failed: >>>>>> #xpointer(//settings/setting[@name='message']/node()) >>>>> >>>>> content of that file at remarked line numbers? >>>> >>>> Well that file only has 114 lines... But it contains the following: >>>> >>>> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" >>>> href="auth.xml"/> >>>> >>>> That file, auth.xml, does contain the following at line 102: >>>> >>>> <!-- Just including your configuration --> >>>> <xi:include >>>> xmlns:xi="http://www.w3.org/2001/XInclude" >>>> href="/zattikka/icinga-web-config/auth.xml" >>>> xpointer="xpointer(//settings/setting[@name='defaults']/node())"> >>>> <xi:fallback></xi:fallback> >>>> </xi:include> >>>> >>>> ...and basically the same for the other two XPath expressions at their >>>> lines. >>> >>> so my guess is that your auth.xml contains an error then, being included >>> by the XInclude parser. did you modify that one? >>> >>> try setting syntax on in vim, as well as verify that the xml format is >>> correct. sometimes a missing bracket is the root if all evil. >>> >>>> >>>> Any ideas? >>>> >>>> Thanks, >>>> James >>>> >>>> ------------------------------------------------------------------------------ >>>> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >>>> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >>>> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft >>>> MVPs and experts. SALE $99.99 this month only -- learn more at: >>>> http://p.sf.net/sfu/learnmore_122412 >>>> _______________________________________________ >>>> icinga-users mailing list >>>> icinga-users@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/icinga-users >>> >>> >>> -- >>> DI (FH) Michael Friedrich >>> >>> mail: michael.friedr...@gmail.com >>> twitter: https://twitter.com/dnsmichi >>> jabber: dnsmi...@jabber.ccc.de >>> irc: irc.freenode.net/icinga dnsmichi >>> >>> icinga open source monitoring >>> position: lead core developer >>> url: https://www.icinga.org >>> >>> ------------------------------------------------------------------------------ >>> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >>> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >>> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft >>> MVPs and experts. SALE $99.99 this month only -- learn more at: >>> http://p.sf.net/sfu/learnmore_122412 >>> _______________________________________________ >>> icinga-users mailing list >>> icinga-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/icinga-users >> >> >> >> -- >> James Pharaoh >> Pharaoh Systems Limited >> http://phsys.co.uk/contact > > > -- DI (FH) Michael Friedrich mail: michael.friedr...@gmail.com twitter: https://twitter.com/dnsmichi jabber: dnsmi...@jabber.ccc.de irc: irc.freenode.net/icinga dnsmichi icinga open source monitoring position: lead core developer url: https://www.icinga.org ------------------------------------------------------------------------------ Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 _______________________________________________ icinga-users mailing list icinga-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/icinga-users