?
Solved

Jython script to automate websphere deployment

Posted on 2013-05-16
4
Medium Priority
?
2,609 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
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 …
Suggested Courses

770 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