Meaningless Drivel is fun!
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
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Unable to read Network File" Watch "Unable to read Network File" New topic

Unable to read Network File

rocky raghu

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("\\\\\\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):
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63868

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

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Unable to read Network File
jQuery in Action, 3rd edition