camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matteo Redaelli <matteo.redae...@libero.it>
Subject camel velocity in jbi/servicemix4
Date Tue, 19 May 2009 12:52:30 GMT

I'm trying to convert a camel project into a servicemix4/jbi project
I started from the example "camel", then I added the library dependencies,
.vm files, routers from my OLD camel project

But when I run the routes in smx4 I get the error

13:03:38,299 | ERROR | enerContainer-98 | DeadLetterChannel                |
rg.apache.camel.processor.Logger  203 | Failed delivery for exchangeId:
ID-nowar.redaelli.org/37657-1242722371508/0-1780. On delivery attempt: 0
caught: org.apache.velocity.exception.VelocityException: Failed to
initialize an instance of
org.apache.velocity.runtime.log.SimpleLog4JLogSystem with the current
runtime configuration.
org.apache.velocity.exception.VelocityException: Failed to initialize an
instance of org.apache.velocity.runtime.log.SimpleLog4JLogSystem with the
current runtime configuration.
	at
org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:206)
	at
org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:255)
	at
org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:795)
	at
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:250)
	at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:107)
	at
org.apache.camel.component.velocity.VelocityEndpoint.getVelocityEngine(VelocityEndpoint.java:66)
	at
org.apache.camel.component.velocity.VelocityEndpoint.onExchange(VelocityEndpoint.java:109)
	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:84)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
	at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:189)
	at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:133)
	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:68)
	at
org.apache.camel.processor.interceptor.StreamCachingInterceptor.proceed(StreamCachingInterceptor.java:87)
	at
org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:82)
	at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:52)
	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.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:72)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:543)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:482)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:451)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:323)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:261)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:982)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:881)
	at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.velocity.exception.VelocityException: The specified
logger class org.apache.velocity.runtime.log.SimpleLog4JLogSystem does not
implement the org.apache.velocity.runtime.log.LogChute interface.
	at
org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:181)
	... 29 more

I have
smx@root:/> features/list |grep camel|grep "installed "
[installed  ]  [      4.0.0] camel-nmr
[installed  ]  [      1.6.0] camel-spring
[installed  ]  [      1.6.0] camel
[installed  ]  [      1.6.0] camel-ibatis
[installed  ]  [      1.6.0] camel-jpa
[installed  ]  [      1.6.0] camel-velocity
[installed  ]  [      1.6.0] camel-juel
[installed  ]  [ 2009.01] servicemix-camel
[installed  ]  [      1.6.0] camel-core
[installed  ]  [      1.6.0] camel-ognl
[installed  ]  [      1.6.0] camel-osgi
[installed  ]  [      1.6.0] camel-cxf
[installed  ]  [      1.6.0] camel-saxon
[installed  ]  [      1.6.0] camel-jdbc
[installed  ]  [      1.6.0] camel-jms
[installed  ]  [      1.6.0] camel-sql
[installed  ]  [      1.6.0] camel-spring-integration
[installed  ]  [      1.6.0] camel-quartz

my camel-su files are

camel-su
camel-su/src
camel-su/src/main
camel-su/src/main/resources
camel-su/src/main/resources/sql-moodle-update-user-lock.vm
camel-su/src/main/resources/log4j.properties
camel-su/src/main/resources/camel-context.xml
camel-su/src/main/resources/sql-moodle-update-user-missing-userprofile.vm
camel-su/src/main/resources/sql-moodle-select-user-missing-userprofile.vm
camel-su/src/main/java
camel-su/pom.xml


where does the system look for .vm files (I have "<to
uri="velocity:sql-upms-user-attributes-select.vm" />")

where does the system look for log4j.properties?

thanks in advance
Matteo
-- 
View this message in context: http://www.nabble.com/camel-velocity-in-jbi-servicemix4-tp23615797p23615797.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message