Got it. The test.rss option exposed
test.rss:
[echo] Running RSSDigester tests ...
[java] java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase
Since I finally traced back to a conflict between my jaxp1.1 home
directory and the same files in the ant/dist/lib folder. I set my
jaxp.home to use the ant copies, and now it's working.
(Gotta love them classloaders ...)
I put jaxp.jar and crimson.jar in my app's WEB-INF/lib, but it still
returns null when it tries to parse the file.
response.setContentType("text/plain");
PrintWriter writer = response.getWriter();
try {
RSSDigester digester = new RSSDigester();
digester.setDebug(999);
Channel channel = (Channel)
digester.parse("/rss-example.xml");
if (channel!=null) channel.render(writer);
else writer.print("No data!");
}
catch (Throwable t) {
writer.print(t.toString());
}
It does see the file, since if I use a non-existant name, it chokes.
"Craig R. McClanahan" wrote:
> Are you running "ant test.rss" or trying to execute the program directly?
> The former sets up an appropriate class path, so make sure all your
> properties are correctly configured.
>
> > -- Ted Husted, Husted dot Com, Fairport NY USA.
> > -- Custom Software ~ Technical Services.
> > -- Tel +1 716 737-3463
> > -- http://www.husted.com/about/struts/
> >
>
> Craig