What did you try and what was the outcome?
-- BTW, the <servlet> in gwt.xml has nothing to do with the <servlet> from WEB-INF/web.xml.
See http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml for the description of the <servlet> element in gwt.xml files.
In your case, it'd be <servlet path="/springGwtServices/greetingService" class="org.spring4gwt.server.SpringGwtRemoteServiceServlet"/> (note that you cannot use wildcard patterns in <servlet> in gwt.xml; I have no idea if that non-wildcard path will work with the spring4gwt servlet)
On Tuesday, January 6, 2015 11:15:05 AM UTC+1, Olivier M. wrote:
On Tuesday, January 6, 2015 11:15:05 AM UTC+1, Olivier M. wrote:
Hi,
I'm learning GWT, trying to set up a "Hello World" project using Maven, Spring, GWT, Hibernate.
I'm trying to add some unit tests.
The same problem occurs for me, but I can't manage how to add a <servlet> element in the .gwt.xml module file.$ mvn gwt:test
...
[INFO] Running com.hellogwt.client.GwtTestGreetingService
[INFO] Starting http://127.0.1.1:47359/com.hellogwt.HelloGWT.JUnit/junit. on browser FF17html?gwt.codesvr=127.0.1.1: 39835
[INFO] 200 - GET /com.hellogwt.HelloGWT.JUnit/junit.html?gwt.codesvr=127.0. 1.1:39835 (127.0.0.1) 2064 bytes
[INFO] 200 - GET /com.hellogwt.HelloGWT.JUnit/com.hellogwt.HelloGWT.JUnit. nocache.js (127.0.0.1) 8194 bytes
[INFO] 200 - GET /com.hellogwt.HelloGWT.JUnit/com.hellogwt.HelloGWT.JUnit. devmode.js (127.0.0.1) 14986 bytes
[INFO] 200 - GET /com.hellogwt.HelloGWT.JUnit/gwt/standard/standard.css (127.0.0.1) 22259 bytes
[INFO] Module com.hellogwt.HelloGWT.JUnit has been loaded
[INFO] 200 - POST /com.hellogwt.HelloGWT.JUnit/junithost (127.0.0.1) 214 bytes
[INFO] [WARN] 404 - POST /com.hellogwt.HelloGWT.JUnit/springGwtServices/ greetingService (127.0.0.1) 1426 bytes
This is the whole source: https://github.com/eliovir/hellogwt/tree/failed-rpc- gwttestcase
Thanks for your help.
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.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment