[appengine-java] Re: File path in App Engine

2010-01-07 Thread Ftaylor
Hello,

I have tried this but I always get a
java.security.AccessControlException: access denied
(java.io.FilePermission /names.txt read)

Anyone know how to resolve this?

Thanks,

Finbarr

On Jan 7, 3:32 am, m seleron seler...@gmail.com wrote:
 Hi,

 It might be solved by this though is not a direct answer.

 Follow this 
 thread:http://groups.google.co.jp/group/google-appengine-java/browse_thread/...

 Please Try.
 thanks.



  Hello,

  I have recently started using App Engine for a project I am working
  on, and I have a simple question.

  I have a file in the war/WEB-INF directory of my app filename.txt.
  When I try BufferedReader b = new BufferedReader(new FileReader(new
  File(filename.txt))); I get a FileNotFoundException.

  What path should I use when trying to access files in the war/WEB-INF
  directory? I have tried what seem to me to be the obvious ones and I
  have read the faq on this (which just tells you to put files in that
  directory).

  Thanks,

  Finbarr
-- 
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.




[appengine-java] Re: File path in App Engine

2010-01-07 Thread m seleron
I tried a little.

I put the file(names.txt) in /WEB-INF directly

The following are sources that I tested.

String FileName = names.txt;
File file = new File(FileName);
BufferedReader bufferedReader = new BufferedReader(new FileReader
(file));

The processing seems in my test for normality.

I might not correctly understand the content of the question or
There is a possibility it is not in the cause for the source code not
to be able to read a file but in the cause with the environment, too.

Please Confirm.
thanks.



 Hello,

 I have tried this but I always get a
 java.security.AccessControlException: access denied
 (java.io.FilePermission /names.txt read)

 Anyone know how to resolve this?

 Thanks,

 Finbarr

 On Jan 7, 3:32 am, m seleron seler...@gmail.com wrote:

  Hi,

  It might be solved by this though is not a direct answer.

  Follow this 
  thread:http://groups.google.co.jp/group/google-appengine-java/browse_thread/...

  Please Try.
  thanks.

   Hello,

   I have recently started using App Engine for a project I am working
   on, and I have a simple question.

   I have a file in the war/WEB-INF directory of my app filename.txt.
   When I try BufferedReader b = new BufferedReader(new FileReader(new
   File(filename.txt))); I get a FileNotFoundException.

   What path should I use when trying to access files in the war/WEB-INF
   directory? I have tried what seem to me to be the obvious ones and I
   have read the faq on this (which just tells you to put files in that
   directory).

   Thanks,

   Finbarr


-- 
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.




[appengine-java] Re: File path in App Engine

2010-01-07 Thread Ftaylor
I got it to work by just using a File. Didn't change anything, it just
seemed to start working of its own accord.

Finbarr

On Jan 7, 10:46 am, Ftaylor finbarrtay...@googlemail.com wrote:
 Hello,

 I have tried this but I always get a
 java.security.AccessControlException: access denied
 (java.io.FilePermission /names.txt read)

 Anyone know how to resolve this?

 Thanks,

 Finbarr

 On Jan 7, 3:32 am, m seleron seler...@gmail.com wrote:



  Hi,

  It might be solved by this though is not a direct answer.

  Follow this 
  thread:http://groups.google.co.jp/group/google-appengine-java/browse_thread/...

  Please Try.
  thanks.

   Hello,

   I have recently started using App Engine for a project I am working
   on, and I have a simple question.

   I have a file in the war/WEB-INF directory of my app filename.txt.
   When I try BufferedReader b = new BufferedReader(new FileReader(new
   File(filename.txt))); I get a FileNotFoundException.

   What path should I use when trying to access files in the war/WEB-INF
   directory? I have tried what seem to me to be the obvious ones and I
   have read the faq on this (which just tells you to put files in that
   directory).

   Thanks,

   Finbarr
-- 
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.




[appengine-java] Re: File path in App Engine

2010-01-06 Thread m seleron

Hi,

It might be solved by this though is not a direct answer.

Follow this thread:
http://groups.google.co.jp/group/google-appengine-java/browse_thread/thread/474203bfe0936636/080b511624096ba8#080b511624096ba8

Please Try.
thanks.


 Hello,

 I have recently started using App Engine for a project I am working
 on, and I have a simple question.

 I have a file in the war/WEB-INF directory of my app filename.txt.
 When I try BufferedReader b = new BufferedReader(new FileReader(new
 File(filename.txt))); I get a FileNotFoundException.

 What path should I use when trying to access files in the war/WEB-INF
 directory? I have tried what seem to me to be the obvious ones and I
 have read the faq on this (which just tells you to put files in that
 directory).

 Thanks,

 Finbarr
-- 
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.