Yes it definitely should ;)! Thanks a bunch to both of you Mul and Jesse. It's working now.

Mul wrote:

The signature of getBroker is returning a type of ProfileBroker instead of
IProfileBroker.  Shouldn't that be IProfileBroker?

On 2/25/06, Leo Sakhvoruk <[EMAIL PROTECTED]> wrote:
Hi Jesse,

Thanks for the quick heads up. The name of the file was the problem
apparently. I renamed it and am now getting this new error:

Error: An error occurred processing annotation
@org.apache.tapestry.annotations.InjectObject(value=service:
client.profileBroker)
of public abstract client.functions.ProfileBroker
client.pages.Locations.getBroker(): The value obtained using locator
'service:client.profileBroker' (<SingletonProxy for
client.profileBroker(client.functions.reference.IProfileBroker)>) is not
compatible with the existing property (of type
client.functions.ProfileBroker).

From this it seems that the
interface(client.functions.reference.IProfileBroker) doesn't match the
implemented class(client.functions.ProfileBroker)? The interface only
contains 2 methods for which I set the property values in the
service-point and the class implements the interface, so I'm at a loss
once again.

Any ideas?

Jesse Kuhnert wrote:

Your service name injection reference looks fine to me, but I did notice
two
other things:

1-) Tapestry's ApplicationServlet looks for "hivemodule.xml" in your
classpath/web context by default, you mentioned calling it
hivemind.xml..Areyou sure it's getting loaded at all?

2-) I could be completely wrong, but for the longest time I was under the
impression that your main hivemodule.xml file module id should be equal
to
your applicationName.application tapestry file...This is probably bad
advice
though. (still worth trying if you have no other ideas)

j

On 2/26/06, Leo Sakhvoruk <[EMAIL PROTECTED]> wrote:


Hello,

I'm about to pull my hair out over this one. Basically, I have the
following in my hivemind.xml:

<module id="client_configuration" version="1.0.0">

  <!-- Profile builder object -->
  <service-point id="profileBroker"
interface="client.functions.reference.IProfileBroker">
      <invoke-factory model="singleton">
          <construct class="client.functions.ProfileBroker">
        <set-object property="serverAddress" value="something"/>
        <set-object property="serverPort" value="something"/>
      </construct>
      </invoke-factory>
  </service-point>
</module>

Then I try to get a hold of that in a page class via:

  @InjectObject("service:client_configuration.profileBroker")
  public abstract ProfileBroker getBroker();

This throws the Service point client_configuration.profileBroker doesn't
exist error every time. I've tried setting different values after the
constructor in hivemind but the same error keeps coming back. I'm
obviously not referencing the service-point element correctly.

I've looked over the mailing list threads and the Tapestry as well as
HiveMind sites. From what I can tell this should be working as is.

I'm hitting a wall at this point. Please help with any clue.

Thanks

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






Reply via email to