GWT on the "server" side is a Servlet, so it's basically plain Java. It depends on your environment and what you are doing exactly on why you might have a permissions problem, but it's likely not related in any way to GWT.
That said, what you are getting there is not a file system permissions error, but a Java security AccessException. Are you trying to do this in hosted mode? If you are trying to run in hosted mode, make sure you don't have the deploy to app engine thing checked, writing to files isn't supported on app engine, so the hosted mode container has the Java security settings set as such. If that's not the problem (or we aren't talking hosted mode), then you just need to look a little deeper at the Java security settings for whatever container you are using. http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/2a8f262671e27322 On Jun 18, 3:25 am, corto <[email protected]> wrote: > >I have some data in an xml file on the server. > >With gwt I read this file and parse it using DOM library and show some > >of the data to the client. > >The client modifies the data and sends back modified values to the > >server. > > >So far everything is correct and I am able to modify the DOM document > >in memory on the server side > > >My problem is when it comes to save the modified document back to its > >xml file on the server. > >gwt crashes with the message > > >"access denied, java.io.FilePermission myfile.xml write" > > >My question is how can we save a file on the server with GWT without > >having that problem ? > > I already tried to put write permission onto the xml file and it > crashes too. > I even tried to write on a new file with the same crash effect. > > I made the experiment with a plain servlet on tomcat reading a file, > modify the data and writing back to the file. > Everything work perfectly without crash > > So it has something to do with gwt I am pretty sure that there is a > solution to my problem. > > if some body has got that solution I would really enjoy sharing it > > Corto --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
