You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Massimo Lusetti <ml...@gmail.com> on 2005/11/24 16:09:13 UTC
@InjectObject with HiveMind sub-module
I would like to use something like this in a LoginPage:
@InjectObject("service:ServicesWeb.ILogin")
public abstract ILogin getLoginService();
With a hivemodule.xml whose last declaration is:
<sub-module descriptor="web-module.xml"/>
and within web-module.xml i got only this:
<module id="ServicesWeb" version="1.0.0" package="proto.web.services">
<service-point id="ILogin">
<invoke-factory>
<construct class="impl.LoginLDAP"/>
</invoke-factory>
<interceptor service-id="hivemind.LoggingInterceptor"/>
</service-point>
</module>
with interface as proto.web.services.ILogin and implementation as
proto.web.services.impl.LoginLDAP, every time i try to access the
login page i got an ApplicationRuntimeException saying: "Service point
ServicesWeb.ILogin does not exist."
It smells to me like an obvious missing point which i cannot see...
Regards
--
Massimo
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: @InjectObject with HiveMind sub-module
Posted by Massimo Lusetti <ml...@gmail.com>.
Sorry for the auto-reply... For the record, moving everything from
META-INF to WEB-INF makes everything works as expected.
Actually i don't know if this is a bug or the expected behaviour and i
didn't understand UserGuide/hivemind.xml correctly, anyway if it's the
latter i would make it more clear in the guide.
Thanks
--
Massimo
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org