Git Product home page Git Product logo

datapower-configuration-manager's People

Contributors

dorser avatar fmoraes74 avatar jjjw420 avatar jyoti-prakash01 avatar mathison42 avatar natotela avatar nhmathis avatar richgroot avatar samdjones avatar sekhardutta avatar tony-schndr avatar wenism avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

datapower-configuration-manager's Issues

Angle brackets on Windows

The Ant .bat script on Windows (as of v1.9.9) has an error where it cannot parse angle brackets (< and >). This issue has been resolved in Ant .sh script in v1.9.9, but those same changes have not been made for Windows. This issue is meant to monitor this issue.

Work Around: Use a Linux server to run your angle bracket cli commands or plugin steps.

how to create FSH

Hello,

I just starting using DCM, and I am very happy with it so far.
one question, how can I create FSH using command line? I couldn't find a task to do so?!

thank you

How to recursively deploy directories in DataPower using dcm plugin under UrbanCode

I am using DCM plugin version 8 with UrbanCode deploy.
My requirements is to copy a folder which has files and other sub-directories which then has more files and sub-directories to DataPower.

<dcm:upload local="${deploy.dir}/Mapping/**.*" remotedir="${mapping.dir}"/>
If I use the above statement in my dcm-upload definition, it only deploys the files and immediate folders under the Mapping folder to the DataPower destination folder. So if the Mapping folder has a folder 'xyz' under it, the contents of the folder 'xyz' do not get copied. i.e. no recursion.

The behaviour doesn't change with this statement
<dcm:upload localdir="${deploy.dir}/Mapping" match="**.*" remotedir="${mapping.dir}"/>
Can someone suggest a way to recursively deploy/upload files and sub-directories recursively to DataPower using DCM plugin using UrbanCode?

build failed

Hello,

Having downloaded the .zip src dist today, I find the build fails because the build appears to attempt to download a file that does not appear to exist (http://www.us.apache.org/dist/ant/binaries/apache-ant-1.9.5-bin.zip). See Ant output below.

Kochanski:dcm sam$ ant clean distro
Buildfile: /Users/sam/tmp/datapower-configuration-manager-master/dcm/build.xml

clean:

clean:

-get-ant:
[mkdir] Created dir: /Users/sam/tmp/datapower-configuration-manager-master/dcm/lib
[get] Getting: http://www.us.apache.org/dist/ant/binaries/apache-ant-1.9.5-bin.zip
[get] To: /Users/sam/tmp/datapower-configuration-manager-master/dcm/lib/ant.zip
[get] Error opening connection java.io.FileNotFoundException: http://www.us.apache.org/dist/ant/binaries/apache-ant-1.9.5-bin.zip
[get] Error opening connection java.io.FileNotFoundException: http://www.us.apache.org/dist/ant/binaries/apache-ant-1.9.5-bin.zip
[get] Error opening connection java.io.FileNotFoundException: http://www.us.apache.org/dist/ant/binaries/apache-ant-1.9.5-bin.zip
[get] Can't get http://www.us.apache.org/dist/ant/binaries/apache-ant-1.9.5-bin.zip to /Users/sam/tmp/datapower-configuration-manager-master/dcm/lib/ant.zip

BUILD FAILED
/Users/sam/tmp/datapower-configuration-manager-master/dcm/build.xml:139: Can't get http://www.us.apache.org/dist/ant/binaries/apache-ant-1.9.5-bin.zip to /Users/sam/tmp/datapower-configuration-manager-master/dcm/lib/ant.zip

Total time: 0 seconds

Older Plugin Versions

Hi

Is there anyway i can get older stable version of this plugin ? i.e version#6.

how to create a definition file

Hi Folks,

I need more help :( I am not a programmer, so I am facing a lot of challenges to build my own code.
for example, if you follow the easyStart project, you can see that the author created load-balancer-group-to-ant.xml to create/update loadbalancer group. for that there were two important files specifically to this task:
1-load-balancer-group-to-ant.xml ( complicated)
2-ucdDemo.lbg.dcm.xml (easy after we have 1 built)

my question is I want to do the same for HTTPSSourceProtocolHandler to create/update it during deployment and many other objects . I tried to manually build HTTPS-SourceProtocol-Handler-to-ant.xml file by looking at xml-mgmt.xsd ..it's so time consuming process and complicated.

how can I do that? is there an easy way to figure out the definition dm for any datapower object?

BackupDevice step is failing

BackupDomain is working correctly, but when I execute BackupDevice operation, it everytime fails with following error (stack-trace):

BUILD FAILED
/opt/ibm-ucd/ucdagent/var/plugins/com.ibm.datapower_8_c153924d27a2723f17dc9a0971a7b6f8b09bf7f15502419ea57ca0370535a7d8/dcm/deploy.ant.xml:191: The following error occurred while executing this line:
/opt/ibm-ucd/ucdagent/var/plugins/com.ibm.datapower_8_c153924d27a2723f17dc9a0971a7b6f8b09bf7f15502419ea57ca0370535a7d8/dcm/src/dcm-taskdefs.ant.xml:62: java.lang.RuntimeException: Failed to backup on nlutdcsdp100-mgt0.nl.eu.abnamro.com
at com.ibm.dcm.Soma.doBackup(Soma.java:536)
at com.ibm.dcm.Soma.doBackupDevice(Soma.java:602)
at com.ibm.dcm.Soma.performOperation(Soma.java:98)
at com.ibm.dcm.taskWdp.execute(taskWdp.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
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.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
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.taskdefs.MacroInstance.execute(MacroInstance.java:396)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
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:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:853)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)

Total time: 51 seconds
com.urbancode.air.ExitCodeException: Command failed with exit code: 1

Import Object DCM Target

Hello Experts,

I'm looking at the DCM ANT Targets to import deployment policy object (zip) in to a particular domain and export all objects from that domain , I was wondering, If you could please point me to the ANT targets that are capable to do a simple import object and export all objects and all files of a given domain.

Thanks,
Bharath

ValCred Import from Definitions Error

Hi Experts,

we are testing out the DCM component for automated deployments within our enterprise, I have encountered an issue with importing validation credential object from definition approach. Please find the error logs

valcred-from-def:
    [nxslt] nxslt running ./src/remove-unwanted-elements.xsl on C:\Users\Bharath\Documents\Tools\dcm\easystart\ucdDemo\ucdDemo.valcred.dcm.xml producing tmp
    [nxslt] Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
    [nxslt] Warning: encoding "UTF-8" not supported, using UTF-8
    [nxslt] nxslt running ./src/valcred-to-ant.xsl on tmp producing C:\Users\Bharath\Documents\Tools\dcm\tmp/valcred.ant.xml
    [nxslt] Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
    [nxslt] Warning: encoding "UTF-8" not supported, using UTF-8
    [nxslt] SystemId Unknown; Line #74; Column #28; This file doesn't contain a dcm:valcred element!
    [nxslt] SystemId Unknown; Line #76; Column #42; Failed to generate internal template due to errors listed above.
    [nxslt] (Location of error unknown)Stylesheet directed termination

BUILD FAILED
C:\Users\Bharath\Documents\Tools\dcm\deploy.ant.xml:1427: The following error occurred while executing this line:
C:\Users\Bharath\Documents\Tools\dcm\tmp\valcred.ant.xml:1: Premature end of file.

Total time: 8 seconds

I have used the following command to execute this operation
command: ant -f deploy.ant.xml -Ddcm.dir=. -Dhost=192.168.0.19 -Duid=bharath -Ddevice=dp01 -Denvironment=dp01 -Ddomain=udcDemo -Dvalcred.file="C:\Users\Bharath\Documents\Tools\dcm\easystart\ucdDemo\ucdDemo.valcred.dcm.xml" domain-create valcred-from-def save

I have attached the definition file along with this post for your reference, I guess the ANT script is able to find out the file as this error would have popped up otherwise, however, I have feeling that the issue is with UTF-8 encoding. Please, Advise.

ucdDemo.valcred.dcm.xml.zip

Thanks,
Bharath

Flush stylesheet cache and document cache

Hello,

I've started exploring the DCM tool and it is great.

Does it support Flush Stylesheet cache and Document cache yet? I did not see any targets defined for them in the "deploy.ant.xml".

I believe it is imperative to flush a stylesheet cache or document cache after using "upload-from-def" for xslt or any lookup documents.

Thanks

UCD Plugin V8 with DP 7.5 problems

I tried to deploy a simple create/modify Load Balancer Group. the following error appears:
BUILD FAILED
/opt/ibm-ucd/agent/var/plugins/com.ibm.datapower_8_49ed659d3a65b06cb32a920351b140c82901d700cfba7c765519adcd167776d4/dcm/deploy.ant.xml:970: The following error occurred while executing this line:
/opt/ibm-ucd/agent/var/work/DataPower_Domain/tmp/lbg.ant.xml:18: Failed to create the Load Balancer Group object ucdDemo-backends.

could you please check the compatibility with DP 7.5 firmware
thanks

Direct SOMA call feature request

Hello,

Would it be possible to add a feature to make SOMA calls somewhat directly? It would simply take an in input request file, post it to the SOMA interface and write the response to an output file.

Why you may ask? There are often times when we need to do something and there is not an existing DCM feaure, or an existing DCM features doesn't quite do things as we need, and there is no time to wait for new DCM features/enhancements. The standard Ant tasks are inadequate so in the past I've used the Google Missing Link Ant library or Curl to make direct SOMA calls. But many customers won't allow us to install them, so I would like to see a DCM feature added to do it.

Hopefully this isn't a difficult feature to add since the existing tasks obviously make use of SOMA calls already - the underlying API just needs opening up a little to the public. I'm happy to attempt the change myself and submit a pull request if I'm pointed in the right direction..

Cheers,
Sam

Create Objects Error

Hello Experts,

I ran in to an issue while executing Create Object from definitions DCM operation, It looks like the JAVA codeis unable to parse the file internally. I have ran the command with a '-v' flag for a more descriptive error however this operation seems to error out in JAVA code.

Command: ant -f deploy.ant.xml -Ddcm.dir=. -Dhost=nc-wec-esbgw-b0r.company.com -Dport=5550 -Duid=xgidbrt -Ddomain=Test_Build_DEMO -Denvironment=DEV -Dobjects.file="C:/Users/user/Documents/dcm/ant_tutorials/definitions/deployment_policy_definitions.xml" objects-from-def

PFB Error logs

Apache Ant(TM) version 1.9.2 compiled on July 8 2013 Buildfile: C:\Users\user\Documents\dcm\dcm\deploy.ant.xml Detected Java version: 1.8 in: C:\Program Files\Java\jdk1.8.0_131\jre Detected OS: Windows 7 parsing buildfile C:\Users\user\Documents\dcm\dcm\deploy.ant.xml with URI = file:/C:/Users/user/Documents/dcm/dcm/deploy.ant.xml Project base dir set to: C:\Users\user\Documents\dcm\dcm parsing buildfile jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/apache-ant-1.9.2/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/apache-ant-1.9.2/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file [available] Searching C:\Users\user\Documents\dcm\dcm [available] Found: dist\dcm.jar in C:\Users\user\Documents\dcm\dcm parsing buildfile jar:file:/C:/Users/user/Documents/dcm/dcm/dist/dcm.jar!/com/ibm/antlib.xml with URI = jar:file:/C:/Users/user/Documents/dcm/dcm/dist/dcm.jar!/com/ibm/antlib.xml from a zip file [antlib:ibm] Could not load definitions from resource ibm/antlib.xml. It could not be found. Importing file C:\Users\user\Documents\dcm\dcm\src\dcm-taskdefs.ant.xml from C:\Users\user\Documents\dcm\dcm\deploy.ant.xml Overriding previous definition of reference to ant.projectHelper parsing buildfile C:\Users\user\Documents\dcm\dcm\src\dcm-taskdefs.ant.xml with URI = file:/C:/Users/user/Documents/dcm/dcm/src/dcm-taskdefs.ant.xml [macrodef] creating macro backupDevice [macrodef] creating macro exportObject [macrodef] creating macro exportObjects [macrodef] creating macro backupDomains [macrodef] creating macro checkDeviceAccess [macrodef] creating macro ensureDPSchema [macrodef] creating macro createDomain [macrodef] creating macro deleteDomain [macrodef] creating macro disableObject [macrodef] creating macro disableObjects [macrodef] creating macro downloadFiles [macrodef] creating macro downloadFilestore [macrodef] creating macro enableObject [macrodef] creating macro enableObjects [macrodef] creating macro exportConfig [macrodef] creating macro firmwareRollback [macrodef] creating macro firmwareUpdate [macrodef] creating macro getDomainStatus [macrodef] creating macro getServiceStatus [macrodef] creating macro idcredFromPKCS12 [macrodef] creating macro idcredFromKeyAndCert [macrodef] creating macro importConfig [macrodef] creating macro importConfigDPO [macrodef] creating macro listFilestore [macrodef] creating macro objectCreateByCopying [macrodef] creating macro objectCreateByInline [macrodef] creating macro objectCreateFromExport [macrodef] creating macro objectDelete [macrodef] creating macro objectModify [macrodef] creating macro quiesceDomain [macrodef] creating macro quiesceService [macrodef] creating macro rawMgmtCall [macrodef] creating macro removeCheckpoint [macrodef] creating macro resetDomainConventionally [macrodef] creating macro resetDomainDeleteCreate [macrodef] creating macro restartDomain [macrodef] creating macro restoreBackup [macrodef] creating macro rewriteExport [macrodef] creating macro rollbackCheckpoint [macrodef] creating macro saveCheckpoint [macrodef] creating macro saveDomainIfChanged [macrodef] creating macro saveDomainIfChangedPrompt [macrodef] creating macro saveDomainUnconditionally [macrodef] creating macro secureBackup [macrodef] creating macro setLogLevel [macrodef] creating macro valcredFromFiles [macrodef] creating macro unimportConfig [macrodef] creating macro unquiesceDomain [macrodef] creating macro unquiesceService [macrodef] creating macro xalan [macrodef] creating macro defprop [macrodef] creating macro defprop-set Overriding previous definition of reference to ant.projectHelper Build sequence for target(s) objects-from-def' is [clean, -init-dir, -check-std-args, check-access, objects-from-def]
Complete build sequence is [clean, -init-dir, -check-std-args, check-access, objects-from-def, backup-device, import-from-def, import-changed, domain-delete, domain-create, save, domain-recreate, service-unquiesce, ltpa-password, idcred-from-key-and-cert, firmware-rollback, main, reboot, restore-backup, service-quiesce, download-files, host-alias-set, service-status, secure-backup-device, load-balancer-group-from-def, checkpoint-save, host-alias-remove, backup-domains, checkpoint-delete, set-log-level, domain-init, checkpoint-restore, create-tam-files, debug, valcred-from-dir, import-dpo, certificate-from-def, domain-unquiesce, idcred-from-def, upload-from-def, key-from-def, domain-quiesce, idcred-from-p12, domain-reset, object-status, raw-mgmt-call, upload-dir, export-object, valcred-from-def, domain-restart, firmware-update, , export-objects]

clean:
[delete] Deleting directory C:\Users\user\Documents\dcm\dcm\tmp
[delete] Deleting C:\Users\user\Documents\dcm\dcm\tmp\object-create.xml
[delete] Deleting C:\Users\user\Documents\dcm\dcm\tmp\objects.ant.xml
[delete] Deleting directory C:\Users\user\Documents\dcm\dcm\tmp

-init-dir:
[mkdir] Created dir: C:\Users\user\Documents\dcm\dcm\tmp
[mkdir] Skipping C:\Users\user\Documents\dcm\dcm\schemas because it already exists.

-check-std-args:
[input] What is the password for 'xxxxx' on nc-wec-esbgw-b0r.company.com?
xxxxxx
Override ignored for property "port"

check-access:

objects-from-def:
[available] Found: C:\Users\user\Documents\dcm\ant_tutorials\definitions\deployment_policy_definitions.xml
[nxslt] nxslt running ./src/remove-unwanted-elements.xsl on C:/Users/user/Documents/dcm/ant_tutorials/definitions/deployment_policy_definitions.xml producing tmp
[nxslt] Warning: The encoding 'UTF-8' is not supported by the Java runtime.
[nxslt] Warning: encoding "UTF-8" not supported, using UTF-8
[nxslt] nxslt running ./src/objects-to-ant.xsl on tmp producing C:\Users\user\Documents\dcm\dcm\tmp/objects.ant.xml
[nxslt] Warning: The encoding 'UTF-8' is not supported by the Java runtime.
[nxslt] Warning: encoding "UTF-8" not supported, using UTF-8
Project base dir set to: C:\Users\user\Documents\dcm\dcm
[ant] calling target(s) [default] in build file C:\Users\user\Documents\dcm\dcm\tmp\objects.ant.xml
parsing buildfile C:\Users\user\Documents\dcm\dcm\tmp\objects.ant.xml with URI = file:/C:/Users/user/Documents/dcm/dcm/tmp/objects.ant.xml
Project base dir set to: C:\Users\user\Documents\dcm\dcm
parsing buildfile jar:file:/C:/Users/user/Documents/dcm/dcm/dist/dcm.jar!/com/ibm/antlib.xml with URI = jar:file:/C:/Users/user/Documents/dcm/dcm/dist/dcm.jar!/com/ibm/antlib.xml from a zip file
Trying to override old definition of datatype antlib:ibm:nested
[available] Found: schemas\XI52.7.2.0.14.dpschema.xml
[echo] Using C:\Users\user\Documents\dcm\dcm\schemas/XI52.7.2.0.14.dpschema.xml for nc-wec-esbgw-b0r.company.com
[nxslt] nxslt running ./src/object-modify.xsl on C:\Users\user\Documents\dcm\dcm\tmp/object-create.xml producing new_config
[nxslt] Warning: The encoding 'UTF-8' is not supported by the Java runtime.
[nxslt] Warning: encoding "UTF-8" not supported, using UTF-8
[nxslt] SystemId Unknown; Line #113; Column #38; Attempting to set-config for a type of object (set-config) that is not listed in the schema!
[nxslt] (Location of error unknown)Stylesheet directed termination

BUILD FAILED
C:\Users\user\Documents\dcm\dcm\deploy.ant.xml:1140: The following error occurred while executing this line:
C:\Users\user\Documents\dcm\dcm\tmp\objects.ant.xml:18: The following error occurred while executing this line:
C:\Users\user\Documents\dcm\dcm\src\dcm-taskdefs.ant.xml:2039: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.StringBuffer.charAt(StringBuffer.java:202)
at com.ibm.dcm.SomaUtils.xmlNoHeader(SomaUtils.java:180)
at com.ibm.dcm.taskNxslt.execute(taskNxslt.java:161)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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.taskdefs.MacroInstance.execute(MacroInstance.java:396)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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:435)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:179)
at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:93)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:391)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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.taskdefs.Sequential.execute(Sequential.java:68)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 8 seconds
`

I have attached the definitions file for your reference

deployment_policy_definitions.txt

Please let me know If there is something wrong with my Command or Definitions File

Thanks,
Bharath

Help

I am running this on a Lubuntu 14.10 workstation.

I cloned the repository, I installed the pre-requisites and I built the project as per your instructions in README.md. Everything went as expected.

Now I am looking through the resulting directory structure, and there is no documentation...

I am what I would consider a competent sytem admin/developer, but I need some sort of pointer as to where to go now...

Could you please add a file which would give some basic commands I would issue, from there I am sure I can dig in and discover the more advanced functionality, but without a starting point I find I am unable to do a thing.

Missing file: mbaas-downloadFilestore.xsl in dcm-taskdefs.ant.xml?

Hello everyone,

I am trying out an ant task that downloads the filestore by using the downloadFilestore macrodef in datapower-configuration-manager/dcm/src/dcm-taskdefs.ant.xml but it is failing because this macrodef cannot find mbaas-downloadFilestore.xsl (line 683 of revision 3e25998, April 14 2016):
<nxslt inprop="rawxml" outprop="tmp" xsl="mbaas-downloadFilestore.xsl"/>

If you have this file, please commit into the repository?

Thank you.

Loop Through Multiple Appliances

Hello Experts,

I was evaluating the DCM easyStart module and It looks like we define properties on a environment level and we also define properties per appliance. Typically appliance properties are specific to the appliance such as host & IP, I was wondering If we could group appliances under a single environment so that a single command will automatically execute command on all appliances listed in that group.

Please advise

Thanks,
Bharath

unimportConfig - dead?

The xsl files unimport-extract-disable.xsl are not present. Assuming this is either incomplete, or no longer intended to be used so some comments should be made in the task-defs file.

Migrate plugin from SOMA to REST calls

Issue discussing the potential of migrating the SOMA calls to REST calls. This change would increase the ability to debug and contribute to the DataPower plugin.

This change could come in the form of a new plugin or update to this one. The plugin wrapping Ant calls wrapping SOMA calls provides a high level of complexity when debugging and modifying. Separating these REST calls into a new plugin would drastically simply the entire plugin.

As stated by the wiki documentation, the most popular commands are:

  • domain-create
  • domain-quiesce
  • domain-unquiesce
  • idcred-from-def
  • import-dpo or import-from-def
  • load-balancer-group-from-def
  • save
  • upload-from-def
  • valcred-from-def
    These commands should likely be tackled first.

@tonyffrench indicated that the SOMA calls access several XSLTs that would need to be accounted for. This issue is meant to discuss the feasibility of this change.

stylesheet parameters?

There doesn't seem to be an obvious solution for adding/deleting/modifying individual stylesheet parameters attached to specific objects.

Is there a way to use DCM for such tasks?

Create IDCred Definition Error

Hi Experts,

I'm testing out DCM definitions for our process automation, I encountered the below error while I run IdCred-from-definition on my custom ant Script.

Command: ant -f custom_build.xml -Ddm.dir=. -Dhost=192.168.0.19 -Duid=bharath -Ddevice=dp01 -Denvironment=dp01 -Ddomain=udcDemo domain-create idcred-from-def save

idcred-from-def:
[nxslt] nxslt running c:\Users\Bharath\Documents\Tools\dcm/src/remove-unwanted-elements.xsl on c:\Users\Bharath\Documents\Tools\ant_tutorials/ucdDemo/ucdDemo.idcred.dcm.xml producing tmp
[nxslt] Warning: The encoding 'UTF-8' is not supported by the Java runtime.
[nxslt] Warning: encoding "UTF-8" not supported, using UTF-8
[nxslt] nxslt running c:\Users\Bharath\Documents\Tools\dcm/src/idcred-to-ant.xsl on tmp producing c:\Users\Bharath\Documents\Tools\ant_tutorials\tmp/idcred.ant.xml
[nxslt] Warning: The encoding 'UTF-8' is not supported by the Java runtime.
[nxslt] Warning: encoding "UTF-8" not supported, using UTF-8
[nxslt] SystemId Unknown; Line #74; Column #28; This file doesn't contain a dcm:idcred element!
[nxslt] SystemId Unknown; Line #76; Column #42; Failed to generate internal template due to errors listed above.
[nxslt] (Location of error unknown)Stylesheet directed termination

I have attached the ANT Script and Definition File, Could you please look at it and let me know where I'm going wrong.

ant_tutorials.zip

Thanks,
Bharath

Allow Quiesce/Unquiesce of multiple domains

Hi,

Knowing that UCD doesn't support for-each loops it would be nice to have the DataPower plugin to provide the option to Quiesce/Unquiesce multiple domains in one step.

Functionality would be simular to the backupdomains step.

Thanks,
Jeroen

Export Object Error

Hello Experts,

I was evaluating the DCM component, I ran in to below error while executing Export-Object method,

C:\Users\<user>\Documents\dcm\dcm\deploy.ant.xml:658: The following error occurred while executing this line: C:\Users\<user>\Documents\dcm\dcm\src\dcm-taskdefs.ant.xml:136: Failed to export object castIron_LogServer_POC of class=MultiProtocolGateway from domain Test_Bharath on nc-wec-esbgw-a0r.<company>.com.

It looks like the Soma request is executing correctly and I was able to see the Succusful Soma response in the capture file, however, the command seems to error out while exporting intended objects, I have included the DCM command & Soma Capture file for your reference.

**Command**
ant -f deploy.ant.xml -Ddcm.dir=. -Dhost=nc-wec-esbgw-a0r.wellsfargo.com -Duid=xgidbrt -Dpwd=xxxxx -Ddomain=Test_Bharath -Dobject.class=MultiProtocolGateway -Dobject.name=castIron_LogServer_POC -Dexport.file="C:/Users/<user>/Documents/dcm/ant_tutorials/exports" -Dcapturesoma="C:/Users/<user>/Documents/dcm/ant_tutorials/capture_soma"  export-object

Please let me know, where do I seem to go wrong

capture_soma.txt

Thanks,
Bharath

Not Possible to Pass multiple properties

When using as UrbanCode plugin, its not possible to pass multiple property values.

For example from command line it would like this:

ant -f deploy.ant.xml -Ddcm.dir=. -Dhost=masked -Ddomain=BLAH -Duid=admin -Dpwd=masked -Dservice.name=LondonTrades -Dservice.type="MultiProtocolGateway" service-status

Same thing through a UrbanCode gui, there you add "Invoke any deploy.ant.xml target". In the add. prop. field I would put service.name=LondonTrades service.type=MultiProtocolGateway and it would never work. I tried separating by comma,etc putting them in quotes, dosent work. The only thing that works if a single property value is stated(e.g. only service.name OR service.type but not BOTH)

From your code(plugin.xml):


Import not changing files

hi guys,

I am using dcm to deploy zip. The issue arise when I change some file content and upload the same in git repository. And execute DCM job.Any change in file is not getting inported in DP...

From Hermann, I got to know there might be issue when I create zip not on DP..it might be not updating checksum. Do wo have any job to build DP export from GIT.

upload-dir giving error

Hi,

I have tried upload-dir command today, it is giving me errors. All required properties are set but it is still throwing the following error may be because 'https://x.x.x.x:5550 /service/mgmt/current' there is a space between port and uri. Not sure where to correct this ( is it in Java ?? )

  1. I have tried other commands like uploading a single file, importing services, they are all fine.
  2. I have taken the same SOMA request from the -Dcapturesoma generated log and tried that with a testing tool to DP by removing space, it worked fine. Only the ant command line is giving a problem.

Can someone please help ?

upload-dir:

BUILD FAILED
C:\Users\S\Documents\svn_workspace\Automation\Datapower Configuration Manager\deploy.ant.xml:1221: java.net.MalformedURLException: For input string: "5550 "
at java.net.URL.(URL.java:627)
at java.net.URL.(URL.java:490)
at java.net.URL.(URL.java:439)
at com.ibm.dcm.SSLConnection.sendAndReceive(SSLConnection.java:153)
at com.ibm.dcm.taskDpupload.createDirectory(taskDpupload.java:393)
at com.ibm.dcm.taskDpupload.upload(taskDpupload.java:270)
at com.ibm.dcm.taskDpupload.execute(taskDpupload.java:119)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:857)
at org.apache.tools.ant.Main.startAnt(Main.java:236)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113)
Caused by: java.lang.NumberFormatException: For input string: "5550 "
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:216)
at java.net.URL.(URL.java:622)
... 22 more

Total time: 3 seconds

Thanks.

Deployment Policy Definitions [Need Help]

Hello Experts,

I'm working with DCM project to automate our deployments, As part of it, I'm working with Import-with-Def ANT target to import a service package with deployment policy. I was able to Modify Property through definitions file, I would like to filter out certain configuration items in the import package through Deployment policy definitions, I was trying out "delete-property" element in the deployment definition but, that isn't doing what I desire.

PFB property elements

<delete-property prop-name="Cryptocert_15" type="Certificate" name="valCred-CCS"/>
<delete-property prop-name="Cryptocert_16" type="Certificate" name="valCred-CCS"/>
<delete-property prop-name="Cryptocert_17" type="Certificate" name="valCred-CCS"/>
<delete-property prop-name="Cryptocert_18" type="Certificate" name="valCred-CCS"/>
<delete-property prop-name="Cryptocert_19" type="Certificate" name="valCred-CCS"/>
<delete-property prop-name="Cryptocert_20" type="Certificate" name="valCred-CCS"/>

PFA validation credential snapshot

import_with_def_no_objects_deleted

Please let me know what should be correct definition parameter in order filter out certificate entries in Validation credential object.

Thanks,
Bharath

UCD plugin steps fails when UCD Ant version is different to dcm included Ant version

Hi
Since the ant startup script uses whatever ANT_HOME is set to, steps like Import Basic fail as the (current) default version of Ant included with UCD is different eg.
/opt/ibm-ucd/agent/opt/apache-ant-1.8.4)
Typical error is "deploy.ant.xml:922: java.lang.NoClassDefFoundError: org/apache/xalan/processor/TransformerFactoryImpl"

We worked around it by hacking the ant startup script from dcm to hardcode ANT_HOME.
Sudhakar

Import-with-def Error

Hello Experts,

I'm trying out "Import-with-Def" ANT Target as part of our deployment automation task, I ran in to an issue while executing this command to Import zip file based on the definitions. It looks like the java code is broken somewhere while execution, however, when I check DataPower import configuration, I see the objects are imported successfully, There are few objects down but, that could be be due to file missing in the Crypto Certificate objects. I guess import was successful however, java code seems to break at some point after importing zip file.

PFA console output

import_with_def_logs.txt

command
ant -f deploy.ant.xml -Ddcm.dir=. -Dhost=nc-wec-esbgw-b0r.company.com -Duid=xgidbrt -Dpwd=xxxxx -Ddomain=Test_Build_DEMO -Dupload.file="C:/Users/user/Documents/dcm/ant_tutorials/definitions/dcm_deployment_policy.xml" -Dimport.changes.file="C:/Users/user/Documents/dcm/ant_tutorials/definitions/dcm_deployment_policy.xml" -Dimport.file="C:/Users/user/Documents/dcm/ant_tutorials/export/A-C3G-CCISServices_export_all_objects.zip" -Dcapturesoma="C:/Users/user/Documents/dcm/ant_tutorials/capture_soma" -Dall.files=true -v upload-from-def import-from-def

I have attached the definitions file for your reference.

dcm_deployment_policy.txt

Could you please look in to this and let me know where does the command seem to break

Thanks,
Bharath

Updating Specific xslt or xml file in datapower

Hi,

I wanted to update a particular xslt/xml file from easy start project.
Will it possible ? .If possible could you please guide me how to do and where to start ?

When running this project it is dependent of DCM jar file.Can we run the easystart project without using the DCM jar ?

Can you please tell me the answer for this.

Thanks
SK

Any documentation\help on running DCM tests

Hi there

I am keen to use DCM in our enterprise environment.
I am working on testing selected ant target that we may use.

Is there any more updated documentation other WIKI?
Particularly, it is ok to run test-deploy.ant and test-wdp. Do i just need a test domain?

Continue on certain failed imports

Normal Datapower SOMA and CLI commands are able to easily ignore basic import errors, such as when the import doesn't have access to certain file locations. These calls typical return a warning but continue successfully.

The import plugin steps however take this as a binary response and cannot differentiate between warnings and critical errors. Thus it will take a small warning as a complete failure and fail completely. The import commands do not contain a work around to succeed against a simple "No access to file" Import Error.

LB Object import from definitions error

Hello @nhmathis ,

I have run in to error while import Load Balancer Object from definitions, Please find the attached definitions file , error log and command used to execute this method.

Command: ant -f deploy.ant.xml -Ddcm.dir=. -Dhost=192.168.0.19 -Duid=bharath -Ddomain=ucdDemo -Dlbg.file='ucdDemo.lbg.dcm.xml' check-access load-balancer-group-from-def save

Error Log:

load-balancer-group-from-def:
    [nxslt] nxslt running ./src/remove-unwanted-elements.xsl on ucdDemo.lbg.dcm.xml producing tmp
    [nxslt] Warning:  The encoding 'UTF-8' is not supported by the Java runtime.
    [nxslt] Warning: encoding "UTF-8" not supported, using UTF-8
    [nxslt] nxslt running ./src/load-balancer-group-to-ant.xsl on tmp producing C:\Users\u583874\Documents\dcm\dcm\tmp/lbg.ant.xml
    [nxslt] Warning:  The encod
[ucdDemo.lbg.dcm.xml.zip](https://github.com/ibm-datapower/datapower-configuration-manager/files/1033385/ucdDemo.lbg.dcm.xml.zip)

ing 'UTF-8' is not supported by the Java runtime.
    [nxslt] Warning: encoding "UTF-8" not supported, using UTF-8
    [nxslt] SystemId Unknown; Line #165; Column #28; This file doesn't contain a dcm:loadbalancergroup element!
    [nxslt] SystemId Unknown; Line #167; Column #42; Failed to generate internal template due to errors listed above.
    [nxslt] (Location of error unknown)Stylesheet directed termination

Please let me know on what needs to be done in order to fix this issue.

Thanks,
Bharath

Changes to the interior layers

Hello,

I was planning to add some new features to DCM, however I saw this on the Wiki home page:

"Interior layers include XSLT and Java. You are discouraged from using these interior layers directly as a long-term project is underway to replace much of this code."

Can you please disclose how things are going to change? Until this is cleared up I fear any new features I add will be rendered obsolete when the design changes are made.

NB: in my opinion the mix of Ant, XSLT and tightly coupled Java makes things overly complicated. I would instead rather see the heavy lifting done entirely in XSLT, with the Java code acting as little more than a thin proxy to the SOMA web service interface. This way most DataPower developers would more easily be able to contribute and customise DCM, since they should already have XSLT skills to work with DataPower. This is just my initial opinion, happy to discuss in detail if you like :-)

Cheers,
Sam

Deployment Policy Variables

Hi,
I'm using the DataPower UCD plugin and wondered if it is it currently possible to use "Deployment Policy Variables" together with the "Import (Deployment Policy Object)" step?

If not, is it somewhere on the roadmap?

Thanks,
Jeroen

dcm command line distribution broken?

It appears the command line distribution is broken, I see this error when I try to use DCM (any target):

BUILD FAILED: [DCM root dir]/dcm-distros/dcm.1/deploy.ant.xml:137: The Ant property 'dcm.dir' doesn't seem to point to DCM since [DCM root dir]/dcm-distros/dcm.1/dist/dcm.dev.jar is not found.

I believe this is due to build.xml line 35:

<property name="version" value="dev"/> <!-- default -->

Before the value was "1", which produces a jar named "dcm.1.jar", which deploy.ant.xml expects. Reverting the value to "1" fixes the command line distribution easily enough, but I don't know if that breaks the UCD plugin distribution. I would try but I don't have a UCD setup right now. Maybe later this week.

IMO, having version numbers in internal build artefacts like this is a bad idea and just causes build maintenance problem (like this). It is OK putting a version number in the external distribution .zip file (e.g. DCM.1.0.zip and DataPowerUCDPlugin.1.0.zip) but I suggest keeping file names inside those packages consistent.

I see a task in build.xml (line 99):

<replace file="tmp/dcm/deploy.ant.xml" token="value=&quot;1&quot;" value="value=&quot;${version}&quot;"/>

This seems to patch the DCM command line distribution to work with UCD. Why does this all need to happen? Have I missed something?

Cheers,
Sam

NoClassDefFoundError: org/apache/xalan/processor/TransformerFactoryImpl

I have seen a customer getting the following error when using datapower plugin for IBM Urbancode Deploy

ucd/agent/var/plugins/com.ibm.datapower_8_39de24fa886abf9597a889b72d4c974c3ea004fe6a63aaf9622dd334533e527a/dcm/deploy.ant.xml:960: java.lang.NoClassDefFoundError: org/apache/xalan/processor/TransformerFactoryImpl at com.ibm.dcm.taskNxslt.execute(taskNxslt.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:155) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 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.taskdefs.Sequential.execute(Sequential.java:68) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 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:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) at org.apache.tools.ant.Project.executeTarget(Project.java:1376) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1260) at org.apache.tools.ant.Main.runBuild(Main.java:853) at org.apache.tools.ant.Main.startAnt(Main.java:235) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112) Caused by: java.lang.ClassNotFoundException: org.apache.xalan.processor.TransformerFactoryImpl at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1388) at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1337) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1089) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 30 more Total time: 0 seconds com.urbancode.air.ExitCodeException: Command failed with exit code: 1

I noticed that in XSLCache.Java we do the following

private XSLCache (Project project) {
xformFactory = new org.apache.xalan.processor.TransformerFactoryImpl();;
antProject = project;
}

But we do not import the class but import the super class "javax.xml.transform.TransformerFactory".

In order to resolve the issue, do we need to import the xalan.jar file ?

Here is the link for the plugin - https://developer.ibm.com/urbancode/plugin/websphere-datapower-configuration-manager/

Original Question: https://developer.ibm.com/answers/questions/240186/ucd-datapower-plugin-step-execution-failed/?smartspace=urbancode

Command line giving error

Hi,

I have setup DCM and run the quickStart succesfully in ANT commandline. I have started with easyStart and created a domain but when I try to deploy a service it is giving me an error, I tried both .zip and .xcfg its the same error that I am getting.

Can someone please help me ? Below are the details.

Command

ant -f easyStart.ant.xml -Ddevice=dp01 -Denvironment=dev -Dservice=MPGSample import-from-def

I have defined all properties. I tried the same command with domain create and save as given in Wiki, no luck. So I simplified as above this doesn't work still.

Error

raw-policy.xml producing C:\Users\usr_2\Documents\svn_workspace\Automation\Datapower Configuration Manager\easystart\tmp/2_included_policies.xml
[nxslt] Warning: The encoding 'UTF-8' is not supported by the Java runtime.
[nxslt] Warning: encoding "UTF-8" not supported, using UTF-8
[nxslt] nxslt running C:\Users\usr_2\Documents\svn_workspace\Automation\Datapower Configuration Manager/src/expand-black-white-modify.xsl on C:\Users\usr_2\Documents\svn_workspace\Automation\Datapower Configuration Manager\easystart\tmp/2_included_policies.xml producing C:\Users\usr_2\Documents\svn_workspace\Automation\Datapower Configuration Manager\easystart\tmp/3_expanded-deployment-policies.xml
[nxslt] Warning: The encoding 'UTF-8' is not supported by the Java runtime.
[nxslt] Warning: encoding "UTF-8" not supported, using UTF-8
[nxslt] nxslt running C:\Users\usr_2\Documents\svn_workspace\Automation\Datapower Configuration Manager/src/write-deployment-policy.xsl on C:\Users\usr_2\Documents\svn_workspace\Automation\Datapower Configuration Manager\easystart\tmp/3_expanded-deployment-policies.xml producing C:\Users\usr_2\Documents\svn_workspace\Automation\Datapower Configuration Manager\easystart\tmp/4_gathered-deployment-policies.xml
[nxslt] Warning: The encoding 'UTF-8' is not supported by the Java runtime.
[nxslt] Warning: encoding "UTF-8" not supported, using UTF-8
[copy] Copying 1 file to C:\Users\usr_2\Documents\svn_workspace\Automation\Datapower Configuration Manager\easystart\tmp
[echo] Importing C:\Users\usr_2\Documents\svn_workspace\Automation\Datapower Configuration Manager\easystart/MPGSample/MPGSample.xcfg into domain dp01 on x.x.x.x.
[echo] ### ${import_success}=${import_success}
[echo] ### ${import_errors}=${import_errors}
[echo] Raw response to importing C:\Users\usr_2\Documents\svn_workspace\Automation\Datapower Configuration Manager\easystart/MPGSample/MPGSample.xcfg
[echo] ${import_response} ${import_errors}
BUILD FAILED
C:\Users\usr_2\Documents\svn_workspace\Automation\Datapower Configuration Manager\deploy.ant.xml:935: The following error occurred while executing this line:
C:\Users\usr_2\Documents\svn_workspace\Automation\Datapower Configuration Manager\src\dcm-taskdefs.ant.xml:1654: Failed to import C:\Users\usr_2\Documents\svn_workspace\Automation\Datapower Configuration Manager\easystart/mpgSample/MPGSample.xcfg into domain dp01 on x.x.x.x

Download specified files from a domain's filestore

Folks,
I would like to add an ant task that downloads specified files from a domain's filestore.

Use Case

In our existing automated deployment process in RAF, the concept of version (a service's version currently deployed in this device-domain) is implemented through a service version file that resides in the target domain's local filestore. In our deployment process in UCD, we would like to download that version file (if exists) for that service in the domain.

Proposal

An ant task (possibly UCD plugin step?) that downloads the specified files (1 to many) into a specified folder. I expect changes to the usual suspects:

  • deploy.ant.xml
  • src/dcm-taskdefs.ant.xml
  • possibly, src/main/zip/*.xml

I will start working on this over the coming days followed by a pull request (hopefully in time for version 10). Please share your thoughts.

cheers
wen

UCD Plugin problem

Hello,

Please see below error output when attempting to execute the checkpoint task of the UCD plugin (latest version 8 - .zip downloaded directly from the UCD website). UBC is version 6.2.1.0.769568 running on Windows 7.

The key problem is at the bottom of the trace below: ..dcm/dist/dcm.8.774073.jar is not found

Upon inspecting the contents of the directory, there is a jar instead named "datapower-8.774073.jar"

I'm pretty sure this explains the problem. Note that the latest version of the DCM build from direct Github download builds it with the filename dcm.8.774073.jar, so I suspect there is simply problem with the way the plugin is packaged by the Ant build script.

Cheers,
Sam

plugin: DataPower, id: com.ibm.datapower, version: 8
plugin command: 'cmd' '/C' '"C:\Users\C16536\Apps\ucd-agent\opt\groovy-1.8.8\bin\groovy -cp C:\Users\C16536\Apps\ucd-agent\var\plugins\com.ibm.datapower_8_f71931eed02d8c4fb2f2bcd5d9ecd54d0c94e6603f8324906e0ff5c1cf9f7577\classes C:\Users\C16536\Apps\ucd-agent\var\plugins\com.ibm.datapower_8_f71931eed02d8c4fb2f2bcd5d9ecd54d0c94e6603f8324906e0ff5c1cf9f7577\RunDeployDotAnt.groovy C:\Users\C16536\Apps\ucd-agent\var\temp\logs7222969517215546302\input.props C:\Users\C16536\Apps\ucd-agent\var\temp\logs7222969517215546302\output.props "-Ddomain=@domainname@" "-Denvironment=@Environment@" "-Dcheckpoint.name=@checkpoint@" checkpoint-save"'
working directory: C:\Users\C16536\Apps\ucd-agent\var\work\test-component
properties:
PLUGIN_INPUT_PROPS=C:\Users\C16536\Apps\ucd-agent\var\temp\logs7222969517215546302\input.props
PLUGIN_OUTPUT_PROPS=C:\Users\C16536\Apps\ucd-agent\var\temp\logs7222969517215546302\output.props
addlProperties=
checkpoint=Test
domainName=test
environment=DEV
hostname=redacted
portXMI=9090
pwd=redacted
uid=redacted
environment:
AGENT_HOME=C:\Users\C16536\Apps\ucd-agent
AH_AUTH_TOKEN=****
AH_WEB_URL=http://localhost:9095
AUTH_TOKEN=****
DS_AUTH_TOKEN=****
DS_SYSTEM_ENCODING=Cp1252
JAVA_OPTS=-Dfile.encoding=Cp1252 -Dconsole.encoding=Cp1252
PLUGIN_HOME=C:\Users\C16536\Apps\ucd-agent\var\plugins\com.ibm.datapower_8_f71931eed02d8c4fb2f2bcd5d9ecd54d0c94e6603f8324906e0ff5c1cf9f7577
UD_DIALOGUE_ID=70652883-db70-4628-ae54-a813c4176257

WE_ACTIVITY_ID=023e1e65-8cdb-444f-8fe6-50b18032e171

C:\Users\C16536\Apps\ucd-agent\var\plugins\com.ibm.datapower_8_f71931eed02d8c4fb2f2bcd5d9ecd54d0c94e6603f8324906e0ff5c1cf9f7577/dcm/apache-ant-1.9.6/bin/ant.bat -f C:\Users\C16536\Apps\ucd-agent\var\plugins\com.ibm.datapower_8_f71931eed02d8c4fb2f2bcd5d9ecd54d0c94e6603f8324906e0ff5c1cf9f7577/dcm/deploy.ant.xml -Ddcm.dir=C:\Users\C16536\Apps\ucd-agent\var\plugins\com.ibm.datapower_8_f71931eed02d8c4fb2f2bcd5d9ecd54d0c94e6603f8324906e0ff5c1cf9f7577/dcm -Dhost=192.168.220.130 -Dport=9090 -Duid=ucd-dcm-test -Dpwd=* -Dwork.dir=C:\Users\C16536\Apps\ucd-agent\var\work\test-component./tmp -Ddomain=unit-test-decorator-prototype-tls -Denvironment=DEV -Dcheckpoint.name=Test checkpoint-save
command: C:\Users\C16536\Apps\ucd-agent\var\plugins\com.ibm.datapower_8_f71931eed02d8c4fb2f2bcd5d9ecd54d0c94e6603f8324906e0ff5c1cf9f7577\dcm\apache-ant-1.9.6\bin\ant.bat -f C:\Users\C16536\Apps\ucd-agent\var\plugins\com.ibm.datapower_8_f71931eed02d8c4fb2f2bcd5d9ecd54d0c94e6603f8324906e0ff5c1cf9f7577/dcm/deploy.ant.xml -Ddcm.dir=C:\Users\C16536\Apps\ucd-agent\var\plugins\com.ibm.datapower_8_f71931eed02d8c4fb2f2bcd5d9ecd54d0c94e6603f8324906e0ff5c1cf9f7577/dcm -Dhost=192.168.220.130 -Dport=9090 -Duid=ucd-dcm-test -Dpwd=
* -Dwork.dir=C:\Users\C16536\Apps\ucd-agent\var\work\test-component./tmp -Ddomain=unit-test-decorator-prototype-tls -Denvironment=DEV -Dcheckpoint.name=Test checkpoint-save
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.8.0_45\lib\tools.jar
Buildfile: C:\Users\C16536\Apps\ucd-agent\var\plugins\com.ibm.datapower_8_f71931eed02d8c4fb2f2bcd5d9ecd54d0c94e6603f8324906e0ff5c1cf9f7577\dcm\deploy.ant.xml

BUILD FAILED
C:\Users\C16536\Apps\ucd-agent\var\plugins\com.ibm.datapower_8_f71931eed02d8c4fb2f2bcd5d9ecd54d0c94e6603f8324906e0ff5c1cf9f7577\dcm\deploy.ant.xml:134: The Ant property 'dcm.dir' doesn't seem to point to DCM since C:\Users\C16536\Apps\ucd-agent\var\plugins\com.ibm.datapower_8_f71931eed02d8c4fb2f2bcd5d9ecd54d0c94e6603f8324906e0ff5c1cf9f7577/dcm/dist/dcm.8.774073.jar is not found.

Total time: 0 seconds
com.urbancode.air.ExitCodeException: Command failed with exit code: 1

Arbitrary DataPower commands

A customer was asking me about executing arbitrary DataPower commands via the UCD DataPower Configuration Manager, using SOMA if need be. The specific things they're interested in are being able to modify a config so that they could change an NFS mount from hard to soft, and other admin. operations like listing users, deleting users, and so on.

Looking around, I see things like the dcm:object * elements. Would that do what they want? Or is there specific support for some of the things that they're looking for without having to drop down to SOMA? If the dcm:object* elements would be their best bet, which version first introduced support for dcm:object*?

Sorry if this isn't the right place to be asking these kinds of questions. I have even less experience with this than they do. . . .

download-files target file error

I am trying to use the download-files task to download a target file, however, I am getting the following error:

Removed\datapower-configuration-manager-master\deploy.ant.xml:609: The following error occurred while executing this line:
Removed\datapower-configuration-manager-master\src\dcm-taskdefs.ant.xml:739: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.

I am just trying to do something basic like pull a file named inputs.xml from temporary: I am using these two parameter inputs, however, for filename I've tried different variations.

-Dfilestore=temporary:
-Dfiles=inputs.xml

I am able to download the complete filestore successfully if I leave out the files parameter. I assume it has something to do with my syntax but I can't say for sure.

Export All Objects Error (uDeploy)

Hello Experts,

I'm working with uDeploy to automate our deployments and as part of this, I have been trying to export object through "export-object" target. I seem to get an error while executing the Process steps.

/apps/udeploy/agent_iaseng/var/plugins/com.ibm.datapower_14_c3a2c3a968584fd4f581528bd2cd099e0dfe97663c61ee533cccf732af1b63f6/dcm/deploy.ant.xml:658: The following error occurred while executing this line: /apps/udeploy/agent_iaseng/var/plugins/com.ibm.datapower_14_c3a2c3a968584fd4f581528bd2cd099e0dfe97663c61ee533cccf732af1b63f6/dcm/src/dcm-taskdefs.ant.xml:138: Failed to export object all-objects of class=all-classes from domain Test_Bharath on nc-wec-esbgw-a0r.wellsfargo.com.

I have tried to change the export.file property just to see If that is actually the culprit while running the process steps, I didn't get beyond this error.

I have attached the logs for your reference, Could you Please take a look at it and let me know If there is something wrong with my process step.

Export_Object_uDeploy_Error.txt

Thanks,
Bharath

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.