XMLAccess Error
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > XMLAccess Error




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    XMLAccess Error  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-23-07 12:25 PM

Hi,

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

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


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





[ Post a follow-up to this message ]



    Re: XMLAccess Error  
Oliver Then


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-23-07 12:25 PM

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





[ Post a follow-up to this message ]



    Re: XMLAccess Error  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-23-07 12:25 PM

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 se
rver. pls help me.





[ Post a follow-up to this message ]



    Re: XMLAccess Error  
Oliver Then


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-23-07 12:25 PM

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





[ Post a follow-up to this message ]



    Re: XMLAccess Error  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-23-07 12:25 PM

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]" res
ult=
"failed">
<message id="EJPXA0067E">com.ibm.wps.command.xml.XmlCommandException: EJ
PXA0067E: The following configuration data is needed to create a content-nod
e re
source: type. [content-node MyPortal uniquename=aig.portal.Home]</messag
e>
</status>





[ Post a follow-up to this message ]



    Re: XMLAccess Error  
Oliver Then


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-23-07 12:25 PM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:56 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register