Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-3036

jboss_init_hpux script start feature generates unexpected error

    XMLWordPrintable

    Details

    • Affects:
      Release Notes
    • Release Notes Text:
      Hide
      CAUSE

      CONSEQUENCE

      FIX

      RESULT
      Show
      CAUSE CONSEQUENCE FIX RESULT
    • Release Notes Docs Status:
      Not Required

      Description

      The script jboss_init_hpux makes it possible to start a matrix of EAP instances at system startup, or at any other time. Similar features apply to shutting down the instances.

      The base command is in /sbin/init.d/jboss and can take the following paranmeters:

      • start - start a set of EAP instances
      • stop - stop the set of EAP instances
      • restart - stop and then start the set of EAP instances
        The set of instances is configured in the file /etc/rc.config.d/jboss.

      After folowing the configuration steps in the documentation contained in the jboss_init_hpux.sh file, I get the following error:
      -bash-3.1# /sbin/init.d/jboss start
      ERROR: The user "rachmatowicz" does not have $JAVA_HOME defined; either define $JAVA_HOME for this user or ensure that a path to "java" exists.
      ERROR: The user "rachmatowicz" does not have $JAVA_HOME defined; either define $JAVA_HOME for this user or ensure that a path to "java" exists.

      This is despite the fact that in my .bash_profile file, I have the following lines:
      echo Calling .bash_profile
      export JAVA_HOME=/qa/tools/opt/hpux_pa/java6

      and I can confirm that the environment variable is set when creating a subshell:
      -bash-3.1$ sh echoJAVAHOME.sh
      JAVA_HOME = /qa/tools/opt/hpux_pa/java6

      The configuration I am using looks as follows:
      -bash-3.1$ more /etc/rc.config.d/jboss
      JBOSS_HOME[0]=/tmp/fred/jboss-eap-5.0/jboss-as
      JBOSS_USER[0]=rachmatowicz
      SERVER_NAME[0]=default
      JBOSS_START[0]=1
      JBOSS_CONSOLE[0]=/tmp/jboss2.log
      JBOSS_BIND_ADDR[0]=10.16.94.188
      JBOSS_HOME[1]=/tmp/fred/jboss-eap-5.0/jboss-as
      JBOSS_USER[1]=rachmatowicz
      SERVER_NAME[1]=all
      JBOSS_START[1]=1
      JBOSS_CONSOLE[1]=/tmp/jboss1.log
      JBOSS_BIND_ADDR[1]=10.16.94.189

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jiwils Jimmy Wilson
                  Reporter:
                  rachmato Richard Achmatowicz
                  Writer:
                  Eva Kopalova
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: