I am having trouble getting the dp:copy task to work on RAID
filesystems. I can copy files to the local:// filesystem without any
issues, but when I try to copy them to the local://raid0 filesystem, I
get the following error:
C:\MTAS\PSB\MTAS_PSB\DataPowerDeployment\build.xml:249: Request failed
with the following information:
Can not create directory 'local://raid0' - Duplicate file name
Here is the dp:copy action:
<dp:copy cleanDirectories="false">
<dpFileset prefix="local://raid0/MTAS" dir="Common/Dev"
includes="DBMapping.xml"/>
<dpFileset prefix="local://raid0/MTAS" dir="Common/Dev"
includes="MTASProperties.xml"/>
</dp:copy>
Here's the output from ant -v:
[dp:copy] Executing dpbuddy's 'dp:copy' task...
[dp:copy] Adding this file to the upload request: C:\MTAS\PSB
\MTAS_PSB\DataPowerDeployment\Common\Dev\DBMapping.xml
[dp:copy] Target directory on the device: local://raid0/MTAS
[dp:copy] Copying 1 file(s) to the device...
[dp:copy] Executing XML management request 'do-action/CreateDir'
against 'DeployTest' domain
[dp:copy] Request:
[dp:copy] <?xml version="1.0" encoding="UTF-8"?>
[dp:copy] <Envelope xmlns="
http://schemas.xmlsoap.org/soap/
envelope/">
[dp:copy] <Body>
[dp:copy] <request xmlns="
http://www.datapower.com/schemas/
management" domain="DeployTest">
[dp:copy] <do-action>
[dp:copy] <CreateDir xmlns="">
[dp:copy] <Dir>local://raid0</Dir>
[dp:copy] </CreateDir>
[dp:copy] <CreateDir xmlns="">
[dp:copy] <Dir>local://raid0/MTAS</Dir>
[dp:copy] </CreateDir>
[dp:copy] </do-action>
[dp:copy] </request>
[dp:copy] </Body>
[dp:copy] </Envelope>
[dp:copy] Validating against the schema C:\MTAS\PSB\MTAS_PSB
\DataPowerDeployment\schema\xml-mgmt-ops.xsd
[dp:copy] Successfully validated do-action/CreateDir against
DataPower schema
[dp:copy] Connecting to URL
https://nyobgdp50d1a.odc.vzwcorp.com:5550/service/mgmt/current
Username: DeployTest
[dp:copy] Response:
[dp:copy] <?xml version="1.0" encoding="UTF-8"?>
[dp:copy] <env:Envelope xmlns:env="
http://schemas.xmlsoap.org/soap/
envelope/">
[dp:copy] <env:Body>
[dp:copy] <dp:response xmlns:dp="
http://www.datapower.com/
schemas/management">
[dp:copy] <dp:timestamp>2012-05-18T15:53:42-04:00</
dp:timestamp>
[dp:copy] <dp:result>
[dp:copy] <error-log>
[dp:copy] <log-event level="error">Can not create
directory 'local://raid0' - Duplicate file name</log-event>
[dp:copy] </error-log>
[dp:copy] </dp:result>
[dp:copy] <dp:result>OK</dp:result>
[dp:copy] </dp:response>
[dp:copy] </env:Body>
[dp:copy] </env:Envelope>
BUILD FAILED
C:\MTAS\PSB\MTAS_PSB\DataPowerDeployment\build.xml:249: Request failed
with the following information:
Can not create directory 'local://raid0' - Duplicate file name
at com.myarch.dpbuddy.ant.BaseDPTask.executeRequest(BaseDPTask.java:
225)
at com.myarch.dpbuddy.ant.CopyTask.executeDPTask(CopyTask.java:70)
at com.myarch.dpbuddy.ant.BaseDPTask.execute(BaseDPTask.java:193)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
288)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
37)
at java.lang.reflect.Method.invoke(Method.java:611)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:
106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:
1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
41)
at
org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:
32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at
org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:
423)
at
org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:
137)
Caused by: com.myarch.dpbuddy.DPException: Request failed with the
following information:
Can not create directory 'local://raid0' - Duplicate file name
at com.myarch.dpbuddy.ResultResponse.validate(ResultResponse.java:47)
at
com.myarch.dpbuddy.commands.action.ActionCommand.execute(ActionCommand.java:
76)
at
com.myarch.dpbuddy.commands.files.CreateDirCommand.execute(CreateDirCommand.java:
56)
at
com.myarch.dpbuddy.commands.files.CopyFilesCommand.execute(CopyFilesCommand.java:
129)
at
com.myarch.dpbuddy.commands.files.CopyFilesCommand.execute(CopyFilesCommand.java:
24)
at com.myarch.dpbuddy.ant.BaseDPTask.executeRequest(BaseDPTask.java:
222)
... 17 more
--- Nested Exception ---
com.myarch.dpbuddy.DPException: Request failed with the following
information:
Can not create directory 'local://raid0' - Duplicate file name
at com.myarch.dpbuddy.ResultResponse.validate(ResultResponse.java:47)
at
com.myarch.dpbuddy.commands.action.ActionCommand.execute(ActionCommand.java:
76)
at
com.myarch.dpbuddy.commands.files.CreateDirCommand.execute(CreateDirCommand.java:
56)
at
com.myarch.dpbuddy.commands.files.CopyFilesCommand.execute(CopyFilesCommand.java:
129)
at
com.myarch.dpbuddy.commands.files.CopyFilesCommand.execute(CopyFilesCommand.java:
24)
at com.myarch.dpbuddy.ant.BaseDPTask.executeRequest(BaseDPTask.java:
222)
at com.myarch.dpbuddy.ant.CopyTask.executeDPTask(CopyTask.java:70)
at com.myarch.dpbuddy.ant.BaseDPTask.execute(BaseDPTask.java:193)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
288)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
37)
at java.lang.reflect.Method.invoke(Method.java:611)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:
106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:
1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
41)
at
org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:
32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at
org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:
423)
at
org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:
137)