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 Application server unable to read shared folders in a network Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Application server unable to read shared folders in a network" Watch "Application server unable to read shared folders in a network" New topic
Author

Application server unable to read shared folders in a network

rocky raghu
Greenhorn

Joined: Jun 16, 2006
Posts: 2
Hi,
I am using an iPlanet 6.0 app server.I am unable to read a network file from my web application. Web App is not able to able to recoginse
IP address/Domain name.I even mapped the network drive.Even that is not working.

CODE:
e.g.
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"); \\mapped network drive
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


Funny part is,it is working in our office network ,but not in the client network.I thot the issue is with shared folder rights,but i can see full access rights being given .I am really puzzled..Please Help
[ June 21, 2006: Message edited by: rocky raghu ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Application server unable to read shared folders in a network