Hi,
I want to use gwt-rpc-comm-layer in my NetBeans GWT-RPC style project
(Glassfish app server). I had no luck integrating it with my project
so I have just created a new NetBeans project that is basically a copy
of the Eclipse example project provided to see if I can get that
working, but I'm getting the same problem. When I run Main.java I see
the following error message:
run-main:
doSynchronousCalls --Start--
HTTP_ERROR code=404 Not Found
java.lang.RuntimeException: No valid GwtRpcCommLayerPojoResponse
returned. Check for http errors in log.
at
com.seguedevelopment.gwtrpccommlayer.client.GwtRpcClientSideProxy.invoke_synchronousMode(GwtRpcClientSideProxy.java:
173)
at
com.seguedevelopment.gwtrpccommlayer.client.GwtRpcClientSideProxy.invoke(GwtRpcClientSideProxy.java:
195)
at $Proxy0.myMethod(Unknown Source)
at com.test.Main.doSynchronousCalls(Main.java:117)
at com.test.Main.run(Main.java:150)
at com.test.Main.main(Main.java:167)
"myMethod" is basically the same as addUserFormData however I'm just
passing Strings instead of UserFormData objects.
So it seems to me like there is a problem with the URL I am using in
Main.java
When I deploy my GWT-RPC app in debug mode, the launch page URL is
"
http://localhost:8080/CodenesExampleGWT_GWTRPCCOMMLAYER/?
gwt.codesvr=
127.0.0.1:9997"
My web.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="
http://java.sun.com/xml/ns/javaee"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<servlet>
<servlet-name>ExampleGWTService</servlet-name>
<servlet-class>com.server.ExampleGWTServiceImpl</servlet-
class>
</servlet>
<servlet-mapping>
<servlet-name>ExampleGWTService</servlet-name>
<url-pattern>/com.codenes/examplegwtservice</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>welcomeGWT.html</welcome-file>
</welcome-file-list>
</web-app>
The URL I am specifying in Main.java is "
http://127.0.0.1:8080/
com.codenes/examplegwtservice?gwt.codesvr=
127.0.0.1:9997"
Any idea what I am doing wrong?
Thanks,
Vanessa