Uploaded image for project: 'JBoss Enterprise SOA Platform'
  1. JBoss Enterprise SOA Platform
  2. SOA-227

Need to add -D java.awt.headless=true to jboss-soa-p.4.2.0/jboss-as/bin/jboss_init_redhat.sh - without this - server can abort

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 4.2 IR8
    • Fix Version/s: 4.2 CR2
    • Component/s: Tooling
    • Labels:
      None
    • Environment:

      soa-4.2.0-IR8.0.zip

      Description

      Description of problem:
      Need to add -D java.awt.headless=true to jboss-soa-p.4.2.0/jboss-as/bin/jboss_init_redhat.sh - without this - server can be aborted

      The problem is that the HSQL Database Manager does not start if the server is stated as a Linux service - as there is no head to which the AWT display can be directed. This problem was first reported in JBPAPP-180.

      Version-Release number of selected component (IR or RC #, component ver)
      soa-4.2.0-IR8.0.zip

      How reproducible:
      100%

      Steps to Reproduce:
      1.Startup the linux service, attempt to invoke the DatabaseManager

      Actual results:

      For SOA-P IR8 - one of two different results can happen.

      1) If the service is started via /sbin/service <service name> start, this error is correctly written to the server log:

      2007-12-11 14:53:49,368 ERROR [org.jboss.jdbc.HypersonicDatabase] Failed to start database manager because this is a headless configuration (no display, mouse or keyword)

      2) But - If the service is started from the CLI with jboss-soa-p.4.2.0/jboss-as/bin/jboss_init_redhat.sh start - this error is displayed and the server aborts

      X11 connection rejected because of wrong authentication.

      Expected results:

      This error should be logged - the server should not abort.

      ERROR [org.jboss.jdbc.HypersonicDatabase] Failed to start database manager because this is a headless configuration (no display, mouse or keyword)

      Additional information:

      Adding this to jboss-soa-p.4.2.0/jboss-as/bin/jboss_init_redhat.sh seems to stop the server from aborting:

      JAVA_OPTS="$JAVA_OPTS -D java.awt.headless=true"
      .
      .
      .
      JBOSS_CMD_START="cd $JBOSS_HOME/bin; $JBOSSSH $JAVA_OPTS"

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tkirby Trevor kirby
                  Reporter:
                  ldimaggio Len DiMaggio
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: