From: Matthew B. <mat...@co...> - 2005-07-13 20:26:56
|
Alistair Young wrote: > Thanks Mathew, > > I copied this into my tree with no effect. I'm not convinced the problem > lies here. Template compilation used to work. I think it was using the bat > file before. It's using an ant task now. Ok. But with an up to date checkout of bodington HEAD (without my patch) do you see this error when attempting to compile the templates through the ant task? [template-compiler] Compiling 459 templates to /home/buckett/workspace/bodington/build/bodington/WEB-INF/template_classes [template-compiler] Error(s) found with "style_default/default/applettop.html": [template-compiler] Technical error trying to insert iteractive item. > I'm getting a NullPointerException for style_0/recycler/main.html when it > XmlTemplate tries to compile: > <literal type="String"></literal> > There isn't any localisation in this template. Is this with my patch applied? > The lack of a string causes the exception. Which leads me to think that: > <literal type="String"><localise id="enter.website" /></literal> > in style_default/default/login_anon.html > has the same problem - I verified it has a NullPointerException too. I don't see the NPE. > XmlTemplate.getCharacterData() replaces the <localise> element in a > <literal> element with the text that the Localiser returns. Ok thanks, I hadn't spotted that, thanks. So you hardcode the resource properties in the .java file that the compiler produces? > This seems to point to the Localiser not being either available or not > finding the properties file when XmlTemplate is invoked from the ant task. Although if I set the build not to compile templates I was getting the same error when Bodington was deployed localy. > That wouldn't explain why <literal type="String"></literal> causes a > NullPointerException now. It didn't before. Indeed. > any ideas? I'm looking..... Are you on Jabber or IRC? -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |