|
Is Tomcat running as a Windows service? If so, and it is running with the default system account, then Windows will not allow it to access network resources. You can workaround this by changing the service to run as a specific domain account. However, I do not think the drive mapping would be visible to the service, you would probably need to use a UNC path name. \\Server\Share\Dir\File.ext Mark To java400-l@xxxxxxxxxxxx cc bcc Subject accessing files from IFS folder through web application Ashish Kulkarni <kulkarni_ash1312@xxxxxxxxx> Sent by: java400-l-bounces@xxxxxxxxxxxx 01/07/2004 03:33 PM PST <HR><font size=-1>Please respond to Java Programming on and around the iSeries / AS400 <java400-l@xxxxxxxxxxxx></font><HR> <font size=-1></font> Hi I am running tomcat on my windows 2000 machine, I have mapped IFS folder to my machine, so i can access files from IFS I have a pdf file in L:\cxash\test.pdf (where L is my mapped drive) , which i am trying to access thrugh servlet, So in my servlet my code looks like this File file = new File("L:\\cxash\\test.pdf"); But i am getting following error java.io.FileNotFoundException: L:\cxash\test.pdf (Access is denied) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:103) how do i set the folder authority, I need to read this pdf file and display it in IE Ashish __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.