When a Jython script is being executed that deploys an application to a Liberty Profile cluster the following error is identified.
Pushing the application to server node01.localdomain,/var/apps/wasnd855_lp/usr,member1 Jan 07, 2016 12:57:27 PM com.ibm.ws.jmx.connector.client.rest.internal.FileTransferClient uploadFile(String localSourceFile, String remoteTargetFile, boolean expandOnCompletion) SEVERE: CWWKX0262E: The file operation write on file system path /var/apps/wasnd855_lp/usr/servers/member1/apps was denied because the file system path was not listed in the file operation white list. An exception was caught while processing member node01.localdomain,/var/apps/wasnd855_lp/usr,member1 java.io.IOException: CWWKX0262E: The file operation write on file system path /var/apps/wasnd855_lp/usr/servers/member1/apps was denied because the file system path was not listed in the file operation white list. The operation failed on the following members [host,userdir,name]: node01.localdomain,/var/apps/wasnd855_lp/usr,member2 |
To enable the ability for the Collector to invoke a file transfer, the MBean requires access to the member’s file-system. This is done by adding the following XML to server.xml
<!– Enables the ability of the FileTRansfer MBean to write to the server config directory –> <remoteFileAccess> <writeDir>${server.config.dir}</writeDir> </remoteFileAccess> |
or a sub folder beneath the config dir
<!– Enables the ability of the FileTRansfer MBean to write to the server config directory –>
<remoteFileAccess> <writeDir>${server.config.dir}/apps</writeDir> </remoteFileAccess> |






