FYI, i managed to work around that problem. I changed
my components lifecycle to transient (from singleton).
 In the transient mode, the problem is not occuring.

Regards,

David.

--- David Le Strat <[EMAIL PROTECTED]> wrote:
> Stephen,
> 
> Sure, here you are. Let me know if you need more.
> Thanks for helping out.
> 
> Regards,
> 
> David.
> 
> --- Stephen McConnell <[EMAIL PROTECTED]> wrote:
> > 
> > David:
> > 
> > Just looking at the defintion of the two blocks I
> > can't see anything 
> > wrong. Could you post the block defintions so I
> can
> > take a closer look 
> > at what's happening?
> > 
> > Stephen.
> > 
> > 
> > David Le Strat wrote:
> > 
> > >Hi there,
> > >
> > >I have a question regarding blocks composition. 
> I
> > >have 2 blocks:
> > >
> > >1.  Persistence block defined as:
> > >
> > ><container name="jetspeed">
> > >
> > >   <services>
> > >     <service
> >
>
>type="org.apache.jetspeed.persistence.PersistenceService">
> > >       <source>persistence</source>
> > >     </service>
> > >   </services>
> > >
> > >   <classloader>
> > >     <classpath>
> > >       <repository>
> > >         <resource
> > >id="avalon-framework:avalon-framework-api"
> > >version="4.1.5"/>
> > >         <resource
> > >id="avalon-framework:avalon-framework-impl"
> > >version="4.1.5"/>
> > >         <resource id="ojb:db-ojb"
> > version="1.0.rc5"/>
> > >         <resource id="commons-lang:commons-lang"
> > >version="2.0"/>
> > >         <resource id="commons-lang:commons-lang"
> > >version="2.0"/>
> > >         <resource id="jetspeed2:jetspeed"
> > >version="2.0-a1-dev"/>
> > >         <resource
> id="jetspeed2:jetspeed-commons"
> > >version="2.0-a1-dev"/>
> > >       </repository>
> > >     </classpath>
> > >   </classloader>
> > >
> > >   <component name="persistence"
> >
>
>class="org.apache.jetspeed.persistence.impl.OJBODMGPersistenceService"
> > >activation="startup">
> > >     <configuration>
> > >      
> >
>
><classname>org.apache.jetspeed.persistence.impl.OJBODMGPersistenceService</classname>
> > >       <OJB.path>ojb</OJB.path>
> > >      
> >
>
><override.default.jcd>jetspeed-test</override.default.jcd>
> > >       <resolveDbAlias>true</resolveDbAlias>
> > >     </configuration>
> > >   </component>
> > >
> > ></container>
> > >
> > >2. Preferences block defined as:
> > >
> > ><container name="jetspeed">
> > >
> > >     <classloader>
> > >       <classpath>
> > >         <repository>
> > >           <resource
> > >id="avalon-framework:avalon-framework-api"
> > >version="4.1.5"/>
> > >           <resource
> > >id="avalon-framework:avalon-framework-impl"
> > >version="4.1.5"/>
> > >           <resource id="jetspeed2:persistence"
> > >version="1.0"/>
> > >         </repository>
> > >       </classpath>
> > >     </classloader>
> > >
> > >     <include name="persistence"
> > >id="jetspeed2:persistence" version="1.0"/>
> > >
> > >     <component name="properties"
> >
>
>class="org.apache.jetspeed.spi.services.prefs.impl.PropertyManagerServiceImpl"/>
> > >
> > ></container>
> > >
> > >When Block 2, tries to access block 1 (ie the
> > >persistence block), I am getting: Message: No
> value
> > is
> > >associated with the configuration element
> > "OJB.path"
> > >at <generated>null.
> > >
> > >Should'nt block 1 pick the configuration
> specified
> > in
> > >the persistence <configuration></configuration>?
> > >
> > >What is the appropriate way to deal with that
> type
> > of
> > >scenario?
> > >
> > >Regards,
> > >
> > >David Le Strat.
> > >
> > >
> > >
> > >=====
> > >________________________
> > >David Le Strat
> > >564 School Street
> > >Belmont, MA, 02478
> > >Home: 617-484-8417
> > >Mob: 781-710-0221
> > >Email: [EMAIL PROTECTED]
> > >
> > >__________________________________
> > >Do you Yahoo!?
> > >New Yahoo! Photos - easier uploading and sharing.
> > >http://photos.yahoo.com/
> > >
> >
>
>---------------------------------------------------------------------
> > >To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > >For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> > >  
> > >
> > 
> > -- 
> > 
> > Stephen J. McConnell
> > mailto:[EMAIL PROTECTED]
> > 
> > |------------------------------------------------|
> > | Magic by Merlin                                |
> > | Production by Avalon                           |
> > |                                                |
> > | http://avalon.apache.org/merlin                |
> > | http://dpml.net/                               |
> > |------------------------------------------------|
> > 
> > 
> > 
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/

> ATTACHMENT part 2 application/x-zip-compressed
name=debug.zip
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to