|
Home > Archive > WebSphere Application Server > September 2005 > Webspher Deployment error Using JACL
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Webspher Deployment error Using JACL
|
|
|
| Can any help???? i am facing the below error while deploying the application using jacl script
WASX7017E: Exception received while running file "c:/syadav/install.jacl"; exception information: com.ibm.bsf.BSFException: error while eval'ing Jacl expression: com.ibm.ws.scripting.ScriptingException: AppDeploymentException: [ADMA0092E: Unexpected excep
tion occurred while preparing task MapRunAsRolesToUsers. Please check server machines FFDC for more information.]
AppDeploymentException: []
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml
WASX7309W: No "save" was performed before the script "c:/syadav/install.jacl" exited; configuration changes will not be saved.
--------------------
Thanks in Advance
Suresh Yadav R
| |
|
| Could u post your jacl
thanks
venkat
| |
|
| Jacl file
---- ----
puts "Initializing setup..."
global BASEINSTDIR NDINSTDIR INSTDIR MYNODE APPSRV ENTAPP SWESINSTDIR LOGDIR AdminConfig AdminControl AdminApp nodeSync APPCLASSPATH
set BASEINSTDIR C:/IBM5/WebSphere/AppServer
puts "Websphere 5.0 Base Installation Directory : $BASEINSTDIR"
set NDINSTDIR C:/IBM5/WebSphere/DeploymentManager
puts "Websphere 5.0 ND Installation Directory : $NDINSTDIR"
set INSTDIR C:/IBM5/WebSphere/AppServer
puts "Installation Directory : $INSTDIR"
set MYNODE HCLESC1
puts "Node : $MYNODE"
set APPSRV SWES2.13
puts "Application Server : $APPSRV"
set LOGDIR C:/IBM5/WebSphere/AppServer/logs
puts "Log Directory : $LOGDIR"
set SWESINSTDIR C:/syadav/build
puts "ESC Install Dir : $SWESINSTDIR"
set ENTAPP swes
puts "Enterprise App Name : $ENTAPP"
set APPCLASSPATH C:/syadav/build/lib/saaj-api.jar
puts "Fix pack 2 update classpath : $APPCLASSPATH"
set nodeSync [$AdminControl completeObjectName type=NodeSync,node=$MYNODE,*]
puts "@@ nodeSync -- $nodeSync "
puts "@@ Creating and Configuring Application Server ** $APPSRV **"
set cell [$AdminControl getCell]
set node [$AdminConfig getid /Node:$MYNODE/]
set server1 [$AdminConfig listTemplates Server server1(templates/default/nodes/servers/server1:server.xml#Server_1)]
set server2_id [$AdminConfig createUsingTemplate Server $node [list [list name $APPSRV] [list outputStreamRedirect [list [list fileName \${LOGDIR}/swes-stdout.txt] [list rolloverType BOTH] [list maxNumberOfBackupFiles 5] [list rolloverSize 1] [list base
Hour 24] [list rolloverPeriod 24] [list formatWrites true] [list messageFormatKind BASIC] [list suppressStackTrace false] [list suppressWrites false] ]] [list errorStreamRedirect [list [list fileName \${LOGDIR}/swes-stderr.txt] [list rolloverType BOTH] [l
ist maxNumberOfBackupFiles 5] [list rolloverSize 1] [list baseHour 24] [list rolloverPeriod 24] [list formatWrites true] [list messageFormatKind BASIC] [list suppressStackTrace false] [list suppressWrites false] ]] ] $server1]
set appsrv [$AdminConfig list ApplicationServer $server2_id]
set prop1 [list [list applicationClassLoaderPolicy MULTIPLE] [list applicationClassLoadingMode PARENT_FIRST]]
$AdminConfig modify $appsrv $prop1
set orb [$AdminConfig list ObjectRequestBroker $server2_id]
$AdminConfig modify $orb {{noLocalCopies true}}
# modify JVM ATTR
set jvm [$AdminConfig list JavaVirtualMachine $server2_id]
puts "@@ create application server"
set props1 [list [list systemProperties [list [list [list name application.name] [list value $ENTAPP]] [list name log4j.configuration]] [list [list value ${INSTDIR}/installedApps/$cell/${ENTAPP}.ear/swes.war] [list value ${SWESINSTDIR}] [list name java
.util.prefs.PreferencesFactory] ] ]]
puts "@@ props1---- $props1"
puts "Configuring Server Completed"
puts "Installation started.........."
set vhostName "default_host"
set cell [$AdminControl getCell]
set server [$AdminConfig getid /Node:$MYNODE/Server:$APPSRV/]
set serv WebSphere:cell=$cell,node=$MYNODE,server
=$APPSRV
puts "Serever----- $serv"
# construct mappings
set server_mapping1 [list "command" was-command-ejb.jar,META-INF/ejb-jar.xml $serv]
puts "@@ server_mapping1----- $server_mapping1"
set server_mapping2 [list "swes.war" swes.war,WEB-INF/web.xml $serv]
puts "@@ server_mapping2----- $server_mapping2"
set opts [list -MapModulesToServers [list $server_mapping1 $server_mapping2]]
puts "@@ opts --- $opts"
set mapping [list "swes.war" swes.war,WEB-INF/web.xml $vhostName]
set mapVHopt [list -MapWebModToVH [list $mapping]]
append opts " " $mapVHopt
set attrs [list -node $MYNODE -server $APPSRV -appname $ENTAPP]
append opts " " $attrs
puts "Installing Enterprise Application ** $ENTAPP ** on Application Server ** $APPSRV **"
$AdminApp install $SWESINSTDIR/swes.ear $opts
puts "@@ install Succesfull"
set deployment [$AdminConfig getid /Deployment:$ENTAPP/]
set appDeploy [$AdminConfig showAttribute $deployment deployedObject]
$AdminConfig modify $appDeploy [list [list warClassLoaderPolicy SINGLE]]
$AdminConfig save
$AdminControl invoke $nodeSync sync
puts "Installation completed................"
set cell [$AdminControl getCell]
puts "@@ cell --- $cell"
# regenerate Plugin
set pluginGen [$AdminControl completeObjectName type=PluginCfgGenerator,*]
$AdminControl invoke $pluginGen generate "$NDINSTDIR $NDINSTDIR/config $cell null null plugin-cfg.xml"
# Start Application Server
$AdminControl startServer $APPSRV $MYNODE
puts "@@ Enterprise Application ** $ENTAPP ** Started and Open for e-Business"
|
|
|
|
|