> I am creating a csv file from oracle, then writing it to a shared server to 
> be accessed by
> another system. When I run the program on my test server (which is inside the 
> domain), the
> program runs fine and the file writes to the share server.
>
> When I run this in production (our web server) I receive the following error.
>
> An error occurred when performing a file operation write on file 
> \\server\directory\file.csv. The
> cause of this exception was: java.io.FileNotFoundException: \\file 
> \\server\directory\file.csv.
> (Access is denied). <br>The error occurred on line 18.
>
> In the scheduled task I am logging in as a domain admin, coldfusion is also 
> logging in as a
> domain admin.

Is the production web server in the domain?

>From the console of the production server, can you log in with the
same account used by CF and access that UNC path?

Is it possible the the file is being locked on the other server?

By the way, you REALLY shouldn't run CF as a domain admin. That's just
asking for trouble. Use a domain account with fewer privileges - a
regular user account will do, given the privilege to run as a service
and given the appropriate filesystem permissions (read/execute on your
web root, rwxd on the CF/JRun install directory).

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333852
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to