Hi Max, Did you include dozer-5.0.jar and the apache commons-*.jar in your war/WEB-INF/lib folder?
Regards. On Tue, Jun 23, 2009 at 7:41 PM, Max <[email protected]> wrote: > > Thanks Alejandro. > You example really helped me understand how this should work. Now I > know that it's better to use DTO. > > I just tried to create two classes and use Dozer library but when I'm > trying to instantiate it on my server i'm getting this error: > > SEVERE: [1245796455609000] javax.servlet.ServletContext log: Exception > while dispatching incoming RPC call > com.google.gwt.user.server.rpc.UnexpectedException: Service method > 'public abstract com.athena.client.entities.Person > com.athena.client.GreetingService.getPerson > (com.athena.client.entities.Person)' threw an unexpected exception: > java.lang.NoClassDefFoundError: org/dozer/DozerBeanMapper > at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure > (RPC.java:360) > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse > (RPC.java:546) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall > (RemoteServiceServlet.java:166) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost > (RemoteServiceServlet.java:86) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: > 487) > 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) > Caused by: java.lang.NoClassDefFoundError: org/dozer/DozerBeanMapper > at com.athena.converters.PersonConverter.<clinit> > (PersonConverter.java:11) > at com.athena.server.GreetingServiceImpl.getPerson > (GreetingServiceImpl.java:39) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse > (RPC.java:527) > ... 25 more > > > Do you know what can cause that problem? I tried to include all > libraries that you have in your project but still no luck. > > Thanks > > Max > > > On Jun 22, 6:57 am, "Alejandro D. Garin" <[email protected]> wrote: > > Hi, > > > > I wrote a little example with source code, have a look at: > > > > http://puntosoft2k.appspot.com/gwt_gae_example.html > > > > Please tell me if was usefull to you. > > > > Thanks. > > > > On Thu, Jun 18, 2009 at 5:43 PM, Max <[email protected]> wrote: > > > > > To learn GWT and Google AppEngine (GAE) I'm trying to create a simple > > > application using GWT with two classes (entities). In this application > > > one object, let's say Student, encapsulates Array/List of other > > > objects, say Classes and Books. Then it creates list of Students and > > > sends it to Java code on GAE and stores it to the data store. Then I'm > > > planning to retrieve these data back and send it to GWT. > > > > > Question: is it possible to do this kind of stuff using GWT + GAE + > > > Google DataStore? Are there any examples/tutorials of using all these > > > technologies at once? > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
