As per the example build file I have implemented a checkpoint and then
import. I am entering the command:
ant -v -e -f import.xml > import.log
I get the following in the import.log file:
Apache Ant(TM) version 1.8.2 compiled on December 20 2010
Buildfile: C:\Users\Leigh\Downloads\dpbuddy-2.2-dist
\dpbuddy-2.2\_leigh_\import.xml
Detected Java version: 1.7 in: C:\Program Files\Java\jdk1.7.0_01\jre
Detected OS: Windows 7
parsing buildfile C:\Users\Leigh\Downloads\dpbuddy-2.2-dist
\dpbuddy-2.2\_leigh_\import.xml with URI = file:/C:/Users/Leigh/
Downloads/dpbuddy-2.2-dist/dpbuddy-2.2/_leigh_/import.xml
Project base dir set to: C:\Users\Leigh\Downloads\dpbuddy-2.2-dist
\dpbuddy-2.2\_leigh_
parsing buildfile jar:file:/C:/Apache-ant/apache-ant-1.8.2/lib/
ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/C:/
Apache-ant/apache-ant-1.8.2/lib/ant.jar!/org/apache/tools/ant/
antlib.xml from a zip file
parsing buildfile jar:file:/C:/Users/Leigh/Downloads/dpbuddy-2.2-dist/
dpbuddy-2.2/lib/dpbuddy-2.2-single.jar!/com/myarch/datapower/
antlib.xml with URI = jar:file:/C:/Users/Leigh/Downloads/dpbuddy-2.2-
dist/dpbuddy-2.2/lib/dpbuddy-2.2-single.jar!/com/myarch/datapower/
antlib.xml from a zip file
parsing buildfile jar:file:/C:/Users/Leigh/Downloads/dpbuddy-2.2-dist/
dpbuddy-2.2/lib/dpbuddy-2.2.jar!/com/myarch/datapower/antlib.xml with
URI = jar:file:/C:/Users/Leigh/Downloads/dpbuddy-2.2-dist/dpbuddy-2.2/
lib/dpbuddy-2.2.jar!/com/myarch/datapower/antlib.xml from a zip file
Build sequence for target(s) `run.import' is [checkpoint,
import.deploymentPolicies, run.import]
Complete build sequence is [checkpoint, import.deploymentPolicies,
run.import, import.domain, ]
checkpoint:
Could not load definitions from resource com/myarch/datapower/
antlib.xml. It could not be found.
Executing request 'do-action/RemoveCheckpoint' against 'HH_SNDBX_GTWY'
domain
Request:
[snip]
Successfully created checkpoint 'preDeployChkPt'
import.deploymentPolicies:
Executing DataPower import...
Importing dpconfigs/HH_DEV_DEPLOYMENT.zip...
Executing request 'do-import' against 'HH_SNDBX_GTWY' domain
Request:
<?xml version="1.0" encoding="UTF-8"?>
<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
<Body>
<request xmlns="http://www.datapower.com/schemas/management"
domain="HH_SNDBX_GTWY">
<do-import overwrite-files="true" overwrite-objects="true">
<input-
file>UEsDBAoAAAAAAHRTfj8AAAAAAAAAAAAAAAAHABUAZHAtYXV4L1VUCQADe1nWTntZ1k5VeAQAAAAA
[snip]
AF0CAABQ4wcAAAA=</input-file>
</do-import>
</request>
</Body>
</Envelope>
Validating against the schema C:\Users\Leigh\Downloads\dpbuddy-2.2-dist
\dpbuddy-2.2\schema\xml-mgmt-ops.xsd
Successfully validated do-import against DataPower schema
Connecting to URL https://172.21.67.17:5550/service/mgmt/current
Username: dpadmin
Response:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<dp:response xmlns:dp="http://www.datapower.com/schemas/
management">
<dp:timestamp>2011-11-30T10:39:13-06:00</dp:timestamp>
<dp:result>ERROR</dp:result>
</dp:response>
</env:Body>
</env:Envelope>
on the console I get this additional information:
BUILD FAILED
C:\Users\Leigh\Downloads\dpbuddy-2.2-dist\dpbuddy-2.2\_leigh_
\import.xml:49: Rec
eived invalid response from the device. The response has to contain at
least one
'dp:import' element. Please check the device logs. XML of the
response:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<dp:response xmlns:dp="http://www.datapower.com/schemas/
management">
<dp:timestamp>2011-11-30T10:39:13-06:00</dp:timestamp>
<dp:result>ERROR</dp:result>
</dp:response>
</env:Body>
</env:Envelope>
at
com.myarch.datapower.ant.BaseDPTask.executeRequest(BaseDPTask.java:21
8)
at
com.myarch.datapower.ant.ImportTask.executeDPTask(ImportTask.java:56)
...
there is nothing in the DataPower logs that I have seen. If it helps,
I am using DataPower firmware XI50.4.0.2.0. I have downloaded the
schemas as per the documentation and example build file. Any way to
attach build and log file to this post? Any suggestions?
thank you
Leigh
| 12:46:57 | mgmt | error | 8910688 | request | 10.63.46.31 | 0x83a00099 | xmlfirewall (xml-mgmt): The export file '' specified as is unreadable. Import failed. | |