File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Unable to read Network File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Unable to read Network File" Watch "Unable to read Network File" New topic
Author

Unable to read Network File

rocky raghu
Greenhorn

Joined: Jun 16, 2006
Posts: 2
Hi guys,
I am facing a serious problem while reading a file thro network in my
web application.My App Server is iPlanet 6.0.I tried using weblogic and it is working fine

The following code works fine in Weblogic,but it does not work in Iplanet6.0 server.

File dir1=new File("\\\\3.222.222.22\\logs\\20060616.log");
System.out.println(" dir1.exists()-->"+ dir1.exists());
System.out.println(" dir1.exists()-->"+ dir1.getAbsolutePath());

File dir2=new File("G:\\Logs\\20060616.log");
System.out.println(" dir2.exists()-->"+ dir2.exists());
System.out.println(" dir2.exists()-->"+ dir2.getAbsolutePath());

OutPut(in iPlanet):
dir1.exists()-->false
dir1.-->\\3.222.222.22\logs\20060616.log
dir2.exists()-->false
dir2.getAbsolutePath()-->G:\Logs\20060616.log
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61761
    
  67

"rocky rocky",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to read Network File