Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-1160

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

    Details

      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
      --------------------------------------------------------------------------------------------------------------------------------

        Gliffy Diagrams

          Activity

          Hide
          tomjenkinson 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
          tomjenkinson 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:
              tomjenkinson Tom Jenkinson
              Reporter:
              ksreen Kamala Sreenivasan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development