You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Vadim Gritsenko <va...@reverycodes.com> on 2004/05/05 16:44:16 UTC
Source Factories, Re: DO NOT REPLY [Bug 26456] - First Xindice
DB is created in current directory (instead of WEB-INF?)
bugzilla@apache.org 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
RE: Source Factories, Re: DO NOT REPLY [Bug 26456] - First XindiceDB is created in current directory (instead of WEB-INF?)
Posted by Carsten Ziegeler <cz...@s-und-n.de>.
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:cziegeler@s-und-n.de]
> Sent: Thursday, May 06, 2004 8:36 AM
> To: dev@cocoon.apache.org
> 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:vadim@reverycodes.com]
> > Sent: Wednesday, May 05, 2004 4:44 PM
> > To: dev@cocoon.apache.org
> > Subject: Source Factories, Re: DO NOT REPLY [Bug 26456] - First
> > XindiceDB is created in current directory (instead of WEB-INF?)
> >
> > bugzilla@apache.org 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
> >
>
>
RE: Source Factories, Re: DO NOT REPLY [Bug 26456] - First XindiceDB is created in current directory (instead of WEB-INF?)
Posted by Carsten Ziegeler <cz...@s-und-n.de>.
Hmm, strange - will look into it.
Carsten
> -----Original Message-----
> From: Vadim Gritsenko [mailto:vadim@reverycodes.com]
> Sent: Wednesday, May 05, 2004 4:44 PM
> To: dev@cocoon.apache.org
> Subject: Source Factories, Re: DO NOT REPLY [Bug 26456] -
> First XindiceDB is created in current directory (instead of WEB-INF?)
>
> bugzilla@apache.org 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
>