Hi,
I think the problem comes from the fact that HibernateSessionFactory is a HM
ServiceImplementationFactory and hence by default, HM imposes ONE
contribution occurrence of parameters whenever you use it as a factory for
one of your services.
This is easy to workaround, Chris gave one part of the solution but did not
apply it to the right location:
<service-point id="HibernateSessionFactory"
interface="org.apache.hivemind.ServiceImplementationFactory"
parameters-occurs="none">
</service-point>
The parameter-occurs="none" must be used at the definition of FACTORY
service-point.
This should do the trick.
However, as James pointed out, I think this error does not prevent the
system from working normally anyway (except that having an ERROR in the log
is always frustrating ;-))
Cheers
Jean-Francois
PS: [shameless self-promotion] Did you consider using HiveMind Utilities'
hivetranse module for using hibernate in your project?
-----Original Message-----
From: James Carman [mailto:[EMAIL PROTECTED]
Sent: Sunday, June 12, 2005 7:03 AM
To: [email protected]; 'Glen Stampoultzis'
Subject: RE: Error reported from hivemodule.xml
I believe I saw those same error messages while I was writing that code for
the article. It doesn't really cause any problems.
-----Original Message-----
From: Glen Stampoultzis [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 11, 2005 6:47 AM
To: [email protected]
Subject: Re: Error reported from hivemodule.xml
That didn't seem to do anything for me. Also I noticed that the
hibernate session stuff on the server side article
(http://www.theserverside.com/articles/content/HivemindBuzz/article.html)
didn't need to supply this attribute.
Regards,
Glen
On 6/10/05, Chris Conrad <[EMAIL PROTECTED]> wrote:
> Hi Glen,
>
> To get rid of that error change your service point to read:
>
> <service-point id="HibernateSession"
> interface="net.sf.hibernate.Session" parameters-occurs="none">
> <invoke-factory ....
> </service-point>
>
> Notice the parameters-occurs attribute in the service-point element.
>
> --Chris
>
>
>
> On Jun 9, 2005, at 5:31 AM, Glen Stampoultzis wrote:
>
> > I'm getting the following error reported:
> >
> > Parameters to service implementation factory HibernateSessionFactory
> > contains no contributions but expects exactly one contribution.
> >
> > The offending hivemodule code is:
> >
> > <service-point id="HibernateSession"
> > interface="net.sf.hibernate.Session">
> > <invoke-factory service-id="HibernateSessionFactory"
> > model="threaded"/>
> > </service-point>
> >
> >
> > Any clues to what I'm missing? It doesn't seem to be causing any
> > actual problems but I'd still like to know the cause.
> >
> > Regards,
> >
> > Glen Stampoultzis
> >
> > ---------------------------------------------------------------------
> > 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]
>
>
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]