DBPrism Servlet Engine
DBPrism CMS news
Scroll Up












Scroll Down
Requeriments to install DBPrism / Cocoon CMS 2.1.1

DBPrism CMS 2.1.1 is very straightforward installation because they use Ant and Jetty for all the installation and configuration steps

Here the list of required/tested software

If you are using Oracle Install Client as Oracle Home you have to manually copy xdb.jar into /usr/lib/oracle/11.1.0.1/client/rdbms/jlib for example, by default ojdbc5.jar file do not include support for Oracle XMLType native data types and then oracle/xdb/XMLType.class is missing and required by DBPrism.

Start DBPrism CMS Web Installer

This new release of DBPrism CMS includes a graphical installer based on Jetty web server, Ant and few of Cocoon XSP pages. Why the installer uses XSP?
Because the CMS is not installed yet, so the XSP page works as a wrapper for the Ant's task used for the different installation process. To launch the installer go to the CMS distribution sources and execute Ant in the directory of the demo web site them, use your favorite browser at with this location http://localhost:8888/ldoc/install.xhtml:

cd sites/www.mycompany.com/
ant run

Here a sample screen of the installer form:

Before this step you have to configure some basic things such as the environment variable JAVA_HOME, ORACLE_HOME, and database users used for installing the code (CMS_CODE) and the tables (CMS_DATA). You can see this common parameters at the left side of the Web Installer as is depicted in the following picture. Also you can configure in advance the target database into the common.xml file used by the Front End Application at the post installations steps.

The important parameters at the common.xml file are database, log, user/ pass (only for testing database connectivity), db.[ host| port| sid] and jdbc.string.

You must have to check the basic database connectivity using the SQLPlus or tnsping command line utility to the database defined into the common.xml file, Also a FTP/WebDAV connectivity using defaults ports 2100/8080 and the availability of the DBMS_SMTP package are required.

A fresh database install do not have these ports and packaged enabled, you can configure them executing these commands logged as SYS with the SQLPlus at the server side:

SQL> exec dbms_xdb.setFtpPort(2100);
SQL> exec dbms_xdb.setHttpPort(8080);
SQL> @?/rdbms/admin/utlmail.sql
SQL> @?/rdbms/admin/prvtmail.plb
SQL> alter system set smtp_out_server='smtp.yourdomain.com' scope=both;

You can test the connectivity at the Web Installer too, here a sample output of this option:

If you are running the Web Installer on Windows do not use parameters which includes blank spaces, the XSP Ant launcher do not handle properly the JVM argument passed to Ant and didn't work. Replace the blank spaces by _ and edit them later with the User's preference form at the Front End application.
The limitation of the database character set defined into the above section are not connected with core of the CMS or XMLDB, its due to JTidy library included into this distribution, we can provide a patch ASAP with latest JTidy library which can manage more character sets. JTidy is used at the database side for parsing the Front End wysiwyg editor.
Scott database user is used by the target Test database connectivity, a fresh database install has Scott locked, to activate this account execute alter user scott identified by tiger account unlock;
Database Server Installation - Install Common Libraries (run only once)

This step is required to be executed only once time because it only installs some common components for the DBPrism CMS at the SYS's schema such as the Jxtp toolkit and the common libraries Log4J, JUnit and JAXB.

The installer screen requires some database parameters for this step, they are SYS's user name and password, a valid SQLNet connect string and database host name used to connect by FTP, you can override the common.xml parameters with this values.

Here an example of the Web Installer output after running the Pre-Installation option:

Database Server Installation - Install CMS Core

This is the mainly step of DBPrism CMS 2.1.1 installation. It will create two database users, once is used for storing the CMS code (Java and PLSQL) the other one is used for the CMS Tables and triggers.

The parameters required for this step are the same the previous one, here the output of this option:

Database Server Installation - Add CMS Users.

After the main CMS step is done you have to create a minimum of one CMS user, there is an option at the CMS Installer to create CMS users. For this step you need to provide more parameters than the previous one steps. Here an screen capture of the Add user install form:

The list of the input parameters is depicted in the table below:

Add CMS user parameters
Name   Explanation   Default  
New CMS Long Username   A valid Oracle database user name to be created.   DBPRISM_ADMIN  
New CMS Database Password   A valid Oracle database password to be created.   DBPRISM_ADMIN  
CMS User Editor   A valid CMS user name already created which will be used as CMS Editor.   empty  
CMS User Mail   An email used by the publication work flow to send notifications.   webmaster@dbprism.com.ar  
Deployment Web Application, server and port   A valid path, server and port where the site will be deployed, when the ESI invalidation protocol sent invalidation messages will use these values to create an HTTP Post like this http://server:port/deploy_dir/x-dbprism-cache-invalidate   /192.168.1.100/8888  
ESI Invalidation Username,Password   The ESI invalidation protocol use these values as authentication mechanism for the incoming messages.   dbprisminvalidator/dbprism259  
URL of the Front End   URL of the Front End application which this CMS user will use, for example http://live.demo.dbprism.com.ar/, this value is used as link in the work flow messages.   http://192.168.1.100:8888/ldoc/  
URL of the Public Web Site   URL of the public site for this CMS user, this URL is used to base link in some CMS modules, for example the RSS component.   http://192.168.1.100:8888/  
Remember that on Windows none of the above parameters will have spaces.


Test your Front End.

The installer provides you a link to connect to the CMS an start using it. The link is http://localhost:8888/ldoc/index.xhtml, once you click on it an authorization request will prompt you for the user name and password used on latest install step (Add CMS Users) here, by default the CMS Install script creates two sample pages once for the home in English and once for Spanish. The CMS Front End look like this:

Remember that, previous to start the CMS Installer, the values into the file common.xml need to be edited to the target database used during the install process. If you don't have these values edited the link to the Front End application will not work returning an Access Denied message.


Note that in the above screen capture the menu are localized to English if you change the browser preferences to Spanish as default language this menu and the Front End forms will automatically localized to Spanish. You can find more information about the options and forms at the Front End application section.

Web Server Deployment

Finally this step will create and deploy DBPrism CMS application files. Execute:

ant deploy-app
ant deploy-web

for deploying into an OC4J running according to the parameters of common.xml (Container settings OC4J).

For Tomcat or any other Web Server distributions you can execute:

ant cms-ear

A dbprism or demo ear/war files will be created into deploy/ directory, so you can manually copy these ready to use files to the webapp directory of Tomcat. Before this step check for the values of build.xml, such as project.[web|app], project.base.[web|live] and project.site because they affect prism.xconf, cocoon.xconf, web.xml and other related files.

You can test the above step trying this url: http://server:port/dbprism/status or http://server:port/demo/status

Once the application is deployed into the specific container, you need to put the public and live directories of DBPrism CMS. Public directory means a directory for read only pages. In the other hand Live directory is used by the content authors or webmasters to create/delete/update pages/directories publish the content and so on. Execute this Ant task to create these Web Server resources directories:

cd sites/www.dbprism.com.ar/
ant dbprism-doc-ldoc-app
cd $J2EE_HOME/applications/dbprism/dbprism
unzip $CMS_HOME/deploy/dbprism-doc-app.zip
unzip $CMS_HOME/deploy/dbprism-ldoc-app.zip

or:

cd sites/www.mycompany.com/
ant demo-doc-app
cd $J2EE_HOME/applications/demo/demo
unzip $CMS_HOME/deploy/demo-doc-app.zip

The above steps will create into deploy/ directory files with .zip extension including all the Web Server resources ready to copy into application deployment directory. The unzip steps are examples of OC4J applications server deployment task for the doc|ldoc directories.

Cocoon support sub sitemap extensions, then you only need to deploy one time the war/ear file, the other sub sequent task will be unzip sub directories directly into the deployment directory, for example: applications/dbprism/dbprism directory in case of you are installing DBPrism CMS on an OC4J container.

If the above steps are correctly performed you will get your DBPrism CMS up and running on the urls: http://server:port/[dbprism|demo]/[doc|ldoc] for the public and live areas. Enjoy DBPrism CMS!!!.

Usually DBPrism CMS is deployed using Apache mod_proxy functionality. It means that you will configure mod_proxy using something like this:
<VirtualHost *>
    ServerAdmin webmaster@dbprism.com.ar
    ServerName demo.dbprism.com.ar
    ErrorLog logs/demo.dbprism.com.ar_error_log
    CustomLog logs/demo.dbprism.com.ar_log combined
    <IfModule mod_proxy.c>
      ProxyRequests Off
      ProxyPreserveHost On
      ProxyPass         / http://localhost:8888/demo/doc/
      ProxyPassReverse  / http://localhost:8888/demo/doc/
    </IfModule>
</VirtualHost>
This mod_proxy directive combined with virtual host support will route every request like this http://demo.dbprism.com.ar/ to the webserver deployment site demo and the sub sitemap doc.
This work is licensed under a Creative Commons License . Creative Commons License
(C) 1999-2006 - DBPrism ~ DBPrism CMS | Marcelo F. Ochoa | TANDIL ~ Argentina | 2008-06-25T18:00:51
DBPrism at SourceForgeBuilt with Cocoon2