Personal tools


From OpenLaszlo


Installation of OpenLaszlo 4.2.0 on Centos 5.2 64-bit and IBM WebSphere Community Edition


This gives the installation steps I used, to successfully get OpenLaszlo 4.2.0 up and running on Centos 5.2, 64 bit.

The setup it's running on is a VMware virtual machine, with 1GB ram allocated to it, and a 20GB (virtual) disk.

Centos 5.2 is a brand new installation from CD (mostly using defaults), with latest Centos updates then applied.

Install Java 5

1. Remove the gcj stuff already installed by Centos (just to be careful)

2. Download and install the Java 5 SDK (64 bit rpm version) from the Sun website

3. Create a two line script file /etc/profile.d/ with the environment variables for java:

 $ echo 'export JAVA_HOME=/usr/java/jdk1.5.0_17' >> /etc/profile.d/
 $ echo 'export PATH=$PATH:$JAVA_HOME/bin' >> /etc/profile.d/

4. Make it executable

 $ sudo chmod 755 /etc/profile.d/

Install WebSphere Community Edition

1. Download the WASCE installer from the IBM website:

2. Run the installer

 $ chmod 755 wasce_setup-
 $ sudo ./wasce_setup-

It's installed by default in:


3. Increase the maximum java heap size to 512 MB, as the OpenLaszlo deployement fails if this isn't done (on 64 bit Centos, unsure about 32 bit)

  $ echo 'export JAVA_OPTS=-Xmx512m' >> /opt/IBM/WebSphere/AppServerCommunityEdition/bin/

4. Start WASCE

  $ sudo /opt/IBM/WebSphere/AppServerCommunityEdition/bin/

5. Verify it's working. Use a browser to bring up the Administrative Console:


This should display the login screen. Log in. The default username is "system", default password is "manager".

6. Change the default administrative password:

  Security -> Users and Groups -> Console Realm Users -> on the line with 'system' choose 'Edit' -> set new password -> Update

Deploy OpenLaszlo

1. Download OpenLaszlo 4.2.0, Servlet version:

2. From the WASCE web console:

  Applications -> Deploy New
    Archive: Browse to the OpenLaszlo WAR file on your local PC
    Plan: Leave blank
    Start app after install: Enabled
    Redeploy application: Disabled

Click Install. It will then take a while to do the deployment, after which a (non-obvious) message is displayed above the fields you just filled out:

    The application was successfully deployed.
    The application was successfully started

3. Verify that it's functional, by browsing to:


That URL specifies to use DHTML for the test, as it should work for everyone, even those without flash installed in their browser.

The installed path

The deployed OpenLaszlo application is under a path like:

 /opt/IBM/WebSphere/AppServerCommunityEdition/repository/default/openlaszlo-4.2.0-servlet/<instance number>/openlaszlo-4.2.0-servlet-<instance number>.war/my-apps/

For me, in my example, it was:


Editing files directly in there will technically work, but it's probably not the best idea. Running server side commands will likely blow that whole area away (i.e. redeploying the application)