
Deploy the Sample Portlets
This tutorial describes how to deploy a portlet into the Viewpoint Development Portal.
- Open a command prompt window.
- Navigate to the top-level directory of the portlet you want to deploy (the directory containing the build.xml file for the portlet).
- Run the following command: ant deploy
Here is an example, assuming the Widgetopia sample portlet is located at C:\tdpdk-xx.xx.xx.xx\src\Widgetopia:
C: cd \tdpdk-xx.xx.xx.xx\src\Widgetopia ant deploy
The ant deploy progress is displayed in the Tomcat window. When the portlet deployment is complete, your new portlet should be available under the Add Content menu in your Teradata Viewpoint Portal. Note: the CATALINA_HOME environment variable must previously have been set. See Installing the Viewpoint Development Portal for more details.
See Ant Targets for more detail about ant deploy and other useful ant targets.
Note that when the Teradata Viewpoint Portal is installed, the Sample Portlets are deployed by default. That is, on first startup of Teradata Viewpoint, the portlets are present. You can safely deploy on top of an existing portlet using the normal ant deploy target, or undeploy the portlet using ant undeploy.

When I tried to do the c:\ant deploy under the Widetopia directory, i got the following.
C:\Bills_Programs\viewpoint\tdpdk-13.00.00.01\src\ Widgetopia>ant deploy
Buildfile: build.xml
[get] Getting: http://continuum.td.teradata.com/svn/NextGen/ BuildConfig/trunk/bootstrap...
[get] To: C:\Bills_Programs\viewpoint\tdpdk-13.00.00.01\src\ Widgetopia\.bootstrap.build.xml
[get] Error getting http://continuum.td.teradata.com/svn/NextGen/ BuildConfig/trunk/bootstrap... to C:\Bills_Programs\
viewpoint\tdpdk-13.00.00.01\src\Widgetopia\ .bootstrap.build.xml
init:
[mkdir] Created dir: C:\Bills_Programs\viewpoint\tdpdk-13.00.00.01\src\ Widgetopia\.buildconfig
[get] Getting: http://continuum.td.teradata.com/ivyrep-sandbox/ teradata/build-config/2....
[get] To: C:\Bills_Programs\viewpoint\tdpdk-13.00.00.01\src\ Widgetopia\.buildconfig\build-config.zip
[get] Error getting http://continuum.td.teradata.com/ivyrep-sandbox/ teradata/build-config/2.... to C
:\Bills_Programs\viewpoint\tdpdk-13.00.00.01\src\ Widgetopia\.buildconfig\build-config.zip
BUILD FAILED
C:\Bills_Programs\viewpoint\tdpdk-13.00.00.01\src\ Widgetopia\build.xml:10: The following error occurred while executing this line:
C:\Bills_Programs\viewpoint\tdpdk-13.00.00.01\src\ Widgetopia\.bootstrap.build.xml:21: java.net.UnknownHostException: continuum.td.
teradata.com
Total time: 2 seconds
Any ideas as to what I might be missing?
You don't have to deploy Widgetopia to get it on viewpoint. All you have to do is run the portal and it should be there.
I know, but I was trying to follow the above tutorial on how to deploy a portlet, but i get the errors above
@Tuen: check out this forum post: http://www.teradata.com/teradataforum/Topic15269-53- 1.aspx
There's a bug that shows up on some operating systems. Basically, you need to add ignoreerrors="true" to the stanzas on lines 14 and 21 of the ".bootstrap.build.xml" file in your portlet's project directory.
When I try to deploy a self created portlet I always get an error message. I get the same message when I try to redeploy the sample portlets. Can anyone help?
C:\tdpdk-13.00.00.01\MyHello>ant deploy
Buildfile: C:\tdpdk-13.00.00.01\MyHello\build.xml
[get] Getting: http://continuum.td.teradata.com/svn/NextGen/ BuildConfig/trunk/bootstrap...
[get] To: C:\tdpdk-13.00.00.01\MyHello\.bootstrap.build.xml
[get] Not modified - so not downloaded
init:
bootstrap:
clean-help:
tdbuild-base.clean-build:
tdbuild-web-base.clean-build:
[delete] Deleting directory C:\tdpdk-13.00.00.01\MyHello\web\WEB-INF\classes
clean-build:
clean-doc:
clean-dist:
load-ac-tasks:
tdbuild-base.clean-dependencies:
BUILD FAILED
C:\tdpdk-13.00.00.01\MyHello\.buildconfig\buildfiles\ base.build.xml:87: and doesn't support the nested "equals" element.
Total time: 3 seconds
It works now for me ...
Before I had the following configuration: ANT 1.8.0, PostgreSQL 8.4 and PDK 13.00.00.01 now I changed to: ANT 1.7.0, PostgreSQL 8.2 and PDK 13.00.01.01 and it works fine ...