My point was to help him diagnose his file not found, not to know where the server is storing his app. I assume he is using relative paths and they may not be relative to where they should be.
------------------------------------- Timothy Perrett<[email protected]> wrote: If you need to get the absolute path where the exploded war is living, you can get that via ServletContext I do believe. Generally speaking, Lift provides no mechanism for writing stuff to the filesystem and does not interfere with file i/o. Cheers, Tim On Jul 5, 9:15 pm, Naftoli Gugenhem <[email protected]> wrote: > Why would lift interfere with file io? Resource server is probably for static > http. If you're getting file not found I can't imagine it's lift's fault. Try > dumping new java.io.File(".").listFiles() or .getAbsolutePath etc. to see > what directory is the default. What kind of server are you using? > > ------------------------------------- > > glenn<[email protected]> wrote: > > Thanks, Marius. > > Now, is there something similar for writing XML to a file. I saw > nothing on LiftRules that > seems to apply. > > Glenn... > > On Jul 4, 12:36 am, "marius d." <[email protected]> wrote: > > > > > Try LiftRules.loadResourceAsXml > > > Br's, > > Marius > > > On Jul 4, 1:11 am, glenn <[email protected]> wrote: > > > > I've searched this group and combed through the lift book for an > > > answer, but found none - how to use file-based storage for data within > > > Lift. > > > > For example, how would I call something like: > > > > def xml = XML.loadFile(<fileName>) > > > > without getting a java.io.FileNotFoundException? > > > > I tried storing the files in a directory under webapp, and even > > > included the directory in the resource path in Boot.scala, like so: > > > > ResourceServer.allow({ > > > case "contents" :: _ => true > > > > }) > > > > But that doesn't work. > > > > Any help would be appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" 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/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
