Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1505

deploy the CamelContext with velocity endpoint into the Servicemix 4.0 will get the NoClassDefFoundError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.0, 2.0-M1
    • 1.6.1, 2.0-M2
    • None
    • None

    Description

      [trace] ***********************************************************
      ********
      [debug] Starting Apache Velocity v1.5 (compiled: 2007-02-22 08:52:29)
      [trace] RuntimeInstance initializing.
      [debug] Default Properties File: org\apache\velocity\runtime\defaults\velocity.
      properties
      [debug] Trying to use logger class org.apache.velocity.runtime.log.Log4JLogChut
      e
      [debug] Couldn't find class org.apache.velocity.runtime.log.Log4JLogChute or ne
      cessary supporting classes in classpath.
      org/apache/log4j/Layout
      java.lang.NoClassDefFoundError: org/apache/log4j/Layout
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:164)
      at org.apache.velocity.util.ClassUtils.getClass(ClassUtils.java:76)
      at org.apache.velocity.util.ClassUtils.getNewInstance(ClassUtils.java:95
      )
      at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.
      java:147)

      We can get around this issue by replacing the org.apache.velocity.runtime.log.Log4JLogChute with
      org.apache.velocity.runtime.log.Log4JLogChute, and also need to update the Servicemix Velocity bundle to 1.6.

      Attachments

        Issue Links

          Activity

            People

              njiang Willem Jiang
              njiang Willem Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: