You receive these errors because you have defined one or more methods in 
your DataBaseConn service to throw a ClassNotFoundException and a 
SQLException. Because these service interfaces are in the client package, 
GWT tries to compile them into javascript. But the GWT compiler only 
supports java classes listed at 
http://code.google.com/intl/en-EN/webtoolkit/doc/latest/RefJreEmulation.html

You have to define your own exception, something like "public class 
DatabaseException extends Throwable" and use this exception instead of 
ClassNotFoundException and SQLException. So in your server implementation of 
your DataBaseConn service you have to catch these two exceptions and throw 
your DatabaseException with a meaningful exception message.

Well and just make sure your database jdbc jar is in <war 
directory>/WEB-INF/lib.

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

Reply via email to