JBoss Transaction Manager
  1. JBoss Transaction Manager
  2. JBTM-1160

NoClassDefFoundError for Logging related packages when jbossjts is started in standalone mode.

    Details

    • Type: Task Task
    • Status: Closed Closed (View Workflow)
    • Priority: Minor Minor
    • Resolution: Done
    • Affects Version/s: 4.16.4
    • Fix Version/s: 4.16.5, 4.17.0
    • Component/s: Configuration
    • Security Level: Public (Everyone can see)
    • Labels:
    • Environment:
      Windows
    • Affects:
      Compatibility/Configuration
    • Similar Issues:
      Show 10 results 

      Description

      When the start-transaction-service-bat is run, then the following exceptions are thrown

      Exception - NoClassDefFoundError - org/jboss/logging/Logger
      Reason - The jboss-logging.jar is not in classpath
      Solution - This file is present in the lib\ext folder of $JBOSSTS_HOME. Add it to the classpath

      Exception - NoClasDefFoundError - org/sl4j/LoggerFactory
      Reason - The sl4j jars are not present in the classpath
      Solution - Add the slf4j-api-1.5.6.jar and slf4j-jdk14-1.5.6.jar present in the $JBOSSTS_HOME\jacorb\lib folder to the classpath

      Note - logkit-1.2.jar is present in the classpath. The sl4j jars should replace the logkit-1.2.jar

      These above items can be updated in the setup-env.bat file
      Add the following in the setup-env.bat file
      --------------------------------------------------------------------------------------------------------------------------------
      set EXT_CLASSPATH=%EXT_CLASSPATH%;%JBOSSTS_HOME%\lib\ext\jboss-logging.jar

      set JACORB_CLASSPATH=%JACORB_CLASSPATH%;%JACORB_HOME%\lib\slf4j-jdk14-1.5.6.jar
      set JACORB_CLASSPATH=%JACORB_CLASSPATH%;%JACORB_HOME%\lib\slf4j-api-1.5.6.jar
      --------------------------------------------------------------------------------------------------------------------------------

        Activity

        Hide
        Tom Jenkinson
        added a comment -

        Thanks for the report!

        Sending ArjunaCore/scripts/setup-env.sh
        Sending ArjunaCore/scripts/withorb-setup-env.bat
        Transmitting file data ...
        Committed revision 38072.
        [tom@localhost as7]$

        Show
        Tom Jenkinson
        added a comment - Thanks for the report! Sending ArjunaCore/scripts/setup-env.sh Sending ArjunaCore/scripts/withorb-setup-env.bat Transmitting file data ... Committed revision 38072. [tom@localhost as7] $

          People

          • Assignee:
            Tom Jenkinson
            Reporter:
            Kamala Sreenivasan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: