Re: help on a servlet issue

2009-07-29 Thread Simon

I think there might be something wrong with my web.xml setting

I just add a new module and some servlet calls, it returns correctly.

Thanks


On Jul 27, 7:54 am, Rajeev Dayal  wrote:
> Seehttp://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication
> 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  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  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  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
> > > >  
> > > >    testServlet
> > > >    com.simon.chutian.store1.server.TestServiceImpl > > > servlet-class>
> > > >  
>
> > > >  
> > > >    adduserServlet
> > > >    /setup/adduser
> > > >  
>
> > > > 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 -- Hide quoted text -
>
> - Show quoted text -
--~--~-

Re: help on a servlet issue

2009-07-27 Thread Rajeev Dayal
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  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  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  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
> > >  
> > >testServlet
> > >com.simon.chutian.store1.server.TestServiceImpl > > servlet-class>
> > >  
> >
> > >  
> > >adduserServlet
> > >/setup/adduser
> > >  
> >
> > > 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 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-T

Re: help on a servlet issue

2009-07-24 Thread Simon

>>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  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  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
> >  
> >    testServlet
> >    com.simon.chutian.store1.server.TestServiceImpl > servlet-class>
> >  
>
> >  
> >    adduserServlet
> >    /setup/adduser
> >  
>
> > 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 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
-~--~~~~--~~--~--~---



Re: help on a servlet issue

2009-07-24 Thread Rajeev Dayal
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  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
>  
>testServlet
>com.simon.chutian.store1.server.TestServiceImpl servlet-class>
>  
>
>  
>adduserServlet
>/setup/adduser
>  
>
> 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)
>
> >
>

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



help on a servlet issue

2009-07-24 Thread Simon

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
 
testServlet
com.simon.chutian.store1.server.TestServiceImpl
  

  
adduserServlet
/setup/adduser
  

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)

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