thrullcom

Running Liferay Portal 5.2 on SpringSource tc Server

Running Liferay Portal 5.2 on SpringSource tc Server

1. Download tc Server (eg. free developer edition) from SpringSource

2. Unzip/Untar archive in Your desired location

3. Create tc server instance by running:


Windows:
tcruntime-instance.bat -c -s liferay
Unix/Linux:
tcruntime-instance.sh -c -s liferay

4. On Windows open liferay/conf/wrapper.conf and comment out line (change the limit of java stack):

#wrapper.java.additional.9=-Xss192k

On Linux/Unix open liferay/bin/setenv.sh and remove -Xss192k from GENERAL_JVM_OPTS variable:

# JVM memory settings - general GENERAL_JVM_OPTS="-Xmx512m -Xss192k"
and add (Windows) some heap size and perm space otherwise liferay will crash...
wrapper.java.additional.8=-Xmx1024m wrapper.java.additional.9=-XX:MaxPermSize=512m or (Unix/Linux) GENERAL_JVM_OPTS="-Xmx1024m -XX:MaxPermSize=512m"

5. Without configuration modifications You will see such errors:

INFO | jvm 1 | 2010/05/17 10:48:59 | 10:48:59,002 ERROR [PortalBeanLocatorUtil:42] BeanLocator is null INFO | jvm 1 | 2010/05/17 10:48:59 | 10:48:59,017 ERROR [PortalBeanLocatorUtil:42] BeanLocator is null INFO | jvm 1 | 2010/05/17 10:48:59 | 10:48:59,017 ERROR [PortalBeanLocatorUtil:42] BeanLocator is null INFO | jvm 1 | 2010/05/17 10:48:59 | 10:48:59,314 ERROR [PortalBeanLocatorUtil:42] BeanLocator is null INFO | jvm 1 | 2010/05/17 10:48:59 | 10:48:59,314 ERROR [PortalBeanLocatorUtil:42] BeanLocator is null INFO | jvm 1 | 2010/05/17 10:48:59 | 10:48:59,314 ERROR [PortalBeanLocatorUtil:42] BeanLocator is null INFO | jvm 1 | 2010/05/17 10:48:59 | 10:48:59,330 ERROR [PortalBeanLocatorUtil:42] BeanLocator is null INFO | jvm 1 | 2010/05/17 10:48:59 | 10:48:59,330 ERROR [PortalBeanLocatorUtil:42] BeanLocator is null INFO | jvm 1 | 2010/05/17 10:48:59 | 10:48:59,330 ERROR [PortalBeanLocatorUtil:42] BeanLocator is null INFO | jvm 1 | 2010/05/17 10:48:59 | 10:48:59,345 ERROR [PortalBeanLocatorUtil:42] BeanLocator is null INFO | jvm 1 | 2010/05/17 10:48:59 | 10:48:59,345 ERROR [PortalBeanLocatorUtil:42] BeanLocator is null

6. Now You can deploy liferay into liferay/webapps and run the instance by using this command:


Windows:
tcruntime-ctl.bat liferay run
Unix/Linux:
tcruntime-ctl.sh liferay run

7. Thanks SpringSource for affordable supported application server.