Access denied in a .jsp

  • Thread starter christophe.hirotani
  • Start date
C

christophe.hirotani

Hello,

I am encountering a problem in a .jsp (running under Tomcat 5.0) that
tries to create a file in a shared resource (openned with the "net use"
command under Windows on a directory on another machine) : I get an
"access denied" error.

"test.jsp" would try to create "test.txt" in S: which is the shared
resource, and would get the following error :

java.io.FileNotFoundException: S:\test.txt (Access denied)

It seems that this error doesn't occur if I run test.jsp under
WebSphere.

Does anyone have a clue ?
Thanks
 
Z

zero

(e-mail address removed) wrote in @g44g2000cwa.googlegroups.com:
Hello,

I am encountering a problem in a .jsp (running under Tomcat 5.0) that
tries to create a file in a shared resource (openned with the "net use"
command under Windows on a directory on another machine) : I get an
"access denied" error.

"test.jsp" would try to create "test.txt" in S: which is the shared
resource, and would get the following error :

java.io.FileNotFoundException: S:\test.txt (Access denied)

It seems that this error doesn't occur if I run test.jsp under
WebSphere.

Does anyone have a clue ?
Thanks

Are you sure that "everyone" has write access to S:\? You'll need not just
normal write privileges, but also "create files".

With regards to security this is not a good idea, but for testing you may
want to give all privileges to everyone - don't do this if the host is
accessible from the internet though. If you're working in a local network
without internet access it should be fine.
 
C

christophe.hirotani

I gave it a try : all privileges to "everyone". But no changes...


zero a écrit :
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top