Solved

Jython script to automate websphere deployment

Posted on 2013-05-16
4
2,512 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
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This is about my first experience with programming Arduino.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
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 …

680 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