Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2502

Make Weld-SE StartMain more compatible with container execution

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Minor
    • 3.0.5.Final
    • 3.0.4.Final
    • Java SE Support
    • None

    Description

      When exceptions are thrown in programs that are run using Weld-SE's StartMain class, the JRE outputs the resulting message and stack-trace to System.err. In a containerized environment, it's common to use an external log processing system (e.g. ELK or Splunk) which will commonly fail to parse this output as it's not formatted as a log entry.

      A second problem occurs when certain exceptions are thrown as the exit code can be variable.

      Properly handling stray Throwables in StartMain's main() method solves this problem, allowing the JBoss logging system to output the application's final message and stack-trace, formatted to match the configuration of the system.

      Attachments

        Activity

          People

            manovotn Matěj Novotný
            smoyer64 Steve Moyer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: