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

deploy a WPF project using ant script/xml access

56 views
Skip to first unread message

vikn

unread,
Aug 11, 2009, 1:03:15 PM8/11/09
to
I am trying to deploy a wpf project in development portal server...using xml access.
So i have deployed the portlet using the below xml(i have used the samples xml which r in *PortalServer_root\doc\xml-samples*) & it is perfectly deployed:-





file:///C:/IBM2/WebSphere/wp_profile/installableApps/HPHC.war





But when i made some changes in war then again try to deploy it then a error is coming which is below:-


com.ibm.wps.command.xml.XmlCommandException: EJPXA0043E: An error occurred while creating or updating the resource. web-app
com.ibm.wps.command.applications.AppAlreadyExistsException: EJPPF0181E: Error occurred. The id=com.bowstreet.portlet.WebAppRunner_HPHC already exists for stored standard portlet application com.bowstreet.portlet.WebAppRunner_HPHC in the XML element portlet-app HPHC.war.
WrappedException is: com.ibm.wps.pe.mgr.exceptions.DuplicateAppException: EJPPF0181E: Error occurred. The id=com.bowstreet.portlet.WebAppRunner_HPHC already exists for stored standard portlet application com.bowstreet.portlet.WebAppRunner_HPHC in the XML element portlet-app HPHC.war.
com.ibm.wps.pe.mgr.exceptions.DuplicateAppException: EJPPF0181E: Error occurred. The id=com.bowstreet.portlet.WebAppRunner_HPHC already exists for stored standard portlet application com.bowstreet.portlet.WebAppRunner_HPHC in the XML element portlet-app HPHC.war.


Also in samples xml there is UpdatePortlet.xml but the tags & attributes which r there, are same as above xml which i used for deploying a portlet
so pls let me know which xml shud i use to update a portlet if it is already exist in a portal server

Many Thanks!
Vikas

vikn

unread,
Aug 12, 2009, 11:03:34 AM8/12/09
to
pls help me on this if someone knows if there is a different xml script for updating a portlet if it is already exist in a portal server, through xml access...

jb...@us.ibm.com

unread,
Aug 12, 2009, 12:00:50 PM8/12/09
to
Review this document http://www-01.ibm.com/support/docview.wss?uid=swg21314733

Also, on the subsequent updates do not set create-oids="true" in the xml

vikn

unread,
Aug 12, 2009, 2:20:55 PM8/12/09
to
thx jbroz, i will implement ur suggestion...

meanwhile i have one more query which is:-

When we deploy the portlet in portal server then it is creating a directory PA_WPF.ear in installedApps, so cant we give a portlet specific ear file name using xml script or something else..

jbroz

unread,
Aug 13, 2009, 12:21:55 PM8/13/09
to
There is no way to assign a specific name to the ear file using xmlaccess. I would not be concerned with the ear or any directory created in the filesystem during the deploy. If you need to later refer to the application or portlets in it, assign uniquenames to them using the custom unique names admin portlet. After doing that you can refer to the objects using the uniquename.

vikn

unread,
Aug 13, 2009, 12:47:16 PM8/13/09
to
..

in this way if we deployed 5 more portlets then it will create directories like PA_WPF_1.ear, PA_WPF_2.ear, and so on...

so if we can also give a name to the ear file, then it will be easy to find the logs of xyz portlet in development/production server.

this is one of the scenario which will help the support of a project...

jbroz

unread,
Aug 13, 2009, 1:53:53 PM8/13/09
to
There is no way to set the name of the ear file using xmlaccess. What kind of logging statements are you looking for? Typically custom portlets log to the Portal SystemOut.log or to their own logs. Any log messages generated by the deploy itself will be in the Portal log or trace if it's enabled.

vikn

unread,
Aug 28, 2009, 2:14:09 AM8/28/09
to
below r the changes which updates a portlets using xmlaccess... *thanks to JBroz for sharing the document*
http://www-01.ibm.com/support/docview.wss?uid=swg21314733

tag in the deployment XML file, the "uid" attribute should match the "id" attribute given in the tag in portlet.xml

also it is good to give a unique name to the portlet

thx
Vikas

0 new messages