Ok, this is a "hidden" circular dependency. The SlideSourceFactory looksup the repository which looks up the source resolver again. I changed the factory to lazy lookup the repository. This fixes the problem.
Carsten > -----Original Message----- > From: Carsten Ziegeler [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 06, 2004 8:36 AM > To: [EMAIL PROTECTED] > Subject: RE: Source Factories, Re: DO NOT REPLY [Bug 26456] - > First XindiceDB is created in current directory (instead of WEB-INF?) > > Hmm, strange - will look into it. > > Carsten > > > -----Original Message----- > > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, May 05, 2004 4:44 PM > > To: [EMAIL PROTECTED] > > Subject: Source Factories, Re: DO NOT REPLY [Bug 26456] - First > > XindiceDB is created in current directory (instead of WEB-INF?) > > > > [EMAIL PROTECTED] wrote: > > > > >First Xindice DB is created in current directory (instead of > > WEB-INF?) > > > > > > > > > > Does anybody know why source factories are initialized twice? > > It can be seen on Cocoon startup: > > > > ... > > trying to register database > > trying to register database > > - RAMJobStore initialized. > > ... > > > > > > Where, "trying to register database" is coming from XML:DB > > DatabaseManager, which is invoked twice from the > XMLDBSourceFactory, > > which is initialized twice by the (IIRC) source resolver. I > can send > > stacktraces if it helps... > > > > Vadim > > > >
