Install Maximo 7.6.1 on Ubuntu, Websphere Liberty, and Oracle Express database

Install Maximo 7.6.1 on Ubuntu, Websphere Liberty, and Oracle Express database

I am starting with an objective to create a relatively faster and lightweight development VM for Maximo 7.6.1. To cut down on the size and hopefully gain bit more speed, I am going to use the following components:
Operating System Ubuntu 16.04.5 LTS (64-bit)
Database Oracle 11g Express Edition
Application Server Websphere Liberty
Virtual Machine Monitor VirtualBox

Another advantage of using the above components is they are available for free. No license required!

The download size for Oracle 11g Express edition is 301 MB in comparison to 2.5 GB for Enterprise edition. Similarly, Websphere download size is 7.2 GB, whereas Liberty is only 80 MB.

The installation will have only stages:

  1. Install Ubuntu on VirtualBox VM
  2. Install Maximo
  3. Install Oracle Database Express Edition (XE)
  4. Create MAXIMO database user
  5. Initialize Maximo Database
  6. Build Maximo deployment files
  7. Install WAS Liberty profile
  8. Deploy on Liberty
  9. Run Maximo

1- Install Ubuntu on VirtualBox VM

1.1- Download Ubuntu

As per Maximo compatibility matrix, only Ubuntu version supported is 16.04 LTS 64-bit. The required version can be download from here:

The file I downloaded is ubuntu-16.04.5-desktop-amd64.iso

1.2- Create Virtual Machine
  • Create a virtual machine in VirtualBox with the following settings:
RAM 4 - 16 GB (It depends on your hardware, I gave it 16 GB)
Processor 1 - 4 (Again depends on your hardware)
Hard Drive size 25 GB or more (select 'dynamically allocated' so that it doesn't take space unless required)
  • Choose downloaded Ubuntu ISO image into the Optical Drive:
  • Start the VM and follow along to install Ubuntu:

Click ‘Install Ubuntu’ and select ‘Erase disk and install Ubuntu’ on the next screen. Moreover, I deselected the option to ‘Download updates while installing’.

Just a few clicks and Ubuntu is ready.

  • Install Guest Additions and restart the machine.
  • Turn on clipboard between host and guest.
1.3- Create shared folder between host and guest
  • Create shared folder using VirtualBox machine settings. Make it permanent and auto-mount.
  • Restart the machine.
  • Grant access to the shared folder running this command on terminal
$ sudo usermod -aG vboxsf userName
The shared folder should show up in /media directory with sf prefix.
1.4- Enable root login in Ubuntu
First, create the password for root user and then enable the option on the login screen to enter any username.
$ sudo passwd root
$ sudo sh -c 'echo "greeter-show-manual-login=true" >> /etc/lightdm/lightdm.conf'

2- Install Maximo

2.1- Download Media

Find out the required media files from this link:

I have downloaded the product only which is MAM_7.6.1_LINUX64.tar.gz (also referred as CNU8YML.tar.gz)

Platform Component Required Files
Linux 64 Maximo Asset Management 7.6.1 (product only) CNU8YML.tar.gz
2.2- Downgrade Firefox to version 42
Maximo Launchpad uses a GUI technology, called XUL, which was last supported by Firefox version 42. Here are a couple of links which talk more about the issue: Following are the steps to downgrade Firefox to version 42: The file I have got is firefox-mozilla-build_42.0-0ubuntu1_amd64.deb
  • Find the installed version(s) of Firefox
$ sudo apt list --installed | grep -i firefox
  • I have found two versions installed on my machine. Let’s remove both of them:
$ sudo apt-get remove firefox-mozilla-build
$ sudo apt-get remove firefox-locale-en
  • Install the downloaded Firefox
$ sudo dpkg -i firefox-mozilla-build_42.0-0ubuntu1_amd64.deb
2.3- Start Maximo Launchpad
  • Log in as root user
  • Extract the downloaded Maximo media file,
  • Change directory to the extracted folder and start Launchpad
# ./
  • Deselect DB2 and Webphere
Complete the installation process and close the configuration tool window which appears afterward.

3- Install Oracle Database Express Edition

Download Oracle Express edition from here:

The file I downloaded is

For installation, follow the instruction here:

I went with all default options except for following I choose port 8880.

Specify the HTTP port that will be used for Oracle Application Express [8080]: 8880

4- Create MAXIMO Database user

Make sure the database service is started

$ sudo service oracle-xe start
Login to database as sysdba
$ sqlplus sys as sysdba

Alter Oracle initialization parameters

sql> alter system set CURSOR_SHARING=FORCE;
sql> alter system set NLS_LENGTH_SEMANTICS=CHAR;
sql> alter system set OPEN_CURSORS=1000;

Create MAXIMO user if haven’t done already

sql> create user maximo identified by maximo;

Grant required privileges to MAXIMO user

sql> grant connect, resource to maximo;
sql> grant create job to maximo;
sql> grant create trigger to maximo;
sql> grant create session to maximo;
sql> grant create sequence to maximo;
sql> grant create synonym to maximo;
sql> grant create table to maximo;
sql> grant create view to maximo;
sql> grant create procedure to maximo;
sql> grant alter session to maximo;
sql> grant execute on ctxsys.ctx_ddl to maximo;
sql> grant execute on DBMS_XA to maximo;
sql> grant select_catalog_role to maximo;

Create Tablespaces – MAXDATA and MAXINDEX

        DATAFILE 'max_data_perm_01.dat'  
        DATAFILE 'max_index_perm_01.dat'  

Allow MAXIMO to use newly created Tablespaces

sql> alter user maximo default tablespace MAXDATA temporary tablespace temp;
sql> alter user maximo quota unlimited on maxdata;
sql> alter user maximo quota unlimited on maxindex;

In case, we need to resize the tablespace beyond the maximum size in future, it can be done using the following command:

alter database datafile 'max_data_perm_01.dat' autoextend on next 50M MAXSIZE 2G;

5- Initialize Maximo Database

First, I have to change file so that Maximo tools can connect to the database.

Let’s copy the original file to the properties folder.

$ cd /opt/IBM/SMP/maximo/applications/maximo/properties/
$ sudo cp /opt/IBM/SMP/maximo/applications/maximo/properties/

Edit the connection string in file at /opt/IBM/SMP/maximo/applications/maximo/properties/ to include database connection properties. Only need to change mxe.db.url, rest should already have correct values.


Run MAXINST tool. It will create all the tables, data and other objects in the database (will take a while).

$ cd /opt/IBM/SMP/maximo/tools/maximo
$ sudo ./ -sMAXINDEX -tMAXDATA -imaximo

Above command will create an empty database. If we also need to include demo/training data, then run the following instead:

$ cd /opt/IBM/SMP/maximo/tools/maximo/en
$ sudo unzip
$ cd /opt/IBM/SMP/maximo/tools/maximo/
$ sudo ./ -sMAXINDEX -tMAXDATA

6- Build Maximo deployment files

Maximo 7.6.1 comes with new tools for building Maximo for liberty. Maximo is built into 7 application bundles which are deployed as separate servers on Liberty (except maximo-ui and maximo-x which are deployed together).

More details about Maximo application bundles for Liberty can be found here.

Following are the commands for building mandatory Maximo bundles (see the fixes below before running this).

$ cd /opt/IBM/SMP/maximo/deployment/was-liberty-default
$ su
# ./
# ./
# ./

DOS line endings error:

While running the ./ I got the following error:

bash: ./ /bin/sh^M: bad interpreter: No such file or directory

This error is due to Windows/DOS file endings on Linux.

To fix it, open the script with vi or vim and enter in vi command mode (key Esc) and type this:

:set fileformat=unix

Then save it

:x! or :wq!

Open file in vi/vim again, see if there are any ^M characters appearing. If found, remove ^M characters manually and save.

XMLChar class not found error:

Build works fine without this fix but Maximo is not able to start complaining about missing XMLChar class. To fix it, comment out the following line in buildmaximoui.war.xml and buildmaximocron-war.xml

<!--<exclude name="xercesImpl-2.7.1.jar"/> -->

Missing tools.jar:

Build command shows a warning that tools.jar is missing. To fix it, run the following:

$ su
# cd /opt/IBM/SMP/maximo/tools/java
# mkdir lib
# cd /opt/IBM/SMP/maximo/applications/maximo/lib
# cp tools.jar /opt/IBM/SMP/maximo/tools/java/lib/

Run the build commands given above after applying the fixes.

7- Install WAS Liberty profile

This is pretty straight-forward: just download from the link and unzip :

The file I got is

8- Deploy on Liberty

Change to the directory where Liberty is extracted and run this command to create server

$ bin/server create maximo-ui-server
$ bin/server create maximo-cron-server

Copy Maximo war files to liberty server folder:

  • Copy the contents of /opt/IBM/SMP/maximo/deployment/was-liberty-default/deployment/maximo-ui/maximo-ui-server over to /home/syed/wlp/usr/servers/maximo-ui-server
  • Copy the contents of /opt/IBM/SMP/maximo/deployment/was-liberty-default/deployment/maximo-cron/maximo-cron-server over to /home/syed/wlp/usr/servers/maximo-cron-server

Following is to install the dependencies for the two bundles:

$ bin/installUtility install maximo-ui-server
$ bin/installUtility install maximo-cron-server

9- Run Maximo

Start the liberty server

$ bin/server start maximo-ui-server
$ bin/server start maximo-cron-server

Finally, Maximo is up and running!

The total size of VM is about 18 GB.

18 Replies to “Install Maximo 7.6.1 on Ubuntu, Websphere Liberty, and Oracle Express database”

  1. I get a 500 error when trying to logon
    Using wlp-webProfile8-

    This where the problem starts in the console log file

    [ERROR ] SRVE0271E: Uncaught init() exception created by servlet [MAXIMOStartupServlet] in application [maximoui]: java.lang.NoClassDefFoundError: org/apache/xerces/util/XMLChar
    at com.hp.hpl.jena.rdf.model.impl.Util.notNameChar(
    at com.hp.hpl.jena.rdf.model.impl.Util.splitNamespace(
    at com.hp.hpl.jena.graph.Node_URI.getLocalName(
    at com.hp.hpl.jena.rdf.model.impl.ResourceImpl.getLocalName(
    at com.hp.hpl.jena.rdf.model.impl.PropertyImpl.checkLocalName(
    at com.hp.hpl.jena.rdf.model.impl.PropertyImpl.(
    at psdi.mbo.AbstractMaximoMTEnabledCache.getCache(
    at psdi.mbo.AbstractMaximoMTEnabledCache.init(
    at psdi.iface.mic.MicService.init(
    at psdi.iface.mic.EntMicService.init(
    at psdi.server.ServiceCoordinator.init(
    at psdi.server.MXServer.init(
    at psdi.server.MXServer.start(
    at psdi.servlet.MAXIMOStartupServlet.init(
    at [internal classes]

    1. It seems that the issue is with XMLChar class not being found. I have already addressed this in the post.
      See section ‘XMLChar class not found error’.

  2. Hi Umar,

    In step 2.3 I faced problem with IBM jre heap size. The error message as below:

    JVMDUMP010I System dump written to /tmp/IBM_LaunchPad_3447/core.20191018.102708.3655.0001.dmp
    JVMDUMP032I JVM requested Heap dump using ‘/tmp/IBM_LaunchPad_3447/’ in response to an event
    JVMDUMP010I Heap dump written to /tmp/IBM_LaunchPad_3447/
    JVMDUMP032I JVM requested Java dump using ‘/tmp/IBM_LaunchPad_3447/javacore.20191018.102708.3655.0003.txt’ in response to an event
    JVMDUMP010I Java dump written to /tmp/IBM_LaunchPad_3447/javacore.20191018.102708.3655.0003.txt
    JVMDUMP032I JVM requested Snap dump using ‘/tmp/IBM_LaunchPad_3447/Snap.20191018.102708.3655.0004.trc’ in response to an event
    JVMDUMP010I Snap dump written to /tmp/IBM_LaunchPad_3447/Snap.20191018.102708.3655.0004.trc
    JVMDUMP013I Processed dump event “systhrow”, detail “java/lang/OutOfMemoryError”.
    Exception in thread “Thread-17” java.lang.OutOfMemoryError: Java heap space
    at java.lang.StringBuffer.ensureCapacityImpl(
    at java.lang.StringBuffer.append(
    at$ Source)

    Could you please suggest how to increase heap size for IBM jre in this case? As I know, installer copied jre from installer directory:

  3. Hi,

    I had got problem with above IBM JRE heap size due to I used Maximo 7.6.0 installation file (MAM_7.6.0.0_LINUX64). Just change to 7.6.1 as documentation and it works!

    Thank you Umar for your very good documentation! Appreciate!

    Phan Thanh

      1. Yes I am using VirtualBox 6.0. But its giving error as
        Failed to open a session for the virtual machine Ubuntu.


        VT-x is not available (VERR_VMX_NO_VMX).

        Result Code: E_FAIL (0x80004005)
        Component: ConsoleWrap
        Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}

        I ahve tried many things to turn of Hyper-v , enable bios virtulization etc no luck.

        1. This can happen if you turn on Hyper-V, WSL or Sandbox feature on Windows. VirtualBox doesn’t work if any of these are turned on.

          I also have struggled in past with turning them off completely. When turned off, there are some residual settings which interface with VirtualBox.

          This is what I have in my notes from that time, hope it can help.

          – Turn off windows features: WSL and Virtual Machine Platform
          – run: bcdedit /set hypervisorlaunchtype off

  4. hi Umar, thank you for this helpful article, I did it till the end but when I go to localhos:9080/maximo/ui I have this message context Root not found, I appreciate your help

Leave a Reply

Your email address will not be published.