Yahoo weather module doesn't work

Description

The example for the Yahoo weather module does not work. To reproduce:

URL url = new URL("http://xml.weather.yahoo.com/forecastrss/ITXX0090.xml");
SyndFeed feed = null;
try {
feed = new SyndFeedInput().build(new XmlReader(url));
} catch (Exception e) { }

YWeatherFeedModule yfeed = (YWeatherFeedModule) feed.getModule( YWeatherFeedModule.URI );
// yFeed is NULL here

Environment

None

Activity

Show:
JohnJ
September 26, 2012, 9:11 AM

The problem is that there are no entries in rome.properties:

rss_2.0.feed.ModuleParser.classes=com.sun.syndication.feed.module.yahooweather.io.WeatherModuleParser
rss_2.0.item.ModuleParser.classes=com.sun.syndication.feed.module.yahooweather.io.WeatherModuleParser
rss_2.0.feed.ModuleGenerator.classes=com.sun.syndication.feed.module.yahooweather.io.WeatherModuleGenerator
rss_2.0.item.ModuleGenerator.classes=com.sun.syndication.feed.module.yahooweather.io.WeatherModuleGenerator

See attached rome.properties and the fixed rome-modules-1.1.jar

Assignee

Robert Cooper

Reporter

JohnJ

Labels

None

Participants

None

Priority

Critical