deploy the CamelContext with velocity endpoint into the Servicemix 4.0 will get
the NoClassDefFoundError
---------------------------------------------------------------------------------------------------------
Key: CAMEL-1505
URL: https://issues.apache.org/activemq/browse/CAMEL-1505
Project: Apache Camel
Issue Type: Bug
Affects Versions: 2.0-M1, 1.6.0
Reporter: Willem Jiang
Assignee: Willem Jiang
Fix For: 2.0.0, 1.6.1
[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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.