Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

wsadmin and setting web module classloader to PARENT_LAST

Status
Not open for further replies.

tt2005

Technical User
Dec 9, 2004
1
0
0
US
I'm trying to set the WAR file web module classloader to PARENT_LAST with wsadmin. However, I couldn't figure out why the script below would fail at AdminConfig create WebModuleConfig...
...
I did the same on EAR app classloader level with AdminConfig modify and it works fine. Anyone any idea? The wsadmin doesn't seem to have an indept documents on setting classloader at War file web module level.
----

proc setWARClassloader {} {
global AdminConfig
#
set deployments [$AdminConfig getid /Deployment:$appname/]
set deploymentObject [$AdminConfig showAttribute $deployments deployedObject]
set classloader [$AdminConfig showAttribute $deploymentObject modules ]
set modeattr [list classloaderMode $mode]
set attrs [list $modeattr]
#
$AdminConfig create WebModuleConfig "$classloader" "$attrs"

$AdminConfig save
}

thanks,
tt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top