Posted By:
Saravanan_Thangavelu
Posted On:
Wednesday, November 12, 2008 05:22 PM
Need an ANT Script to change the WARClassLoaderPolicy of an Application deployed in Websphere Server from "Module" to "Application" I already have one but it gives me an exception which is mentioned below Existing JACL Script(warcl.jacl): ================Begin Script========================== set deployments [$AdminConfig getid /Deployment:petstore/] set deploymentObject [$AdminConfig showAttribute $deployments deployedObject] puts"*****************************************************************************************************" puts $deploymentObject puts"****************************************************
More>>
Need an ANT Script to change the WARClassLoaderPolicy of an Application deployed in Websphere Server from "Module" to "Application"
I already have one but it gives me an exception which is mentioned below
Existing JACL Script(warcl.jacl):
================Begin Script==========================
set deployments [$AdminConfig getid /Deployment:petstore/]
set deploymentObject [$AdminConfig showAttribute $deployments deployedObject]
puts"*****************************************************************************************************"
puts $deploymentObject
puts"*****************************************************************************************************"
set war_classloader_policy [$AdminConfig showAttribute
$deploymentObject warClassLoaderPolicy]
puts "***************************"
puts $war_classloader_policy
puts "***************************"
#Set Variable for WAR Classloader Policy
SINGLE=Application, MULTIPLE=Module
puts "WAR Classloader Policy SINGLE=Application,
MULTIPLE=Module"
$AdminConfig modify $deploymentObject
{{warClassLoaderPolicy MULTIPLE}}
$AdminConfig save
set deploymentObject_New [$AdminConfig showAttribute
$deployments deployedObject]
set war_classloader_policy_New [$AdminConfig showAttribute
$deploymentObject_New warClassLoaderPolicy]
puts"*****************************************************************************************************"
puts $war_classloader_policy_New
puts"*****************************************************************************************************"
===============End Script=============================
and I am trying to execute it from my build.xml as
When executing the following command in UNIX
I am getting the following exception.
bash-2.05a# ant -f build.xml moduleToApp
Buildfile: build.xml
moduleToApp:
[exec] WASX7209I: Connected to process "dmgr" on node
wil-epdmdev01 using SOAP connector; The type of process is: DeploymentManager
[exec] WASX7017E: Exception received while running file "warcl.jacl"; exception information: com.ibm.ws.scripting.ScriptingException: WASX7077E: Incomplete config id: need closing parenthesis in ""
[exec]
[exec] Result: 105
BUILD SUCCESSFUL
Total time: 16 seconds
bash-2.05a#
It would be great if anybody comes with a solution to resolve this issue.
<<Less