I am trying to write a simple Google App Engine website that reads an external RSS feed. I am using ROME with JDOM, however I am getting the impression that ROME is not compatible with Google App Engine and how you may fetch data.
ROME uses the build method of the SyndFeedInput class, but I cannot find any way to how to connect this with Google App Engine and URL Fetch.
My sample code is:
URL url = new URL(rss_url);
Reader r = new InputStreamReader(url.openStream());
SyndFeed feed = new SyndFeedInput().build(r);
But on my third row I get a
java.lang.IllegalStateException: JDOM could not create a SAX parser
It works if I run the code in an own stand alone application, but when I trigger the code via Google App Engine locally, I get the exception.
What I am doing wrong and what alternatives can I try to read an external RSS?
Looks like ROME isn’t supported on GAE:
http://old.nabble.com/ROME-and-AppEngine-td23290454.html
http://code.google.com/p/googleappengine/issues/detail?id=1367
It seems that the workaround is to include a copy of the Xerces JAR in your application, so that JDOM doesn’t try to load it from GAE itself.