Hi,
I'm deploying a GWT (1.7) application on Tomcat (6.0.20-5). The
problem is that when the RPC call is made an NoClassDefFoundError
exception is thrown:
java.lang.NoClassDefFoundError: com/google/gwt/user/server/rpc/
RPCServletUtils
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doUnexpectedFailure
(RemoteServiceServlet.java:285)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
...supressed...
The gwt-servlet.jar is present inside WEB-INF/lib otherwise
RemoteServiceServlet wouldn't be found. Enabling Tomcat's remote debug
and following the execution, the exception is thrown at
RemoteServiceServlet.java:343.
341 protected String readContent(HttpServletRequest request)
342 throws ServletException, IOException {
343return RPCServletUtils.readContentAsUtf8(request, true);
344 }
The class RPCServletUtils has a private constructor and only static
methods. Is there a chance that Tomcat's class loader is getting
confused with that?
Using the hosted mode's server it runs just fine.
Any ideas?
Regards,
Igor.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---