It isn't recomend use gwt-dev in server side. It have a lot of libs inner the jar.
2011/3/29 Matt <viper2...@gmail.com> > The code in question is located in gwt-dev.jar and when I do use that > jar it works. It just seems odd that they would place a class inside > of gwt-servlet.jar and not have it fully function. I am a bit hesitant > to put gwt-dev.jar on my classpath as it is not supposed to be used > server side. Perhaps I am just standing on principle. > > Thanks for your help. > > --Matt-- > > On Mar 25, 12:35 pm, Juan Pablo Gardella <gardellajuanpa...@gmail.com> > wrote: > > I suppose you need some class in the server side. Put gwt-user.jar in > server > > side and test > > > > 2011/3/25 Matt <viper2...@gmail.com> > > > > > > > > > > > > > > > > > I am trying to use the SafeHtmlUtils class on the server side to make > > > sure some HTML I am sending back to the client side is placed in a > > > SafeHtml object before it is returned. I am assuming it can be used on > > > the server side as its package name is com.google.gwt.safehtml.shared > > > and the class is inside of the gwt-servlet.jar When I go and call > > > SafeHtmlUtils.fromSafeConstant() I get a NoClassDefFoundError (below). > > > > > java.lang.NoClassDefFoundError: com/google/gwt/thirdparty/ > > > streamhtmlparser/ParseException > > > at > > > > > > com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant(SafeHtmlUtils > .java: > > > 79) > > > > > I found the class/package that it was looking for in the gwt-dev.jar. > > > I am wondering if this is a bug that should be reported to Google or > > > is the SafeHtmlUtils class not allowed to be used on the server side? > > > > > Thanks. > > > > > -- > > > 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. > > -- 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.