Error initializing Velocity while setting up Polopoly CMS front server

Polopoly CMS uses velocity templating engine in its front server. Velocity templating engine is very flexible for rendering HTML and Java variables.

While setting up Polopoly CMS it was not able to initialize the velocity templating engine. As the velocity templating engine was not initialize the entire front app was not working. Following is the error it was showing:

Problem:

SEVERE [localhost-startStop-1] 
com.polopoly.cm.servlet.velocity.VelocityServletContextListener.contextInitialized Error initializing Velocity.
 com.polopoly.pear.impl.ApplicationException: An Application could not be found.

Solution:
Velocity templating engine caches most of it's content and files. It expects few directories on the file-system to store those caches. In the above case it was looking for the following two directories to be present:


/var/spool/atex/data/caches/front/content
/var/spool/atex/data/caches/front/files

Once those directories were created the velocity initialization was good and the front server was up and running.

Comments