0

To integrate spring in my gwt application i added spring4gwt and i followed the tutorial in SimpleRPCExample. But it doesn't work, however everything in configuration and code seems OK.

So this what i put in application context to scan servlets

<context:component-scan base-package="com.protid.prosa.server" />    

I tagged my SaService interface with @RemoteServiceRelativePath("sab/travaux") and the SaServiceImpl Service with @Service("travaux")

The user interface is loaded but the rpc call doesn't work. Can any body tell me where is the mistake i did, or what is the best approach to integer spring with gwt. Thank you,

And this is how i added the servlet to my web.xml

<servlet> 
    <servlet-name>springGwtRemoteServiceServlet</servlet-name> 
    <servlet-class>org.spring4gwt.server.SpringGwtRemoteServiceServlet</servlet-clas‌​s>
</servlet> 
<servlet-mapping> 
    <servlet-name>springGwtRemoteServiceServlet</servlet-name> 
    <url-pattern>/prosa/sab/*</url-pattern> 
</servlet-mapping>
Majid Laissi
  • 19,188
  • 19
  • 68
  • 105
  • and this is how i added the servlet to my web.xml springGwtRemoteServiceServlet org.spring4gwt.server.SpringGwtRemoteServiceServlet springGwtRemoteServiceServlet /prosa/sab/* – sabrina sahli May 15 '13 at 13:12
  • what error are you getting ? do you see anything unusual in the server log ? – Majid Laissi May 16 '13 at 22:10
  • have you actually added `springframework` to your project? the `ContextLoaderListener` to your `web.xml` ? – Majid Laissi May 16 '13 at 22:20

0 Answers0