This discussion is archived
3 Replies Latest reply: Jan 27, 2007 11:36 PM by 807574 RSS

Error message for portlet undeploy

807574 Newbie
Currently Being Moderated
Hi,

I use Sun Java System Portal Server 6 2005Q4 for windows 2000 server , use the following command to undeploy portlet.


C:\Sun\PortalServer\bin> pdeploy undeploy -u amAdmin -w ampasswd -g -p amAdmin C:\Sun\PortalServer\tmp\portlet\portletsamples.war

I got the following error message =>

Exception getting xml as stream: java.io.FileNotFoundException: C:\Sun\PortalServer\tmp\portlet\C:\Sun\PortalServer\tmp\portlet\portletsamples.war_portlet.xml
(The filename, directory name, or volume label syntax is incorrect)

Can someone help me ?

Thanks!
  • 1. Re: Error message for portlet undeploy
    807574 Newbie
    Currently Being Moderated
    Try this:

    pdeploy undeploy -u amAdmin -w ampasswd -g -p amAdmin portletsamples
  • 2. Re: Error message for portlet undeploy
    807574 Newbie
    Currently Being Moderated
    mwzhang :

    Thanks!

    The undeploy is working for me now, but I got warning message
    when I deploy the portlet.

    I use pdeploy deploy command to deploy the portlet, but I got the following error message.

    C:\Sun\PortalServer\bin>pdeploy deploy -u amadmin -w admpasswd -g -p admpasswd -v portletsamples.war

    [DEBUG] Getting Jar File from war...
    [DEBUG] Getting Portlet DD as Stream...
    [DEBUG] Creating DPProviders...
    user attributes existed
    userAttrDescMap={en-US=Preferred TimeZone}
    userAttrDescMap={en-US=Preferred Locale}
    user attributes existed
    userAttrDescMap={en-US=Preferred TimeZone}
    userAttrDescMap={en-US=Preferred Locale}
    user attributes existed
    userAttrDescMap={en-US=Preferred TimeZone}
    userAttrDescMap={en-US=Preferred Locale}
    user attributes existed
    userAttrDescMap={en-US=Preferred TimeZone}
    userAttrDescMap={en-US=Preferred Locale}
    [DEBUG] Updating the Portlet Application...
    [DEBUG] Adding Providers to DP...
    [DEBUG] Adding provider: provider=__Portlet__portletsamples.JSPPortlet
    [DEBUG] Creating DPProvider...
    [DEBUG] Checking for duplicate name: name=__Portlet__portletsamples.JSPPortlet
    WARNING: Duplicate name found for Provider __Portlet__portletsamples.JSPPortlet.
    Skipping the update.
    [DEBUG] Adding provider: provider=__Portlet__portletsamples.NotepadPortlet
    [DEBUG] Creating DPProvider...
    [DEBUG] Checking for duplicate name: name=__Portlet__portletsamples.NotepadPortl
    et
    WARNING: Duplicate name found for Provider __Portlet__portletsamples.NotepadPort
    let. Skipping the update.
    [DEBUG] Adding provider: provider=__Portlet__portletsamples.BookmarkPortlet
    [DEBUG] Creating DPProvider...
    [DEBUG] Checking for duplicate name: name=__Portlet__portletsamples.BookmarkPort
    let
    WARNING: Duplicate name found for Provider __Portlet__portletsamples.BookmarkPor
    tlet. Skipping the update.
    [DEBUG] Adding provider: provider=__Portlet__portletsamples.WeatherPortlet
    [DEBUG] Creating DPProvider...
    [DEBUG] Checking for duplicate name: name=__Portlet__portletsamples.WeatherPortl
    et
    WARNING: Duplicate name found for Provider __Portlet__portletsamples.WeatherPort
    let. Skipping the update.
    [DEBUG] Validating modified DP doc...
    [DEBUG] Storing the DP...
    Done Updating Display Profile!
    Deploying to IWS

    What I need to check for duplication ?

    Can you help me ?

    Thanks!
  • 3. Re: Error message for portlet undeploy
    807574 Newbie
    Currently Being Moderated
    You dont have to check for duplication, basically the deploy portlet skips the display profile update if it already finds the portlet providers there.
    Hence it will give a warning, provider present, hence skipping the display profile update.

    The portlet should work fine.