Solved

Jython script to automate websphere deployment

Posted on 2013-05-16
4
2,395 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
Comment Utility
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
Comment Utility
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
Comment Utility
script is working
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Excel object stays open 19 65
array6 challenfge 6 62
mapAB Challlenge 35 84
control image tags in a string ? 12 59
A short article about problems I had with the new location API and permissions in Marshmallow
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.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
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 …

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now