Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using wsadmin to install EAR in websphere portal

941 views
Skip to first unread message

advait...@yahoo.com

unread,
Dec 1, 2006, 4:43:49 AM12/1/06
to
I have a JACL script that I run using wsadmin to install an EAR file. EAR file contains a war file and a jar file.

command to connect to wsadmin:

wsadmin -port 8881
port 8881 is SOAP port for websphere portal server.

JACL command:
$AdminApp install D:/test/DeployTestEAR.ear [list -MapWebModToVH [list [list "TestWebWAR" TestWebWAR.war,WEB-INF/web.xml default_host]] -cell MLBP-0667Node01Cell -node mlbp-0667 -server WebSphere_Portal -appname DeployTestEAR -nodistributeApp -nodeployejb]

But I keep getting this message and EAR does not get deployed:

[12/1/06 13:03:18:548 IST] 0000000a ManagerAdmin I TRAS0017I: The startup trace state is *=info.
[12/1/06 13:03:19:564 IST] 0000000a AbstractShell A WASX7326I: Loaded properties file "/D:/IBM/WebSphere/AppServer/profiles/AppSrv01/properties/wsadmin.properties"
[12/1/06 13:03:23:376 IST] 0000000a AdminConfigCl A WASX7208I: Validation settings in effect now: Level=HIGHEST, Cross-validation=true, Output file=D:/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/wsadmin.valout
[12/1/06 13:04:01:877 IST] 0000000a AbstractShell A WASX7091I: Executing script: "d:/DeployRegisterEAR/jacl_scripts/deployTestEAR.jacl"
[12/1/06 13:04:07:533 IST] 0000000a WorkSpaceMana A WKSP0500I Workspace configuration consistency check is false.
[12/1/06 13:04:08:815 IST] 0000000a AbstractShell E WASX7120E: Diagnostic information from exception with text "com.ibm.ws.scripting.ScriptingException: WASX7132E: Application install for D:\test\DeployTestEAR.ear failed: see previous messages for details.
" follows:

com.ibm.ws.scripting.ScriptingException: WASX7132E: Application install for D:\test\DeployTestEAR.ear failed: see previous messages for details.
at com.ibm.ws.scripting.AbstractShell.setAndThrowScriptingException(AbstractShell.java:1399)
at com.ibm.ws.scripting.AdminAppClient.invokeMBeanInstall(AdminAppClient.java:4817)
at com.ibm.ws.scripting.AdminAppClient.commonInstall(AdminAppClient.java:2254)
at com.ibm.ws.scripting.AdminAppClient.doInstall(AdminAppClient.java:1670)
at com.ibm.ws.scripting.AdminAppClient.doInstall(AdminAppClient.java:1589)
at com.ibm.ws.scripting.AdminAppClient.install(AdminAppClient.java:1202)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

advait...@yahoo.com

unread,
Dec 1, 2006, 4:52:42 AM12/1/06
to
I am using Websphere portal v6.0 and Websphere application server v6.0

Bala Labhishetty

unread,
Dec 1, 2006, 9:41:27 AM12/1/06
to
Did you tried with installing EAR file thru WAS admin console.?

Thanks & Regards,
Bala

advait...@yahoo.com

unread,
Dec 4, 2006, 4:29:31 AM12/4/06
to
hi bala,

i tried installing ear through was console, and succeeded, but the portlet contained with in the ear file as not visible in wps admin console: Portlet Management -> Portlets link.

1 more thing, is it OK of package portlet WARs in an EAR file?

Bala Labhishetty

unread,
Dec 4, 2006, 9:47:39 AM12/4/06
to
Just installing EAR file not completes the procedure, during this time it will copy ear/war files into app server installedapps directory. After this job you need to execute xmlacess script to activate portlets, then you can see this portlets in portal admin pages.

You can read the content in the following url.
http://publib.boulder.ibm.com/infocenter/wpdoc/v510/topic/com.ibm.wp.ent.doc/wps/adprdplt.html

Thanks & Regards,
Bala


vasanth...@gmail.com

unread,
Aug 22, 2008, 7:52:34 AM8/22/08
to
Hi

i am deplying the Portal EAr on WPS in unix i am using the jacl script to instal i am getting the EAr not found if i give the correct path also. please find the attached scripts.
Deploy.jacl
set PortalEAR PORTALEAR.ear
$AdminApp uninstall $PortalEAR
$AdminConfig save
set cellname /PORTAL/IBM/WebSphere/PortalServer/installedApps
set reloadInt 1800
set validate warn
set PortalEARpath /PORTAL/portal_wrk/EAR/portalEAR.ear
set attrs [list -cell $cellname -appname $PortalEAR -nocreateMBeansForResources -nodeployejb -reloadEnabled -reloadInterval $reloadInt -validateinstall $validate]
$AdminApp install $PortalEARpath $attrs
$AdminConfig save

my deply.sh

./../IBM/WebSphere/AppServer/bin/wsadmin.sh -host jahnavi -port 10033 -user portal -password infy123 -f Deploy.jacl
./../IBM/WebSphere/PortalServer/bin/xmlaccess.sh -in RedeployedTestEar.xml -url http://jahnavi:10038/wps/config -user portal -password infy123

i am getting following error even after i am keeping the EAR in this folder /PORTAL/portal_wrk/EAR/portalEAR.ear from where i am running my jacl script

Jim Barnes

unread,
Aug 22, 2008, 8:51:12 AM8/22/08
to
?

IBM Certified System Administrator -- WebSphere Portal V6.0, V5.1, V5.0

IBM Certified Solution Developer -- WebSphere Portal V5.1, v6.0

The postings on this site are my own and do not necessarily represent the positions, strategies, or opinions of IBM

abdu...@gmail.com

unread,
Sep 9, 2008, 2:18:08 PM9/9/08
to
If the issue is not resolved then i might help you...

Regards,
Abdul

0 new messages