I figured it out. Accidentally, I used
com.google.gwt.dev.util.collect.HashSet instead of java.util.HashSet.
It works in eclipse, but not in tomcat, even if I put jar into WEB-INF/
lib directory.

On Jan 25, 1:16 pm, ailinykh <[email protected]> wrote:
> Hello, everybody!
> When I deploy my GWT application to tomcat I get this error message.
> Everything is Ok in eclipse. The class com/google/gwt/dev/util/collect/
> HashSet
> is located int gwt-dev.jar. I put this jar into WEB-INF/lib folder,
> but still no luck. Any ideas what is wrong?
>
> Thank you,
>   Andrey
>
> SEVERE: Exception while dispatching incoming RPC call
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract com.ais.slist.shared.SLItem[]
> com.ais.slist.client.ListManagerService.addSLItems(int,int,long[])
> throws com.ais.slist.shared.NotAuthorizedException' threw an
> unexpected exception: java.lang.NoClassDefFoundError: com/google/gwt/
> dev/util/collect/HashSet
>         at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
> (RPC.java:378)
>         at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:581)
>         at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> (RemoteServiceServlet.java:188)
>         at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost
> (RemoteServiceServlet.java:224)
>         at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
> (AbstractRemoteServiceServlet.java:62)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:290)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:206)

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