atom feed7 messages in Rome at servlet
FromSent OnAttachments
jorgeJul 19, 2005 8:57 am 
jorgeJul 19, 2005 9:23 am 
Robert "kebernet" CooperJul 19, 2005 11:06 am 
jorgeJul 20, 2005 4:43 am 
kentJul 20, 2005 6:32 am 
jorgeJul 20, 2005 8:23 am 
jorgeJul 21, 2005 3:47 am 
Subject:RE: Rome at servlet
From:kent (
Date:Jul 20, 2005 6:32:31 am

Are you on a hosted environment?

-----Original Message----- From: jorge [] Sent: Wednesday, July 20, 2005 12:44 PM To: Subject: Re: Rome at servlet

I'm sure it has to be a problem with the libraries since it works as stand-alone app, but cannot find anything.

If i remove jdom.jar from web-inf/lib folder then i've got a ClassNotFoundException: org/jdom/Content.

I don't know if my server environment is hacking in some way rome functionality, wich may need to init something in the backstage. I mean the error is thrown calling RSS090Generator while trying to get rss2.0... Is that correct?

I'm just trying to get some light.


On 7/19/05, Robert kebernet Cooper <> wrote:

Double check and make sure you don't have rome in, say, common/lib AND web-inf/lib while not having jdom in common/lib or shared/lib, etc...

This looks like you have a ROME in the classloader somewhere where JDOM isn't or vice versa, so you are getting classes with instances from different jars.

While I am not an expert at WSAD, if you are trying to run it from within the IDE using the little "mini-WebSphere", check the "ServerPage -> Environment Tab -> Classpath Box". WSAD also does some strange stuff with your project when it runs. Try making sure JDOM and ROME are both in the .classpath (as I think that is where the mini-websphere is going to start the web-inf/lib for the debug/test context).

On 7/19/05, jorge <> wrote:

Hi, I am using rome 0.6 within a servlet sample but i cannot make it run. The IDE is Websphere Studio AppDev 5.1.2

it throws an exception while trying to write the feed thru the HttpServletRequest:

arguments are not type compatible &#40;class: com/sun/syndication/io/impl/RSS090Generator method: addChannel&#40;Lcom/sun/syndication/feed/rss/Channel&#59;Lorg/jdom/Element&# 59;&#41;V&#41; at pc: 36]: java.lang.VerifyError: arguments are not type compatible (class: com/sun/syndication/io/impl/RSS090Generator method: addChannel(Lcom/sun/syndication/feed/rss/Channel;Lorg/jdom/Element;)V) at pc: 36 at java.lang.Throwable .<init>( at java.lang.Throwable.<init>( at java.lang.VerifyError.<init>( at java.lang.Class.verifyImpl(Native Method) at java.lang.Class.verify ( at java.lang.Class.initialize( at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance( at ( at<init>( at<init>( at .<clinit>( at java.lang.Class.initializeImpl(Native Method) at java.lang.Class.initialize( at<init>(

The code and config is as follows:

doGet(...) {

SyndFeed feed = getFeed(); //same as sample code with no parameters feed.setFeedType("rss_2.0");

response.setContentType("application/xml; charset=UTF-8");

SyndFeedOutput sfo = new SyndFeedOutput(); // the exception is thrown here

sfo.output(feed, response.getWriter());


What is going on? I've tried the same code as stand alone app and it works fine. I've also checked back the jars and jdom.jar and rome-0.6.jar are located at web-inf/lib folder.

Do you know how to get it work?