Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-37247

Bug in start sequence for Liferay bundled with JOnAS



      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:

      OW2 JOnAS 5.2.3 [ http://jonas.ow2.org / [email protected] ]

      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.




            miguel.pastor Miguel Ángel Pastor Olivar (Inactive)
            jan.profiq Jan Hájovský (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            0 Vote for this issue
            0 Start watching this issue


              9 years, 18 weeks, 6 days ago


                Version Package
                6.1.1 CE GA2