Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

Access denied in a .jsp

Thread view: 
christophe.hirotani@gmail.com - 08 Dec 2005 17:17 GMT
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
zero - 08 Dec 2005 20:02 GMT
christophe.hirotani@gmail.com wrote in news:1134062240.846533.10260
@g44g2000cwa.googlegroups.com:

> Hello,
>
[quoted text clipped - 13 lines]
> 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.

Signature

Beware the False Authority Syndrome

christophe.hirotani@gmail.com - 09 Dec 2005 08:27 GMT
I gave it a try : all privileges to "everyone". But no changes...

zero a écrit :

> christophe.hirotani@gmail.com wrote in news:1134062240.846533.10260
> @g44g2000cwa.googlegroups.com:
[quoted text clipped - 24 lines]
> accessible from the internet though.  If you're working in a local network
> without internet access it should be fine.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.