Hello Stephan,

The leading slash was the problem. Thanks for your help really.

cscsaba

On Feb 17, 8:32 pm, Stephan Hartmann <[email protected]> wrote:
> 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 <[email protected]>
>
> > 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 <[email protected]> wrote:
> > > i think the correct pattern is "**/*.csv"
>
> > > 2010/2/17 cscsaba <[email protected]>
>
> > > > 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
> > > > [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<google-appengine-java%[email protected]>
> > <google-appengine-java%[email protected]<google-appengine-java%[email protected]>
>
> > > > .
> > > > 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
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-appengine-java%[email protected]>
> > .
> > 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 [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-appengine-java?hl=en.

Reply via email to