Environment 6.7 (no patches) on windows. Content Server is running on Win2008 SP2.
When I attempt to access the local file system in any way I get errors. If I run the code outside of the java method server, the code seems to work fine. I believe it is an issue with security.
1) First Scenario
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(sCommandLine);
// ... some code, stream gobblers, etc..
Int i = proc.waitFor();
I get an error : java.io.IOException: Cannot run program "C:\MyDir\TagTrigger\TagTrigger.exe": CreateProcess error=2, The system cannot find the file specified
2) Second Scenario
String sPath = "d:\\MyDir\\data\\";
// Get the Object ID
String sObjectID = getObjectId().getId();
boolean bSuccessfulWrite = false;
String sFullName = sPath + sObjectID + ".txt";
try
{
File flObject = new File(sPath + sObjectID + ".txt");
bSuccessfulWrite = flObject.createNewFile();
}
// ... some more code...
Again I get a security error (caught ioException):
java.io.IOException: The system cannot find the path specified
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(Unknown Source)....
I have tried to make the local directories available to everyone, and explicitly to the Documentum Install Owner, which also runs the Documentum Java Method Server. I am using WebTop and DA to access the TBO (and its related objects).