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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • TBD EAP 5
    • EAP 5.0.0.CR5
    • Scripts and Commands
    • None
    • HPUX

    • Release Notes
    • Hide
      CAUSE

      CONSEQUENCE

      FIX

      RESULT
      Show
      CAUSE CONSEQUENCE FIX RESULT
    • Not Required

      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

              rhn-support-jawilson Jimmy Wilson
              rachmato@redhat.com Richard Achmatowicz
              Eva Kopalova Eva Kopalova (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: