Hi, Same thing happened earlier when I tried to run *DynaTableRf* example given in google tutorial.
The very first thing I dint understand is, how do we map the request url to our method?. com.google.gwt.requestfactory.server.RequestFactoryServlet is the class defined in gwt package, then how we say getPerson() request should call this method in this service class?. please correct me if I'm wrong anywhere. -- Sarjith On Fri, Feb 11, 2011 at 11:56 AM, $ a r j i t h Pullithodi < sarji...@gmail.com> wrote: > > On Fri, Feb 11, 2011 at 11:41 AM, Y2i <yur...@gmail.com> wrote: > >> There should be something like this in app's web.xml >> >> <servlet> >> <servlet-name>requestFactory</servlet-name> >> >> <servlet-class>com.google.gwt.requestfactory.server.RequestFactoryServlet</servlet-class> >> </servlet> >> <servlet-mapping> >> <servlet-name>requestFactory</servlet-name> >> <url-pattern>/gwtRequest</url-pattern> >> </servlet-mapping> >> >> > Yes, Its already there in my web.xml. > > And this is the error I can see in my eclipse console. > > > 11 Feb, 2011 11:48:04 AM > com.google.gwt.requestfactory.server.ReflectiveServiceLayer <clinit> > INFO: Unable to initialize a JSR 303 Bean Validator > javax.validation.ValidationException: Unable to find a default provider > at > javax.validation.Validation$GenericBootstrapImpl.configure(Validation.java:264) > at > javax.validation.Validation.buildDefaultValidatorFactory(Validation.java:111) > at > com.google.gwt.requestfactory.server.ReflectiveServiceLayer.<clinit>(ReflectiveServiceLayer.java:59) > at > com.google.gwt.requestfactory.server.ServiceLayer.create(ServiceLayer.java:66) > at > com.google.gwt.requestfactory.server.RequestFactoryServlet.<init>(RequestFactoryServlet.java:88) > at > com.google.gwt.requestfactory.server.RequestFactoryServlet.<init>(RequestFactoryServlet.java:74) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at java.lang.Class.newInstance0(Class.java:355) > at java.lang.Class.newInstance(Class.java:308) > 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.handle(ServletHandler.java:362) > 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:729) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at > org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49) > at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:324) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) > at > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) > at > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) > at > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) > 11 Feb, 2011 11:48:04 AM com.sample.model.Customer > SEVERE: There is no getVersion() method in type com.sample.model.Customer > 11 Feb, 2011 11:48:04 AM com.sample.model.Customer > SEVERE: There is no findCustomer method in type com.sample.model.Customer > that returns com.sample.model.Customer > 11 Feb, 2011 11:48:04 AM com.google.gwt.requestfactory.server.ServiceLayer > SEVERE: Type type com.sample.shared.CustomerProxy was previously marked as > bad > 11 Feb, 2011 11:48:04 AM > com.sample.shared.SampleRequestFactory.CustomerRequest > com.google.gwt.requestfactory.shared.Request getRandomCustomer() > SEVERE: The method getRandomCustomer is declared to return > com.google.gwt.requestfactory.shared.Request, but the service method is not > static > 11 Feb, 2011 11:48:04 AM com.google.gwt.requestfactory.server.ServiceLayer > SEVERE: Type type com.sample.shared.CustomerProxy was previously marked as > bad > 11 Feb, 2011 11:48:04 AM > com.google.gwt.requestfactory.server.ServiceLayerDecorator die > SEVERE: The RequestContext type > com.sample.shared.SampleRequestFactory$CustomerRequest did not pass > validation > 11 Feb, 2011 11:48:04 AM > com.google.gwt.requestfactory.server.RequestFactoryServlet doPost > SEVERE: Unexpected error > > >> -- >> 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. >> > > -- 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.