WebSphere Portal Server - XMLAccess Error

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > July 2007 > XMLAccess Error





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 XMLAccess Error

2007-07-23, 7:25 am

Hi,

I tried to deploy my test portlet war file through xml access. but i am getting following error

<status element="[content-node homePage uniquename=aig.portal.home]" result=
"failed">
<message id="EJPXA0025E">com.ibm.wps.command.xml.XmlCommandException: EJ
PXA0025E: The resource was not found in the portal, either because it does not e
xist or because you have not specified an identifying attribute in the XML input
[content-node homePage uniquename=aig.portal.home]</message>


herewith i am attaching my xml file.I am getting error at line nr 21. pls help me to rectify this error.
Oliver Then

2007-07-23, 7:25 am

The error says there is a problem identifying the resource "content-node
homePage uniquename=aig.portal.home". I assume that there is no content
node with unique name "aig.portal.home" in your portal. Did you verify
the content node exists with this unique name?

Oliver

2007-07-23, 7:25 am

thx for immed reply. If I change this one
<content-node action="locate" active="true" objectid="MyPortal" uniquename="ibm.portal.Home"/> instead of
<content-node action="locate" active="true" objectid="MyPortal" uniquename="aig.portal.Home"/>. Then its working fine. Will this not create any content node with unique name. If so , how do i deploy my wars against production server. pls help me.
Oliver Then

2007-07-23, 7:25 am

Well, if you set the action="locate" this will not create any resource
in your portal. In this case, XMLAccess only tries to locate that
(existing) resource in your portal. If the resource does not exist, an
exception is thrown.
If you set the action="update", then a resource will be created if it
does not exist. In case the resource existed before, an update to that
resource will be performed.
I hope this helps,
Oliver

2007-07-23, 7:25 am

I did set action="update" like
<content-node action="update" active="true" objectid="MyPortal" uniquename="aig.portal.Home"/>

<status element="[content-node MyPortal uniquename=aig.portal.Home]" result=
"failed">
<message id="EJPXA0067E">com.ibm.wps.command.xml.XmlCommandException: EJ
PXA0067E: The following configuration data is needed to create a content-node re
source: type. [content-node MyPortal uniquename=aig.portal.Home]</message>
</status>
Oliver Then

2007-07-23, 7:25 am

This does not work. You cannot just replace "locate" with "update". For
an update operation, more attributes are required than for a locate
operation. Therefore your import fails. You should have a look at the
XML samples shipped with portal in <Portal>/doc/xml-samples directory.
There is a sample file for creating a page.
In addition, you must be aware of what you are doing. Do you really want
to create a new page with your import? From the navigational point of
view, this will make a difference where your portlet is located. So you
must be aware of what you are trying to do with your import, and
depending on this you would have to set up your xml file.


Oliver
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com