How do you access your file?
I use

ServletContext.getResourceAsStream("/csv/countries.csv");

If you use java.io.File, AFAIK you have to use a path relative to your
webapp folder without leading slash, e.g.

  new File("csv/countries.csv");

regards,
Stephan

2010/2/17 cscsaba <strongfr...@gmail.com>

> Hello Stephan,
>
> I have tried several combination of include path without result.
> http://imagebin.org/85235
> It seems to me something other factor prevent reading this csv.
> Have you tried to read resource file on GAE ?
>
>
> On Feb 17, 7:22 pm, Stephan Hartmann <hartm...@metamesh.de> wrote:
> > i think the correct pattern is "**/*.csv"
> >
> > 2010/2/17 cscsaba <strongfr...@gmail.com>
> >
> > > Hello,
> >
> > > What is the right way to reading files on GAE
> > > I made this preparation below in appengine-web.xml
> > > ...
> > > <resource-files>
> > >            <include path="/**.csv" />
> > >   </resource-files>
> > > ...
> >
> > > but I got this error:
> > > exception :access denied (java.io.FilePermission \\csv\countries.csv
> read)
> > > / java.securit
> > > nied (java.io.FilePermission \\csv\countries.csv read)
> >
> > > Thanks ahead.
> >
> > > cscsaba
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to
> > > google-appengine-j...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com>
> <google-appengine-java%2bunsubscr...@googlegroups.com<google-appengine-java%252bunsubscr...@googlegroups.com>
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com<google-appengine-java%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to