Resolution: Won't Fix
Affects Version/s: 6.1.1 CE GA2
Fix Version/s: 6.1.1 CE GA2
Environment:Liferay 6.1.1 CE GA2 bundled with JOnAS 5.2.3, CentOS 2.6.32-358.6.2.el6.x86_64
When I try to use bundle with JOnAS, JOnAS app server fails to start.
Steps to reproduce:
1) Download Liferay 6.1 CE GA2 Bundled with JOnAS + Tomcat and unpack downloaded archive.
2) Navigate to liferay-portal-6.1.1-ce-ga2/jonas-5.2.3/ .
3) Add execution rights to starting file: chmod +x bin/jonas
4) Start Jonas: ./bin/jonas start
5) It fails to start properly and following sequence is shown:
JONAS_ROOT is set to /home/janhaj/liferay-portal-6.1.1-ce-ga2/jonas-5.2.3
: command not found/jonas-5.2.3/bin/setenv: line 126:
: command not found/jonas-5.2.3/bin/setenv: line 127:
: command not found/jonas-5.2.3/bin/setenv: line 129:
': not a valid identifier-5.2.3/bin/setenv: line 130: export: `JAVA_OPTS
: command not found/jonas-5.2.3/bin/setenv: line 131:
JONAS_BASE is set to /home/janhaj/liferay-portal-6.1.1-ce-ga2/jonas-5.2.3
'nrecognized VM option 'MaxPermSize=256m
Could not create the Java virtual machine.
I figured out that it's possible to start JOnAS correctly, but it's required to slightly edit JONAS-HOME/bin/setenv file and move -Xmx and -XX:MaxPermSize parameters to the beginning of JAVA_OPTS settings.
Issues are 1) leading /t white spaces and 2) wrong sequence for java startup properties
I created patch, it's included as attachment.
Download patch file to your JONAS-HOME directory and run:
patch -p0 -i patch.file
After patch applies you can start Jonas again: ./bin/jonas start
Now JOnAS starts correctly and Liferay is deployed.