I am trying to access a PDF file on shared windows folder from a servlet running on UNIX server. The path seems to be correct x:\shared\x.pdf but when servlet tries to access this file it throws FileNOtFoundException even though file is there.. Any suggestions. Thanks
I want to read a file on window share from servlet running on app server. Is it possible ?
Thanks
Roman Tomachinsky
Greenhorn
Joined: Apr 24, 2006
Posts: 12
posted
0
Did you try using Microsoft Windows UNC path name, like \\computer\shared\x.pdf?
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
Did you actually read and consider the replies you got? David is spot on: the server can't possibly know what "x:\shared\x.pdf" is, because that path has meaning only locally on the Windows machine. That's why you need to use jCIFS.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.