Hi Karl, it was strange that I was trying to load (rss) org.apache.manifoldcf.crawler.connectors.rss2.RSSConnector
but instead, old one was loaded always (rss2) org.apache.manifoldcf.crawler.connectors.rss.RSSConnector Then I fixed that by renaming to org.apache.manifoldcf.crawler.connectors.rss2.RSSConnector2 It was might be just database table record pointing to wrong class but I checked it too... anyway it disappeared but it is suspicious... Yes I know about database table... also I think smth is wrong with build.xml, classloader issue with poi.jar (current trunk version), I believe poi.jar has dependency on another jar (not sure which); and after some problems when I disable GTS connector via config file + jar removal, I need also manually delete record from database table -Fuad -----Original Message----- From: Karl Wright [mailto:[email protected]] Sent: March-22-11 9:14 PM To: [email protected] Subject: Re: Strange class loading issue actually, sorry, the second entry will replace the first. You'll only have one entry per class. It would be called RSS2, because the RSS name will have been lost. Karl On Tue, Mar 22, 2011 at 3:33 PM, Karl Wright <[email protected]> wrote: > Hi Fuad, > > It's a little unclear what your steps were here. The following: > > <repositoryconnector name="RSS" > class="org.apache.manifoldcf.crawler.connectors.rss2.RSSConnector2"/> > > <repositoryconnector name="RSS2" > class="org.apache.manifoldcf.crawler.connectors.rss2.RSSConnector2"/> > > ... should create two entries in the repositoryconnectors table, that > have the same class. BUT, your repository connections save the class > name, not the repository connector name, so you've really created a > distinction without a difference. This is not recommended; the class > names should be distinct for different names. > > Karl > > On Tue, Mar 22, 2011 at 2:11 PM, Fuad Efendi <[email protected]> wrote: >> Its strange; I created copy of RSS connector in a different package: >> >> package org.apache.manifoldcf.crawler.connectors.rss2 >> >> >> >> <repositoryconnector name="RSS" >> class="org.apache.manifoldcf.crawler.connectors.rss2.RSSConnector2"/> >> >> <repositoryconnector name="RSS2" >> class="org.apache.manifoldcf.crawler.connectors.rss2.RSSConnector2"/> >> >> >> >> I added some log output (to check that I have new RSS2 working) >> >> >> >> >> >> However, old Manifold always loaded old >> org.apache.manifoldcf.crawler.connectors.rss.RSSConnector (from rss >> package instead of rss2) >> >> >> >> >> >> I was forsed to rename class too, into RSSConnector2, and it works >> now >> >> org.apache.manifoldcf.crawler.connectors.rss2.RSSConnector2 >
