Why make donate

Installation guide

Web container

To install the application, you just need to deploy the war archive in a web container like Tomcat

By default, a H2 database is created in the /tmp directory. To modify this behaviour, you only need to create the /etc/pollen.properties file ( you can put it into the directory from which you launch the application or your home directory) and to fill it with the following properties :

# database configuration
hibernate.show_sql=false
hibernate.dialect=org.hibernate.dialect.H2Dialect
hibernate.connection.username=username
hibernate.connection.password=password
hibernate.connection.driver_class=org.h2.Driver
hibernate.connection.url=jdbc:h2:file://tmp/pollen/pollen

# transfered pictures directory
upImgDir=/tmp/pollen/uploadedImages

# maximal size of transfered pictures (in bytes)
upload.filesize-max=1048576
upload.requestsize-max=10485760

# automatic email sending configuration
email_host=smtp.free.fr
email_port=25
email_from=bot@pollen.org

# syndication flux directory (Atom)
feedDir=/tmp/pollen/feeds

# site adresse (used for reminder emails)
siteUrl=http://www.site.org/pollen/

For example, for a PostgreSQL database, we will have :

hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.driver_class=org.postgresql.Driver
hibernate.default_schema=public

It may be necessary to redeploy the application after having modified this file;

A user with administration rights is automatically added (login "admin", password "pollen"). For safety measures, it is really important to delete this user (or modify its password) after having created another administrator account.

Embedded container

Since pollen-1.1.1, the war bundle embed a servlet container based on winstone. To run it, just launch with following command :

java -jar pollen-x.x.x.war


Then open a browser to address : http://localhost:8080/.

You can also use command line option to configure launch : http://winstone.sourceforge.net/#commandLine