|
Home > Archive > WebSphere Portal Server > March 2004 > xmlaccess error adding a wsrp portlet into a page
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 adding a wsrp portlet into a page
|
|
|
| Hi all,
(and apologies if my message appears twice but it didn't seem to be
relayed on google Newsgroups)
I'm using xml access to declare a wsrp producer, a wsrp portlet and
then create a page with a portlet instance inside. I use the following
script :
<?xml version="1.0" encoding="UTF-8"?>
<request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="PortalConfig_1.2.1.xsd" type="update"
create-oids="true">
<portal action="locate">
<wsrp-producer action="update" uniquename="jdialog.wsrp">
<service-description-url>http://127.0.0.1:8082/WSRPServiceDescriptionService</service-description-url>
<markup-url>http://127.0.0.1:8082/WSRPBaseService</markup-url>
<localedata locale="en">
<title>WSRP Producer</title>
</localedata>
<portlet-app action="update" active="true"
groupid="com.ibm.wps.portlets.wsrp.WidgetTour">
<portlet action="update" active="true" defaultlocale="en"
handle="WidgetTour" objectid="WidgetTour" name="WSRP WidgetTour">
<localedata locale="en">
<title>WSRP WidgetTour</title>
<description>wsrp portlet</description>
</localedata>
<access-control externalized="false" owner="undefined"
private="false"/>
</portlet>
</portlet-app>
</wsrp-producer>
<content-node action="locate" objectid="parentPage" uniquename="wps.My
Portal"/>
<content-node action="update" uniquename="wps.TestPage1"
ordinal="last" content-parentref="parentPage" active="true"
allportletsallowed="true" create-type="explicit" type="page">
<supported-markup markup="html" update="set"/>
<localedata locale="en"><title>WSRP portlets</title></localedata>
<component action="create" ordinal="100" type="container"
orientation="H">
<component action="create" ordinal="100" type="control">
<portletinstance action="update" portletref="WidgetTour"/>
</component>
</component>
</content-node>
</portal>
</request>
Xmlaccess fails on the last step, creating the portlet instance, the
ouput is above :
<!-- 1/8 [wsrp-producer uniquename=jdialog.wsrp] -->
<!-- 2/8 [portlet-app] -->
<!-- 3/8 [portlet CAAWidgetTour name=WSRP WidgetTour] -->
<!-- 4/8 [content-node parentPage uniquename=wps.My Portal] -->
<!-- 5/8 [content-node uniquename=wps.TestPage1] -->
<!-- 6/8 [component] -->
<!-- 7/8 [component] -->
<!-- 8/8 [portletinstance] -->
<request type="update"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi
:noNamespaceSchemaLocation="PortalConfig_1.2.1.xsd">
<status element="all" result="ok"/>
<status element="[portletinstance _5_082MMRE4QB0410P1_CL]"
result="warning">
<message>com.ibm.wps.command.xml.XmlCommandException: XMLC0090W: It is
n
ot possible to modify WSRP resources. Existing settings are left
unchanged. [por
tletinstance _5_082MMRE4QB0410P1_CL]</message>
</status>
</request>
Any help to solve this problem would be very apreciated, I didn't find
any sample about how to add a wsrp portlet into a WPS page using
xmlaccess...
Thank's,
Alexis
| |
|
| Did you ever find the solution for this? I am doing a full portal
export/import and ran into the sam error
Alex6 wrote:
> Hi all,
>
> (and apologies if my message appears twice but it didn't seem to be
> relayed on google Newsgroups)
>
> I'm using xml access to declare a wsrp producer, a wsrp portlet and
> then create a page with a portlet instance inside. I use the following
> script :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="PortalConfig_1.2.1.xsd" type="update"
> create-oids="true">
> <portal action="locate">
> <wsrp-producer action="update" uniquename="jdialog.wsrp">
> <service-description-url>http://127.0.0.1:8082/WSRPServiceDescriptionService</service-description-url>
> <markup-url>http://127.0.0.1:8082/WSRPBaseService</markup-url>
> <localedata locale="en">
> <title>WSRP Producer</title>
> </localedata>
> <portlet-app action="update" active="true"
> groupid="com.ibm.wps.portlets.wsrp.WidgetTour">
> <portlet action="update" active="true" defaultlocale="en"
> handle="WidgetTour" objectid="WidgetTour" name="WSRP WidgetTour">
> <localedata locale="en">
> <title>WSRP WidgetTour</title>
> <description>wsrp portlet</description>
> </localedata>
> <access-control externalized="false" owner="undefined"
> private="false"/>
> </portlet>
> </portlet-app>
> </wsrp-producer>
> <content-node action="locate" objectid="parentPage" uniquename="wps.My
> Portal"/>
> <content-node action="update" uniquename="wps.TestPage1"
> ordinal="last" content-parentref="parentPage" active="true"
> allportletsallowed="true" create-type="explicit" type="page">
> <supported-markup markup="html" update="set"/>
> <localedata locale="en"><title>WSRP portlets</title></localedata>
> <component action="create" ordinal="100" type="container"
> orientation="H">
> <component action="create" ordinal="100" type="control">
> <portletinstance action="update" portletref="WidgetTour"/>
> </component>
> </component>
> </content-node>
> </portal>
> </request>
>
> Xmlaccess fails on the last step, creating the portlet instance, the
> ouput is above :
>
> <!-- 1/8 [wsrp-producer uniquename=jdialog.wsrp] -->
> <!-- 2/8 [portlet-app] -->
> <!-- 3/8 [portlet CAAWidgetTour name=WSRP WidgetTour] -->
> <!-- 4/8 [content-node parentPage uniquename=wps.My Portal] -->
> <!-- 5/8 [content-node uniquename=wps.TestPage1] -->
> <!-- 6/8 [component] -->
> <!-- 7/8 [component] -->
> <!-- 8/8 [portletinstance] -->
> <request type="update"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi
> :noNamespaceSchemaLocation="PortalConfig_1.2.1.xsd">
> <status element="all" result="ok"/>
> <status element="[portletinstance _5_082MMRE4QB0410P1_CL]"
> result="warning">
>
> <message>com.ibm.wps.command.xml.XmlCommandException: XMLC0090W: It is
> n
> ot possible to modify WSRP resources. Existing settings are left
> unchanged. [por
> tletinstance _5_082MMRE4QB0410P1_CL]</message>
> </status>
> </request>
>
> Any help to solve this problem would be very apreciated, I didn't find
> any sample about how to add a wsrp portlet into a WPS page using
> xmlaccess...
>
> Thank's,
> Alexis
|
|
|
|
|