Solved

Jython script to automate websphere deployment

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.net and sql server 4 64
Vector, list Questions R 6 66
IDE for Python 5 101
How do I fix this situation in GIT? 2 71
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

738 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