Hi, if you are using Maven you do not need to define a servlet mapping in any web.xml manually in case of inheriting modules. The GWT Maven plugin is capable of merging servlet mappings declared in a super-module's gwt.xml into the inheriting module's web.xml for you; see the goal "gwt:mergewebxml".
You must use the <servlet> tag in the module descriptor xml and NOT in the web.xml to declare servlets to pass to inheriting modules. Maybe someone else can tell you how the merge functionality may be used without Maven by the GWT compiler itself? Regards, Andreas 2010/12/7 Brian Reilly <[email protected]> > You do have to declare the servlet in the web.xml of the main module. > As such, you have to treat it like it's in the main module. I suspect > the "metro.module.rpcpack" part of the url-pattern is the problem. The > URL pattern is determined by the main module name, not the inherited > module name or the package containing the RPC code. > > -Brian > > On Tue, Dec 7, 2010 at 12:17 PM, Metronome / Basic > <[email protected]> wrote: > > It certainly is but I cannot find it > > > > I tried > > <servlet> > > > > <servlet-name>userServlet</servlet-name> > > > > > <servlet-class>metro.module.rpcpack.server.MyModServiceImpl</servlet-class> > > > > </servlet> > > > > > > <servlet-mapping> > > > > <servlet-name>userServlet</servlet-name> > > > > <url-pattern>/metro.module.rpcpack/modervice</url-pattern> > > > > </servlet-mapping> > > > > in the web.xml of the main module > > metro.module.rpcpack is the package name of the module with the rpc > > > > should the declaration of the servlet be in the main module ? > > what is the path > > > > I cannot sort it out > > > > Thanks > > > > Patrick > > > > ----- Original Message ----- From: "Didier Durand" < > [email protected]> > > To: "Google Web Toolkit" <[email protected]> > > Sent: Tuesday, December 07, 2010 1:08 PM > > Subject: Re: RPC in separate module > > > > > > Hi, > > > > Everything you need is detailed here: > > > http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html > > > > On Dec 7, 11:06 am, coelho <[email protected]> wrote: > >> > >> Hello > >> > >> I'm trying to bild a small application using RPC to acces SQL data > >> ( jdbc ) > >> > >> It works no problem so far > >> > >> I'd like this application to use modules , so that the code could be > >> reused in others > >> > >> so I'd like to put the SQL parts in a separate module > >> > >> and the question is : > >> > >> How do You declare a servlet that is not in the main module > >> ( application) > >> > >> or am I missing something ? ( probably) > >> > >> Thanks for reading > >> > >> Patrick > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to [email protected] > . > > To unsubscribe from this group, send email to > > [email protected]<google-web-toolkit%[email protected]> > . > > For more options, visit this group at > > http://groups.google.com/group/google-web-toolkit?hl=en. > > > > > > > > > > ----- > > Aucun virus trouvé dans ce message. > > Analyse effectuée par AVG - www.avg.fr > > Version: 10.0.1170 / Base de données virale: 426/3301 - Date: 06/12/2010 > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to [email protected] > . > > To unsubscribe from this group, send email to > > [email protected]<google-web-toolkit%[email protected]> > . > > For more options, visit this group at > > http://groups.google.com/group/google-web-toolkit?hl=en. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
