First you need to copy your .war file in a uportal C:\Documents and Settings\jpatel\workspace\uPortal_rel-2-X-X-XXX\trunk\lib\portlets location. After that you have to be in where a .build.properties or build.xml file to run following. (all) option will deploy all portlets in lib/portlets location. If you want to deploy one specific then you need to give full path (e.g. deployPortletApp -DportletApp= C:\Documents and Settings\jpatel\workspace\uPortal_rel-x-x-x-xxx\trunk\lib\portlets\xxxxx.war )
Note: Not sure onuPortal release 3.0 work same way as I rel 2.xxx. I hope this will help. Thank You, Jayesh -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Edward Chen Sent: Thursday, August 21, 2008 12:29 AM To: [email protected] Subject: Re: [uportal-dev] Hello World Portlet deployment problem Hi, Thank you for your quick answer. I did copy directly. How can I do to copy without doing copying Also, when I do following, I have C:\uPortal-3.0.1-quick-start>ant deployPortletApp -DportletApp=all Buildfile: build.xml BUILD FAILED Target `deployPortletApp' does not exist in this project. Thanks, Edward Cris J Holdorph wrote: > Did you run the "ant deployPortletApp" ant target, or did you just > copy the war file into webapps directly? copying directly will not > work. You must run the uPortal tool for deploying the portlet web > applications. > > http://www.ja-sig.org/wiki/display/UPM30/04+Working+with+Portlets+in+uPortal > > > ---- Cris J H > > Edward Chen wrote: >> Hi, >> >> I set up uPortal-3.0.1-quick-start up and running, and I use netbean >> ide 6.1 to create a helloworld portlet. I copy the HelloWorld.war >> C:\uPortal-3.0.1-quick-start\apache-tomcat-5.5.23\webapps >> Then restart uPortal, >> >> I created a new channel to publish this portlet by portlet manager. >> Here is my setting >> >> Review: Please review the settings for accuracy (click workflow icons >> or items in the table below to edit settings) >> User can >> modify? Name Value >> Channel Type: Portlet >> Channel Title: HelloWorld >> Channel Name: HelloWorld >> Channel Functional Name: HelloWorld >> Channel Description: Channel Timeout: >> 5000milliseconds >> Channel Secure: Not Secure >> User cannot modify Portlet Web Application Path >> /HelloWorld >> User cannot modify Portlet Name HelloWorld >> Channel Controls true Editable >> true Has Help >> false Has About >> Selected Categories: categoryNews >> categoryAll categories >> categoryApplications >> categoryEntertainment >> categoryDevelopment >> Selected Groups and/or People: unlockedStudents >> unlockedStaff >> unlockedPAGS Root >> unlockedGuests >> unlockedFaculty >> unlockedEveryone >> >> >> But, after I subscribe it, I have the following error >> Channel ID: >> n85 >> >> Message: >> Message not available >> >> Error type: >> Channel failed to initialize (code 2) >> >> Problem type: >> General rendering problem >> >> Error message >> Content was written to response during loading of portlet window >> 'PortletWindowImpl[portletWindowId=16.n85,contextPath=/HelloWorld,portletNam e=HelloWorld,windowState=normal,portletMode=view,expirationCache=<null>,requ estParameters={}]' >> with [channelPublishId=73, channelSubscribeId=n85, >> portletApplicationId=/HelloWorld, portletName=HelloWorld, >> user=admin]. Response Content: The requested resource >> (/HelloWorld/PlutoInvoker/HelloWorld) is not available >> >> >> What is it wrong? >> >> >> Thanks, >> >> Edward >> > -- You are currently subscribed to [email protected] as: [EMAIL PROTECTED] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-dev -- You are currently subscribed to [email protected] as: [EMAIL PROTECTED] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/uportal-dev
