Martijn Verburg wrote:Can you independently verify that there is a file at?

gvsvr03\drawings\wgen\pre_pdf\sourcefiles\862000\862144B1.rtf

Can you independently verify that you have permission to?

smb:\webergv;xxx:xxx@gvsvr03

Yes to the above. However, I have changed my code and got it to work from my workbench using local server host but when I move it to the production server(iSeries - AS400 server) it says in file does not exist. How can I get the servlet to see a file on the client so it can be uploaded?

smb:\webergv;xxx:xxx@gvsvr03 is the bit I'd be investigating (I've never seen that protocol used directly from java, it's Samba right?). Can you write a small stand alone class/method to test that you can connect via this method? Try connecting to a different server and/or using different credentials and/or looking for a different file (perhaps one at the root level of the server file system).

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1519

1

posted Apr 21, 2009 07:56:29

0

Martijn Verburg wrote:smb:\webergv;xxx:xxx@gvsvr03 is the bit I'd be investigating (I've never seen that protocol used directly from java, it's Samba right?). Can you write a small stand alone class/method to test that you can connect via this method? Try connecting to a different server and/or using different credentials and/or looking for a different file (perhaps one at the root level of the server file system).

I don't understand because the JCIFS library was suggested by another JavaRanch person. I am currently using it to read directory contents. And it works just fine locally.

However, I have changed my code and got it to work from my workbench using local server host but when I move it to the production server(iSeries - AS400 server) it says in file does not exist.

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1519

1

posted Apr 21, 2009 08:17:40

0

Martijn Verburg wrote:I thought you said above that you had it working locally?

Steve Dyke wrote:

That is correct:

I don't understand because the JCIFS library was suggested by another JavaRanch person. I am currently using it to read directory contents. And it works just fine locally.

My code is breaking on the FileInputStream line.

SystemOut O No such path or directory. C:\SDETest.rtf

The FileInputStream does not fail when I run on local Application Server just on production server. It is behaving like when ran from production application server that it is trying to find the file on that local server instead on the client machine.