FYI I've added log4j as a runtime dependency of camel-velocity so this won't
be an issue in the next Camel release (which is hopefully very soon!).

On Wed, Dec 17, 2008 at 5:04 AM, Claus Ibsen <claus.ib...@gmail.com> wrote:

> On Wed, Dec 17, 2008 at 8:38 AM, Matteo Redaelli
> <matteo.redae...@libero.it> wrote:
> >
> > Yes, adding
> >        <dependency>
> >            <groupId>log4j</groupId>
> >            <artifactId>log4j</artifactId>
> >            <version>1.2.14</version>
> >        </dependency>
> >
> > in pom.xml the error disappears. It would be nice to add this depedency
> > inside camel-velocity...
> Thanks for reporting back. I have created a ticket to track this
> https://issues.apache.org/activemq/browse/CAMEL-1191
>
> >
> > Thanks
> >
> >
> > Claus Ibsen-2 wrote:
> >>
> >> Hi
> >>
> >> Looks like log4j is needed on the classpath for Velocity.
> >>
> >> Try adding log4j to your pom.xml
> >>
> >>
> >> On Tue, Dec 16, 2008 at 5:24 PM, Matteo Redaelli
> >> <matteo.redae...@libero.it> wrote:
> >>>
> >>> Ciao
> >>>
> >>> When I added a velocity component to my camel routes I got teh
> following
> >>> errorlog in the output even if mvn camel:run still goes on and works
> >>> properly. Are there any explicit dependences in pom.xml when you add
> >>> "camel-velocity"? log4j?
> >>>
> >>>  WARNING: Overriding type converter from: InstanceMethodTypeConverter:
> >>> public java.lang.String
> >>>
> org.apache.camel.converter.jaxp.XmlConverter.toString(javax.xml.transform.Source)
> >>> throws javax.xml.transform.TransformerException to:
> >>> StaticMethodTypeConverter: public static java.lang.String
> >>>
> org.apache.camel.converter.IOConverter.toString(javax.xml.transform.Source)
> >>> throws javax.xml.transform.TransformerException,java.io.IOException
> >>>  [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.SimpleLog4JLogSystem
> >>>  [debug] Couldn't find class
> >>> org.apache.velocity.runtime.log.SimpleLog4JLogSystem or necessary
> >>> 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:242)
> >>>        at
> >>> org.apache.velocity.util.ClassUtils.getClass(ClassUtils.java:63)
> >>>        at
> >>> org.apache.velocity.util.ClassUtils.getNewInstance(ClassUtils.java:95)
> >>>        at
> >>>
> org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:147)
> >>>        at
> >>>
> org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:208)
> >>>        at
> >>>
> org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:728)
> >>>        at
> >>>
> org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:240)
> >>>        at
> >>> org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:116)
> >>>        at
> >>>
> org.apache.camel.component.velocity.VelocityEndpoint.getVelocityEngine(VelocityEndpoint.java:65)
> >>>        at
> >>>
> org.apache.camel.component.velocity.VelocityEndpoint.onExchange(VelocityEndpoint.java:100)
> >>>        at
> >>>
> org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:66)
> >>>        at
> >>>
> org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
> >>>        at
> >>> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
> >>>        at
> >>>
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:63)
> >>>        at
> >>>
> org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:172)
> >>>        at
> >>>
> org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:93)
> >>>        at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:115)
> >>>        at org.apache.camel.processor.Pipeline.process(Pipeline.java:89)
> >>>        at
> >>>
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:63)
> >>>        at
> >>>
> org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:47)
> >>>        at
> >>>
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
> >>>        at
> >>>
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
> >>>        at
> >>>
> org.apache.camel.component.timer.TimerConsumer.sendTimerExchange(TimerConsumer.java:98)
> >>>        at
> >>>
> org.apache.camel.component.timer.TimerConsumer$1.run(TimerConsumer.java:49)
> >>>        at java.util.TimerThread.mainLoop(Timer.java:512)
> >>>        at java.util.TimerThread.run(Timer.java:462)
> >>>
> >>> --
> >>> View this message in context:
> >>>
> http://www.nabble.com/velocity%3A-Couldn%27t-find-class-org.apache.velocity.runtime.log.SimpleLog4JLogSystem-tp21036449s22882p21036449.html
> >>> Sent from the Camel - Users mailing list archive at Nabble.com.
> >>>
> >>>
> >>
> >>
> >>
> >> --
> >>
> >> /Claus Ibsen
> >> Apache Camel Committer
> >> Blog: http://davsclaus.blogspot.com/
> >>
> >>
> >
> > --
> > View this message in context:
> http://www.nabble.com/velocity%3A-Couldn%27t-find-class-org.apache.velocity.runtime.log.SimpleLog4JLogSystem-tp21036449s22882p21048552.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
> >
>
>
>
> --
>
> /Claus Ibsen
> Apache Camel Committer
> Blog: http://davsclaus.blogspot.com/
>



-- 
Cheers,
Jon

http://janstey.blogspot.com/

Reply via email to