Skip to main content

Apache Roller Getting Started

If you are thinking to setup a blog website then apache roller is the quickest and simplest thing to do so, below are steps for getting started, though these instructions are present in documentation provided by apache, but hopefully following steps will make it very easy for you.

Here you Go !!

1. Download apache roller

2. Install Tomcat

3. Download mysql

4. Unzip apache roller zip file and copy roller-5.0.1-tomcat.war from
\\roller-weblogger-5.0.1-tomcat\webapp to tomcat webapps folder

5. Create mysql database, dont worry about schema, that will be automatically created later.

mysql -u root -p
password: *****

mysql> create database rollerdb;
mysql> grant all on rollerdb.* to scott@'%' identified by 'tiger';
mysql> grant all on rollerdb.* to scott@localhost identified by 'tiger';

Otherwise you will get following error on webpage:

[com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'rollerdb'

6. Create a file in tomcat lib folder, here is default content:


If you dont add this file then you will get following error on startup:

Roller Weblogger: No customer properties found in classpath

7. Please download and copy jars for mail api and mysql jdbc drivers to lib directory of tomcat


I came across following error and copying mail.jar to lib directory fixed it.

SEVERE: Error listenerStart
Jan 28, 2013 11:03:29 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/roller-5.0.1-tomcat] startup failed due to previous errors
Jan 28, 2013 11:03:29 AM org.apache.catalina.loader.WebappClassLoader clearRefer
SEVERE: The web application [/roller-5.0.1-tomcat] appears to have started a thr
ead named [Abandoned connection cleanup thread] but has failed to stop it. This
is very likely to create a memory leak.

8. Start tomcat and open following url


9. If you have followed all the steps, you should see following screen:

10. Click on "Yes - create tables now", once the tables are created you will see following confirmation message.

Database tables were created successfully as you can see below.
Database tables are present and up-to-date. Click here to complete the installation process and start using Roller.

Click on "Here"

11. You should now see welcome message

"Welcome to Roller"

12. Follow on screen steps to create a user and blog.

Hopefully you will find it very simple to setup and have fun setting up your blog site in few minutes.


Popular posts from this blog

Drools - An overview

For Java based applications the most challenging part has always been the business logic maintenance, and pick any applications which you find complex and if we ask ourself how complex it would be moving forward, the answer will always be nX times.

What do we do ? Drools comes for Rescue as a Rule Engine.

Drools provides mechanism:

a. To write business logic in simple english language
b. Easy to maintain and very simple to extend
c. Reusability of logic by defining keywords in a DSL file and using them in DSLR file.

But be careful nothing comes free, everything takes cost in terms of memory and time space.

Use Drools if you really have :

a. Business logic which you think is getting cluttered with multiple if conditions because of variety of scenarios
b. You will have growing demand of increase in the complexity
c. The business logic changes would be frequent (1 - 2 times a year would also be frequent)
d. Your server's have enough of memory as it is a memory hungary tool, it provi…

Java 8 streams performance on mathematical calculations

Java 8 Streams API supports many parallel operations to process the data, it abstracts low level multithreading logic. To test performance did following simple test to calculate factorial of first X number starting with N.

Following program calculates factorial of first 1000 numbers.

package; import java.math.BigInteger; import java.time.Duration; import java.time.Instant; import java.util.ArrayList; import java.util.List; publicclassMathCalculation { publicstaticvoid main(String[] args) { List<Runnable> runnables = generateRunnables(1, 1000); Instant start=; // Comment one of the lines below to test parallel or sequential streams runnables.parallelStream().forEach(r ->; // ->; Instant end =; System.out.println("Calculated in "+ Duration.between(start, end)); } privatestaticvoid factorial(int number) { int i; BigInteger fact = BigInteger.valueOf(1); for (i =1; i <= numb…

MQTT : Android step by step guide using Eclipse Paho

For MQTT integration, recently explored Paho Android project, very simple to use, here are the steps:

Intialize a client, set required options and connect.

    MqttAndroidClient mqttClient = new MqttAndroidClient(BaseApplication.getAppContext(), broker, MQTT_CLIENT_ID);
    //Set call back class
    mqttClient.setCallback(new MqttCallbackHandler(BaseApplication.getAppContext()));
    MqttConnectOptions connOpts = new MqttConnectOptions();
    IMqttToken token = mqttClient.connect(connOpts);

Subscribe to a topic.

    token.setActionCallback(new IMqttActionListener() {
      public void onSuccess(IMqttToken arg0) {
           mqttClient.subscribe("TOPIC_NAME" + userId, 2, null, new IMqttActionListener() {
                public void onSuccess(IMqttToken asyncActionToken) {
                    Log.d(LOG_TAG, "Successfully subscribed to topic.");

                public void onFailure…