Here is a stack trace from turbine.log:

        Exception:  org.apache.turbine.util.TurbineException: Instantiation failed
for com.majorband.project.tool.IntakeTool: ServiceBroker: Unknown Service
'IntakeService' requested
        Stack Trace follows:
        org.apache.fulcrum.InstantiationException: ServiceBroker: Unknown Service
'IntakeService' requested
        at org.apache.fulcrum.BaseServiceBroker.getServiceInstance(Unknown Source)
        at org.apache.fulcrum.BaseServiceBroker.getService(Unknown Source)
        at
com.majorband.project.services.intake.ProjectIntake.getService(ProjectIntake
.java:253)

I have created an intake like pull tool of my own, and from this pool tool,
I am calling the service I have created (which worked succesfully in t3).

At the moment in my code I am getting an instance of the service by:

return (IntakeService)TurbineServices
            .getInstance().getService(IntakeService.SERVICE_NAME);

Should I be using the fulcrum.Fulcrum class instead?

None of the services in my Fulcrum properties file appear in the services
initialisation section of the turbine.log.

Any help would be greatly appreciated.

Gareth

> -----Original Message-----
> From: Eric Dobbs [mailto:[EMAIL PROTECTED]]
> Sent: 21 March 2002 15:32
> To: Turbine Developers List
> Subject: Re: ComponentLoader problem
>
>
> On Thursday, March 21, 2002, at 08:25  AM, Gareth Coltman wrote:
>
> > I know now (from debugging the ComponentLoader) that it is working
> > perfectly
> > and loading the component.
>
> good news.
>
>
> > So I must be doing something wrong.
> >
> > I assumed that services within the fulcrum.properties file would just be
> > exposed as normal services, but clearly this is not correct.
> >
> > How should I use fulcrum services within my code???? (in t-2.2)
>
> I haven't actually tried to use fulcrum services from T2 yet, but
> I think the usual access through the services static facade methods
> should work.  Either that, or through the Fulcrum class's static
> methods.  I have several other things I need to get to first, but
> I'll try to take a look this afternoon unless you figure it out
> before I get to it.
>
> -Eric
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>


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

Reply via email to