This is less about GWT and more about the Jetty embedded in the GWT and Tomcat handling things differently. There apparently is some ambiguity in the handling of "/" in the standard or one of them has a bug. I wrote a wrapper method to deal with it: Basically, if the path returned is null, it checks whether there is a "/" at he beginning , if there is, it removes it, if there is not, it adds it. This has made it work correctly across containers.
On Wednesday, January 6, 2016 at 12:32:29 PM UTC-7, RT wrote:
-- On Wednesday, January 6, 2016 at 12:32:29 PM UTC-7, RT wrote:
I just updated my 2.5.1 GWT app to 2.6.1. It all seems to work fine except that on the server side in my RPC handling code getServletContext().getRealPath(File.separator) returns null in 2.6.1 whereas in 2.5.1 it returned the local path: C:\Users\Paul\workspace\ MyApp\war Any idea how to correct this?Note: When deployed out to my Tomcat linux sever it works correctly. The problem is only when running from Eclipse in dev mode.
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment