On 03/22/2013 03:12 AM, Kris wrote:
Simple GWT example...web.xml *<!-- Servlets -->* *<servlet>* *<servlet-name>PrintProviderMockServlet</servlet-name>* *<servlet-class>com.farheap.jsi.ppmock.server.PrintProviderMockServiceImpl</servlet-class>* *</servlet>* * * *<servlet-mapping>* *<servlet-name>PrintProviderMockServlet</servlet-name>* *<url-pattern>/ppmock</url-pattern>* *</servlet-mapping>* * * RPC on server : /** * The server side implementation of the RPC service. */ public class PrintProviderMockServiceImpl extends RemoteServiceServlet implements PrintProviderMockService { .... } I have a simple button on a page that does a RPC call.. But when clicking the button the url is not correct... From the chrome debugger POST http://localhost:8080/ppmock/ppmock/ppmock 404 (Not Found) Where does all these ppmock come from ?? -- 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 [email protected]. To post to this group, send email to [email protected]. 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.
This is not really an direct answer to your question, but if you are deploying in non-restrictive environment like Tomcat or JBoss, then maybe you can try out JBoss Errai, it removes all the pain of doing RPC with GWT...
You don't have to do all those manual setup of RPC servlets and boilerplate code...
-- 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 [email protected]. To post to this group, send email to [email protected]. 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.
