•  
Main
About Hippo Portal
Documentation
Community
Other

Building and deploying the portal

If everything is in place, written and configured, both the portal and the portal application are to be built and deployed.

Building and deploying the Portal

First we build and deploy the portal. From the root folder of the project, execute the following commands:

  maven hp:build-portal
  maven hp:init-portal-db
  maven hp:deploy-portal

build-portal will create the web application archive (.war), that is your portal, in the target folder. The .war is to be deployed on a webserver.
init-portal-db will connect to the database, create the tables and fill them with initial data. While developing your portal, this step does not have to be repeated every time.
deploy-portal will deploy on the configured webserver:
- the web application archive that is your portal, including configuration files.
- the separate web application that takes care of communication with the repository, hippo-portal.war.

Building and deploying the portlet application

From the root folder of portlet application project, execute the following command:

maven clean war

This step will create in the target directory a clean web application archive (.war) containing your portlets. To make the portal application deploy this portlet application, copy this war file to the /WEB-INF/deploy directory of the already deployed portal in the webserver, for example:

c:/tomcat/webapps/<yourportal>/WEB-INF/deploy

Every portlet application running on Hippo Portal has to be deployed via this deploy folder. Hippo Portal needs to register every portlet application internally, in order to invoke portlets.

Starting the portal

Before starting the portal, make sure you have the repository running, for instance at http://localhost:60000/default . See also required components .

Now startup your webserver. When using Tomcat, this is done with the following command:

<tomcat-home>/bin

and execute:

startup

After startup of tomcat, the portal will deploy the portlet appliction. The following messages shouild be seen:

INFO: Server startup in XXX ms
JetspeedContainerServlet: initialization done for Portlet Application at: <portlet application>
        

Go to http://localhost:8080/<portal-namespace> in your browser to view the result.