Please try something like this String filePath = "/WEB-INF/" + fileName ; InputStream inputStream = getServletContext().getResourceAsStream(filePath);
J.Ganesan www.DataStoreGwt.com Persist objects directly in App Engine On Oct 15, 3:04 pm, "m...@grayout.de" <m...@grayout.de> wrote: > Hi all > > I have problems accessing files stored on the server side in hosted > mode. Development mode workis fine! > > The file data.xls is stored in war/resources/ > > I access the FIle using > > File f = new File("resources/data.xls") > > This works fine in development mode. In hosted mode, running on > TOMCAT, I get an Exception saying that the given file path is invalid. > > Can anybody help me? What is the path referencing the file in hosted > mode? > > Best regards and thanks in advance, > > Uli -- 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.