Solved

Jython script to automate websphere deployment

Posted on 2013-05-16
4
2,560 Views
Last Modified: 2013-12-11
I am trying to develop a jython script to automate the websphere deployment. I am trying to deploy to a cluster with two nodes. I was able to stop, uninstall and start cluster. but my 'install' step is not working. I have another script to stop the cluster.so this is performed after stopping the cluster. Here is my install step I am using in my script:

print AdminApp.install[apppath, '[-appname '+appfile+' -cell '+cell+' -cluster '+cluster+' -MapModulesToServers '+map_modules_cluster+' -MapWebModToVH '+map_modules_vh+']']

 map_modules_cluster='[ sample.war Sample.war,WEB-INF/web.xml WebSphere:cell=HostnameCell01,cluster=AdminCluster+WebSphere:cell=HostnameCell01,node=HostnameNode01,server=webserver1]'

map_modules_vh=default_host

WASX7209I: Connected to process "dmgr" on node PWCellManager01 using SOAP connector;  The type of process is: Deploy
mentManager
Getting Cell Name ..
Cell name is --> PWCell01
#######################################################################

--------------------------------------------------
Application--->DefaultApplication.earis installed on cluster-->AccessMgmtCluster
---------------------------------------------------
uninstalling application -->DefaultApplication.ear
ADMA5017I: Uninstallation of DefaultApplication.ear started.
ADMA5104I: The server index entry for WebSphere:cell=PWCell01,node=PWNode01+WebSphere:cell=PWCell0
1,node=PWNode01 is updated successfully.
ADMA5102I: The configuration data for DefaultApplication.ear from the configuration repository is deleted successfully.
ADMA5011I: The cleanup of the temp directory for application DefaultApplication.ear is complete.
ADMA5106I: Application DefaultApplication.ear uninstalled successfully.
---------------------------------------------------
application uninstalled --
----------------------------------------------------
Installing App on cluster -->AccessMgmtCluster
WASX7017E: Exception received while running file "clusterinstall.py"; exception information: com.ibm.bsf.BSFException: except
ion from Jython:
Traceback (innermost last):
  File "<string>", line 35, in ?
AttributeError: __getitem__


Thank you
0
Comment
Question by:cnu123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 1

Expert Comment

by:Bbouch
ID: 39181823
Are you still looking for an answer to this question?  Can you attach the script to the question? The code you posted and the output it generated don't match up. It would be helpful to see the whole script.
0
 

Accepted Solution

by:
cnu123 earned 0 total points
ID: 39182802
the script seems to be working now.I am not getting any errors. But haven't completely tested it. so i want to keep this post open. I should be able to test my script in a couple of days. If I find any issues I will post them here.

Thank you
0
 

Author Closing Comment

by:cnu123
ID: 39323030
script is working
0

Featured Post

Don't Miss ATEN at InfoComm 2017!

Visit booth #2167 to see the  new ATEN VM3200 32 x 32 Modular Matrix Switch. Other highlights include the VE8950 4K HDMI Over IP Extender, VS1912 12-Port DP Video Wall Media Player  and VK2100 ATEN Control System. Register now with Free Pass Code ATEN288!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Introduction to Processes

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question