I don't think you need those extra tags.  The only thing is there is
something about passing in a service name if you want to load the component
on start up, basically to get it initialized, versus waiting til the first
use.

Eric

> -----Original Message-----
> From: Scott Eade [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 27, 2003 7:40 AM
> To: Turbine Developers List
> Subject: Re: Loading Torque using AvalonComponentService
>
>
> Any chance of a reply to my message below?
>
> Thanks,
>
> Scott
> --
>
> Scott Eade
> Backstage Technologies Pty. Ltd.
> http://www.backstagetech.com.au
>
>
> Scott Eade wrote:
>
> > What is involved in switching over to using avalon to load torque?
> >
> > Instead of services.ComponentService.classname I have:
> >
> >
> >
> services.AvalonComponentService.classname=org.apache.turbine.s
> ervices.avaloncomponent.TurbineAvalonComponentService
> >
> >
> > And then I define (as suggested in the
> TurbineAvalonComponentService
> > javadoc):
> >
> >    services.AvalonComponentService.lookup = org.apache.torque.Torque
> >
> > I have in WEB-INF/conf:
> >
> > roleConfiguration.xml
> >
> >> <role-list>
> >>     <role
> >>         name="org.apache.torque.TorqueComponent"
> >>         shorthand="TorqueComponent"
> >>         default-class="org.apache.torque.TorqueComponent"/>
> >> </role-list>
> >
> >
> > conponentConfiguration.xml
> >
> >> <componentConfig>
> >>     <TorqueComponent>
> >>       <configFile>/WEB-INF/conf/Torque.properties</configFile>
> >>     </TorqueComponent>
> >> </componentConfig>
> >
> >
> > Given the above I am no longer sure whether or not the
> following are
> > required:
> >
> >    services.AvalonComponentService.name = torque
> >    services.AvalonComponentService.torque.classname =
> > org.apache.torque.Torque
> >    services.AvalonComponentService.torque.config =
> > /WEB-INF/conf/Torque.properties
> >
> > After all of this torque doesn't seem to be initialising and the
> > following appears in my log:
> >
> >    2003-08-22 13:19:58,245 ERROR [main      ]
> > services.BaseServiceBroker -
> > org.apache.turbine.services.InitializationException: init failed:
> > Could not get class
> >
> > Any ideas/suggestions?  I will put this info on a wiki page
> once it is
> > all sorted out.
> >
> > Thanks,
> >
> > Scott
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to