See
http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html.
Make sure you read the section on "Implementing Services". Post back here if
you have any problems.
On Sat, Jul 25, 2009 at 2:48 AM, Simon <[email protected]> wrote:

>
> >>How are you associating the servlet with your module?
> I think that is the part I am confused.
> If I have two modules, how do I specify the association of the servlet
> and the module?
> it seems my servlet can only be used on the default module created by
> eclipse plugin
>
> Thanks
>
>
>
> On Jul 24, 5:40 am, Rajeev Dayal <[email protected]> wrote:
> > Can you post the code for the servlet you're trying to add?
> > Also, when you say that you added a new servlet for the setup module,
> what
> > exactly do you mean? How are you associating the servlet with your
> module?
> >
> >
> >
> > On Fri, Jul 24, 2009 at 3:07 AM, Simon <[email protected]> wrote:
> >
> > > hi, sorry, I am a newbie on this.
> >
> > > I used eclipse to create the project, and I added a new module called
> > > setup (so I have two modules)
> > > then I tried to add a new servlet for the setup module, but I got the
> > > following error message, if I add a servlet for the original module,
> > > it will be fine. GWT document does not seem to have much document to
> > > discuss multiple modules.
> >
> > > Here is the web.xml that I used for new servlet for the new module
> > >  <servlet>
> > >    <servlet-name>testServlet</servlet-name>
> > >    <servlet-class>com.simon.chutian.store1.server.TestServiceImpl</
> > > servlet-class>
> > >  </servlet>
> >
> > >  <servlet-mapping>
> > >    <servlet-name>adduserServlet</servlet-name>
> > >    <url-pattern>/setup/adduser</url-pattern>
> > >  </servlet-mapping>
> >
> > > my new module is renamed to "setup", I directly added the new module
> > > in the existing project. I think there must be something wrong with
> > > the path settings or maybe the servlet mapping, Can anyone help?
> >
> > > Thanks
> >
> > > Jul 24, 2009 6:44:25 AM com.google.apphosting.utils.jetty.JettyLogger
> > > warn
> > > WARNING: /setup/adduser
> > > java.lang.InstantiationException
> > >        at
> > > sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance
> > > (Unknown Source)
> > >        at java.lang.reflect.Constructor.newInstance(Unknown Source)
> > >        at java.lang.Class.newInstance0(Unknown Source)
> > >        at java.lang.Class.newInstance(Unknown Source)
> > >        at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
> > >        at org.mortbay.jetty.servlet.ServletHolder.getServlet
> > > (ServletHolder.java:339)
> > >        at
> > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> > > 463)
> > >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > > (ServletHandler.java:1093)
> > >        at
> > > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> > > (TransactionCleanupFilter.java:43)
> > >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > > (ServletHandler.java:1084)
> > >        at org.mortbay.jetty.servlet.ServletHandler.handle
> > > (ServletHandler.java:360)
> > >        at org.mortbay.jetty.security.SecurityHandler.handle
> > > (SecurityHandler.java:216)
> > >        at org.mortbay.jetty.servlet.SessionHandler.handle
> > > (SessionHandler.java:181)
> > >        at org.mortbay.jetty.handler.ContextHandler.handle
> > > (ContextHandler.java:712)
> > >        at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> > > 405)
> > >        at
> > > com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
> > > (DevAppEngineWebAppContext.java:54)
> > >        at org.mortbay.jetty.handler.HandlerWrapper.handle
> > > (HandlerWrapper.java:139)
> > >        at com.google.appengine.tools.development.JettyContainerService
> > > $ApiProxyHandler.handle(JettyContainerService.java:306)
> > >        at org.mortbay.jetty.handler.HandlerWrapper.handle
> > > (HandlerWrapper.java:139)
> > >        at org.mortbay.jetty.Server.handle(Server.java:313)
> > >        at
> > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> > > 506)
> > >        at org.mortbay.jetty.HttpConnection$RequestHandler.content
> > > (HttpConnection.java:844)
> > >        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
> > >        at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
> > >        at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
> > >        at org.mortbay.io.nio.SelectChannelEndPoint.run
> > > (SelectChannelEndPoint.java:396)
> > >        at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> > > (BoundedThreadPool.java:442)- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to