virtual directory for file object not work
In Server.xml write
<Security>
<!-- Enables virtual directory mappings for file objects in the script. -->
<!-- This is disabled by default. -->
<VirtualDirectoryForFile enable="true"></VirtualDirectoryForFile>
in Application.xml write
<ScriptEngine>
<FileObject>
<VirtualDirectory>/logs;/opt/adobe/ams/applications/konsultant/logs</VirtualDirectory>
</FileObject>
<!-- This specifies the max size (Kb.) the runtime can grow to before -->
<!-- garbage collection is performed. -->
<RuntimeSize>20480</RuntimeSize>
</ScriptEngine>
Directory logs exists
If write the file in /logs/file.xml
var fn = "/logs/"+room_name+".xml";
flog = new File(fn);
flog.open("utf8", "create,write");
flog.write(xml_data);
flog.flush(); //row 199
flog.close();
in log application
Sending error message: /opt/adobe/ams/applications/konsrec/main.asc: line 199: Error: File operation flush failed.
Please, help me!
