Tuesday, March 5, 2013

Re: NullPoniter when calling the DAO object (@Autowired) - GWT and Spring problem integration

Following the linked wiki page you should have

<servlet-mapping>
       
<servlet-name>springGwtRemoteServiceServlet</servlet-name>
       
<url-pattern>/springGwtServices/*</url-pattern>
</servlet-mapping>

and

@RemoteServiceRelativePath("springGwtServices/<spring bean name>")

So in your case probably: @RemoteServiceRelativePath("springGwtServices/GestionUserService")

You don't need to map your GestionUserService at all in web.xml, as its managed by Spring and not your servlet container. It doesn't even have to be a servlet anymore. Its just a Spring bean.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment