OK, my fault (of course)!

I need to change the web.xml to this one, since my service is being
called from a subdirectory.

<servlet>
     <servlet-name>RegisterService</servlet-name>
     <servlet-
class>com.myapp.module.register.server.RegisterServiceImpl</servlet-
class>
</servlet>
<servlet-mapping>
     <servlet-name>RegisterService</servlet-name>
     <url-pattern>/register/registerservice</url-pattern>
</servlet-mapping>

Thanks waf!!



On Jul 13, 8:41 pm, Dariusz <darius...@gmail.com> wrote:
> Hmm, I don't know exactly what you mean and what do I need to change.
> Here is my RegisterService, maybe you can take a look.
>
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.user.client.rpc.RemoteService;
> import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
> import com.google.gwt.user.client.rpc.ServiceDefTarget;
>
> @RemoteServiceRelativePath("registerservice")
> public interface RegisterService extends RemoteService {
>
>         public static class Util {
>
>                 public static RegisterServiceAsync getInstance() {
>
>                         return GWT.create(RegisterService.class);
>                 }
>         }
>
>         public void registerUser( String firstName, String lastName, String
> email );
>
> }
>
> My snippet of my web.xml looks like this:
>
>         <servlet>
>                 <servlet-name>RegisterService</servlet-name>
>                 
> <servlet-class>com.myapp.module.register.server.RegisterServiceImpl</
> servlet-class>
>         </servlet>
>         <servlet-mapping>
>                 <servlet-name>RegisterService</servlet-name>
>                 <url-pattern>/registerservice</url-pattern>
>         </servlet-mapping>
>
> Thanks!!
>
> On Jul 13, 8:08 pm, waf <wlod...@gmail.com> wrote:
>
> > Hi,
>
> > As a matter of fact each GWT entry point module is placed in a
> > separate
> > subdirectory of your app war directory (i.e. in a separate
> > subdirectory
> > of server root or your application context after app deployment).
> > If you want to move module startup html and css it's a matter of
> > changing the src of module bootstrap JS moduleA.nocache.js
> > instead of moduleA/moduleA.nocache.js
>
> > As for the RPC just configure servlet mapping in your web.xml
> > to suite your needs.
>
> > --
> > waf
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to