camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: camel velocity in jbi/servicemix4
Date Thu, 21 May 2009 02:25:45 GMT
Hi

You can use features/install camel-velocity to install the
camel-velocity feature.
Now we got the right version of velocity bundle.

[  65] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
antlr-3.0.1 (3
.0.1.1)
[  66] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
werken-xpath-0
.9.4 (0.9.4.fuse)
[  67] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
velocity-1.6.2
 (1.6.2.fuse)
[  68] [Active     ] [       ] [   60] camel-velocity (1.6.0.fuse)

Willem

Matteo Redaelli wrote:
> yes, I did
> 
> in camel-su pom I have a "dependency" entry of camel-velocity version
> "1.6.0.0-fuse";
> inside smx4 I see "1.6.0.fuse". is it a problem? 
> 
> 
> smx@root:/> osgi/list|grep -i camel
> [  66] [Active     ] [       ] [   60] camel-core (1.6.0.fuse)
> [  67] [Active     ] [       ] [   60] camel-osgi (1.6.0.fuse)
> [  68] [Active     ] [       ] [   60] camel-spring (1.6.0.fuse)
> [ 124] [Active     ] [Started] [   60] ServiceMix :: Camel (2009.01.0.fuse)
> [ 155] [Active     ] [       ] [   60] camel-jdbc (1.6.0.fuse)
> [ 160] [Active     ] [       ] [   60] camel-velocity (1.6.0.fuse)
> [ 161] [Active     ] [       ] [   60] camel-jms (1.6.0.fuse)
> [ 164] [Active     ] [       ] [   60] camel-juel (1.6.0.fuse)
> 
> 
> Freeman Fang wrote:
>> Hi,
>>
>> Do you run "features/install camel-velocity" in smx console firstly, 
>> ensure the camel-velocity feature get installed.
>>
>> Freeman
>> Matteo Redaelli wrote:
>>> I switched to fuse esb 4.1.0.0
>>>
>>> in my pom.xml I added camel dependencies with these sw releases
>>>
>>>     <properties>
>>>         <camel-version>1.6.0.0-fuse</camel-version>
>>>         <servicemix-version>4.1.0.0-fuse</servicemix-version>
>>>         <activemq-version>5.3.0.1-fuse</activemq-version>
>>>     </properties>
>>>
>>> is it ok? (the "camel" example in the sw distribution is too simple. it
>>> doesn't contain additional dependencies that the USER could use as a
>>> sample)
>>>
>>>
>>> and then when I deploy my camel-sa project in fuse-smx41 and  run my
>>> route I
>>> get
>>>
>>> 10:34:12,769 | ERROR | nerContainer-186 | DeadLetterChannel               
>>> |
>>> rg.apache.camel.processor.Logger  203 | Failed delivery for exchangeId:
>>> ID-nowar.redaelli.org/38560-1242811335370/0-0. On delivery attempt: 0
>>> caught: org.apache.velocity.exception.VelocityException: Failed to
>>> initialize an instance of
>>> org.apache.velocity.runtime.log.CommonsLogLogChute
>>> with the current runtime configuration.
>>> org.apache.velocity.exception.VelocityException: Failed to initialize an
>>> instance of org.apache.velocity.runtime.log.CommonsLogLogChute 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.CommonsLogLogChute does not
>>> implement the org.apache.velocity.runtime.log.LogChute interface.
>>> 	at
>>> org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:181)
>>>
>>>
>>>
>>> willem.jiang wrote:
>>>   
>>>> Hi Claus,
>>>>
>>>> I just checked the camel-velocity feature of SMX 4.1.0-fuse, it uses
>>>> velocity 1.6 now.
>>>> This issue should be resolved with the latest SMX.
>>>>
>>>> Willem
>>>>
>>>> Claus Ibsen wrote:
>>>>     
>>>>> Hi
>>>>>
>>>>> Isn't this fixed in the latest SMX, haven't they upgraded the velocity
>>>>> there?
>>>>>
>>>>>
>>>>> On Tue, May 19, 2009 at 3:14 PM, Willem Jiang <willem.jiang@gmail.com>
>>>>> wrote:
>>>>>       
>>>>>> Hi,
>>>>>>
>>>>>> This issue is caused by the velocity version is lower in servicemix4.
>>>>>> Please make sure the version of velocity is greater than 1.6.
>>>>>>
>>>>>> Willem
>>>>>>
>>>>>> Matteo Redaelli wrote:
>>>>>>         
>>>>>>> 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
>>>>>>>           
>>>>>       
>>>>     
>>>   
>>
>> -- 
>> Freeman Fang
>> ------------------------
>> Open Source SOA: http://fusesource.com
>>
>>
>>
> 


Mime
View raw message