Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.8.0, 2.8.1, 2.8.2
-
None
-
Unknown
Description
While trying out a Camel demo that uses velocity, I discovered a change of behaviour in the velocity component in Camel 2.8.0. I am using velocity in a Camel route defined in Spring XML. When I deploy the route into the OSGi container, velocity complains that it cannot find the CamelVelocityClasspathResourceLoader class. I can fix this by importing the class into my bundle.
I just checked the code of camel-velocity, as we introduced the CamelVelocityClasspathResourceLoader which should be loaded from the TCCL to load the resource by using camel context resolver.
That could explain why you need to add the import package of "org.apache.camel.component.velocity".
We can fix it by resetting a custom TCCL which knows how to load the CamelVelocityClasspathResourceLoader when calling the velocityEngine.init(properties).