troubleshooting Question

jython script for modify the contextroot of a running app in WAS 6.1

Avatar of WAS
WASFlag for United States of America asked on
Python
5 Comments1 Solution3695 ViewsLast Modified:
i have trouble modifying the contextroot of a running application port-logic, below is the info and errors iam getting, please provide me with correct jython command to modify just the
context root of a running, mine is WAS6.1.0.21
wsadmin>AdminApp.edit('port-logic', ["-options"])
WASX7015E: Exception running command: "AdminApp.edit('lossb-slm', ["-options"])"; exception information:
 com.ibm.ws.scripting.ScriptingException: WASX7107E: Invalid options specified: "[options]"; valid options are:
MapModulesToServers
MapWebModToVH
CtxRootForWebMod
MapSharedLibForMod
JSPReloadForWebMod
distributeApp
nodistributeApp
useMetaDataFromBinary
nouseMetaDataFromBinary
createMBeansForResources
nocreateMBeansForResources
reloadEnabled
noreloadEnabled
allowDispatchRemoteInclude
noallowDispatchRemoteInclude
allowServiceRemoteInclude
noallowServiceRemoteInclude
verbose
installed.ear.destination
reloadInterval
validateinstall
filepermission
buildVersion
filepermission
installed.ear.destination

wsadmin>print AdminApp.view("port-logic", "-CtxRootForWebMod")


CtxRootForWebMod: Edit the Context root of web module

Context root defined in the deployment descriptor can be edited.

Web module:  port-logic.war
URI:  port-logic.war,WEB-INF/web.xml
ContextRoot:  krishna


wsadmin>


wsadmin>AdminApp.edit ( 'port-logic', ['-CtxRootForWebMod', 'Govind'])
WASX7015E: Exception running command: "AdminApp.edit ( 'port-logic', ['-CtxRootForWebMod', 'govind'])"; exception information:
 java.lang.ClassCastException: java.lang.ClassCastException: java.lang.String incompatible with java.util.List

wsadmin>
ASKER CERTIFIED SOLUTION
HonorGod
Software Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros