Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application server unable to read shared folders in a network

 
rocky raghu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic