← Back to team overview

dhis2-devs team mailing list archive

Re: Coding layout - Community-Based Health Information System (CBHIS)

 

2009/5/28 Bob Jolliffe <bobjolliffe@xxxxxxxxx>

> 2009/5/27 Lars Helge Øverland <larshelge@xxxxxxxxx>:
> >
> >>
> >> > - I got some incomprehensible errors related to SAX xml parsing.
> >>
> >> Is this related to our custom code using staxwax+woodstox, or
> >> something else?  I'm not sure if its relevant to this discussion, but
> >> one thing to consider is the availablility of StAX parser within j2ee
> >> 6 which can reduce one more dependency.
> >
> > It occurred while initializing Struts. The Struts VelocityManager
> complained
> > that "content is not allowed in prolog" while initializing a Toolbox. No
> > idea...
>
> You'd have to know what "xml" file the VelocityManager was trying to
> read at the time.  Seems the parser didn't see it as kosher xml.
> Could be all manner of reasons.  The prolog is the <?xml version="1.0"
> encoding="utf-8"?> and the <!DOCTYPE ... bits.
>
> Usually you see this when trying to process a non-xml eg. binary file.
>  Could also be hidden characters, funny linefeeds in the file.  Do you
> get same error on windoze and linux?
>
> Cheers
> Bob


Haven't tried on linux. But I made a simple webapp using struts 2 with an
include file and it worked fine. I am a little unsure how the struts config
files are loaded. The docs say they are loaded from classpath automatically.

References