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

    Details

      Description

      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 / jonas@ow2.org ]

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 12 weeks, 2 days ago

                Packages

                Version Package
                6.1.1 CE GA2