On Sun, Jul 24, 2011 at 11:48 PM, Komal <[email protected]> wrote:
> Hi,
>
> I am using guice with a gae project.
> I am not able to the get instiantiated objects
>
> following is my module
>
> public class GGModule extends AbstractModule {
>
>                @Override
>                protected void configure() {
>                        bind(CrudHelper.class).to(GaeCrudHelper.class);
>                bind(PojoMapper.class).to(GaePojoMapper.class);
>                bind(PojoConverter.class).to(GaePojoConverter.class);
>        }
>
> }
>
>
> Please guide me as to where I am going wrong....

Your module does not extend ServletModule. It needs to do this, and
use the "serve()" method, for Guice to inject the servlet. You should
also check your web.xml, to make sure that GuiceFilter is correctly
configured. See the GAE guice:

http://code.google.com/p/google-guice/wiki/GoogleAppEngine

And also the main Servlets guide:

http://code.google.com/p/google-guice/wiki/Servlets

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to