activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Server failed to start while trying to run JUEL in ActiveMQ.xml
Date Wed, 31 Oct 2012 12:34:46 GMT
Hi

You need to add JARs to the classpath so ActiveMQ can find the el language.

I think its the juel JARs.

You can possible from them from Maven central and download and put in
the lib dir of ActiveMQ.
http://search.maven.org/#search%7Cga%7C1%7Cjuel



On Mon, Oct 29, 2012 at 5:35 PM, leela_pvs <leelaprasad.pvs@gmail.com> wrote:
> As part of a project requirement, i need to forward all the messages
> published to 'Topic' into another queue through ActiveMQ 5.2.0
> configuration. I tried the following code using Juel but getting an
> exception while starting ActiveMQ server. The code and exception details are
> provided below. Appreciate if any of you can provide a solution to the faced
> problem. Please suggest a better approach, in case my approach is incorrect
>
> Code:
> <camelContext id="camel"
> xmlns="http://activemq.apache.org/camel/schema/spring">
>                 <route>
>                         <from uri="activemq:topic:MyTopic"/>
>         <el>${in.headers.JMSType == 'TEST' }</el>
>         <to uri="activemq:queue:MyQueue"/>
>   </route>
> </camelContext>
>
>
>
> Exception:
>
> ERROR: java.lang.RuntimeException: Failed to execute start task. Reason:
> org.apa
>
> che.camel.NoSuchLanguageException: No language could be found for: el
>
> java.lang.RuntimeException: Failed to execute start task. Reason:
> org.apache.cam
>
> el.NoSuchLanguageException: No language could be found for: el
>
>         at
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand
>
> .java:98)
>
>         at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
>
> ommand.java:57)
>
>         at
> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand
>
> .java:129)
>
>         at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
>
> ommand.java:57)
>
>         at
> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.ja
>
> va:79)
>
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>
> java:39)
>
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>
> sorImpl.java:25)
>
>         at java.lang.reflect.Method.invoke(Method.java:597)
>
>         at org.apache.activemq.console.Main.runTaskClass(Main.java:225)
>
>         at org.apache.activemq.console.Main.main(Main.java:106)
>
> Caused by: org.apache.camel.NoSuchLanguageException: No language could be
> found
>
> for: el
>
>         at
> org.apache.camel.impl.DefaultLanguageResolver.noSpecificLanguageFound
>
> (DefaultLanguageResolver.java:72)
>
>         at
> org.apache.camel.impl.DefaultLanguageResolver.resolveLanguage(Default
>
> LanguageResolver.java:52)
>
>         at
> org.apache.camel.impl.DefaultCamelContext.resolveLanguage(DefaultCame
>
> lContext.java:430)
>
>         at
> org.apache.camel.model.language.ExpressionType.createPredicate(Expres
>
> sionType.java:144)
>
>         at
> org.apache.camel.model.ExpressionNode.createFilterProcessor(Expressio
>
> nNode.java:95)
>
>         at
> org.apache.camel.model.FilterType.createProcessor(FilterType.java:60)
>
>
>
>         at
> org.apache.camel.model.FilterType.createProcessor(FilterType.java:35)
>
>
>
>         at
> org.apache.camel.model.ProcessorType.createOutputsProcessor(Processor
>
> Type.java:1706)
>
>         at
> org.apache.camel.model.ProcessorType.createOutputsProcessor(Processor
>
> Type.java:95)
>
>         at
> org.apache.camel.model.InterceptorRef.createProcessor(InterceptorRef.
>
> java:66)
>
>         at
> org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java
>
> :1590)
>
>         at
> org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:99)
>
>
>
>         at org.apache.camel.model.RouteType.addRoutes(RouteType.java:220)
>
>         at org.apache.camel.model.RouteType.addRoutes(RouteType.java:89)
>
>         at
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(Defau
>
> ltCamelContext.java:639)
>
>         at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext
>
> .java:631)
>
>         at
> org.apache.camel.spring.SpringCamelContext.maybeDoStart(SpringCamelCo
>
> ntext.java:167)
>
>         at
> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext
>
> .java:162)
>
>         at
> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
>
>         at
> org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelCont
>
> ext.java:97)
>
>         at
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringC
>
> amelContext.java:116)
>
>         at
> org.springframework.context.event.SimpleApplicationEventMulticaster$1
>
> .run(SimpleApplicationEventMulticaster.java:78)
>
>         at
> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecut
>
> or.java:49)
>
>         at
> org.springframework.context.event.SimpleApplicationEventMulticaster.m
>
> ulticastEvent(SimpleApplicationEventMulticaster.java:76)
>
>         at
> org.springframework.context.support.AbstractApplicationContext.publis
>
> hEvent(AbstractApplicationContext.java:275)
>
>         at
> org.springframework.context.support.AbstractApplicationContext.finish
>
> Refresh(AbstractApplicationContext.java:737)
>
>         at
> org.springframework.context.support.AbstractApplicationContext.refres
>
> h(AbstractApplicationContext.java:384)
>
>         at
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(
>
> ResourceXmlApplicationContext.java:64)
>
>         at
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(
>
> ResourceXmlApplicationContext.java:52)
>
>         at
> org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext
>
> (XBeanBrokerFactory.java:96)
>
>         at
> org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBroker
>
> Factory.java:52)
>
>         at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.j
>
> ava:71)
>
>         at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.j
>
> ava:54)
>
>         at
> org.apache.activemq.console.command.StartCommand.startBroker(StartCom
>
> mand.java:115)
>
>         at
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand
>
> .java:74)
>
>         ... 10 more
>
> ERROR: java.lang.Exception: org.apache.camel.NoSuchLanguageException: No
> languag
>
> e could be found for: el
>
> java.lang.Exception: org.apache.camel.NoSuchLanguageException: No language
> could
>
> be found for: el
>
>         at
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand
>
> .java:99)
>
>         at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
>
> ommand.java:57)
>
>         at
> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand
>
> .java:129)
>
>         at
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractC
>
> ommand.java:57)
>
>         at
> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.ja
>
> va:79)
>
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>
> java:39)
>
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>
> sorImpl.java:25)
>
>         at java.lang.reflect.Method.invoke(Method.java:597)
>
>         at org.apache.activemq.console.Main.runTaskClass(Main.java:225)
>
>         at org.apache.activemq.console.Main.main(Main.java:106)
>
> Caused by: org.apache.camel.NoSuchLanguageException: No language could be
> found
>
> for: el
>
>         at
> org.apache.camel.impl.DefaultLanguageResolver.noSpecificLanguageFound
>
> (DefaultLanguageResolver.java:72)
>
>         at
> org.apache.camel.impl.DefaultLanguageResolver.resolveLanguage(Default
>
> LanguageResolver.java:52)
>
>         at
> org.apache.camel.impl.DefaultCamelContext.resolveLanguage(DefaultCame
>
> lContext.java:430)
>
>         at
> org.apache.camel.model.language.ExpressionType.createPredicate(Expres
>
> sionType.java:144)
>
>         at
> org.apache.camel.model.ExpressionNode.createFilterProcessor(Expressio
>
> nNode.java:95)
>
>         at
> org.apache.camel.model.FilterType.createProcessor(FilterType.java:60)
>
>
>
>         at
> org.apache.camel.model.FilterType.createProcessor(FilterType.java:35)
>
>
>
>         at
> org.apache.camel.model.ProcessorType.createOutputsProcessor(Processor
>
> Type.java:1706)
>
>         at
> org.apache.camel.model.ProcessorType.createOutputsProcessor(Processor
>
> Type.java:95)
>
>         at
> org.apache.camel.model.InterceptorRef.createProcessor(InterceptorRef.
>
> java:66)
>
>         at
> org.apache.camel.model.ProcessorType.makeProcessor(ProcessorType.java
>
> :1590)
>
>         at
> org.apache.camel.model.ProcessorType.addRoutes(ProcessorType.java:99)
>
>
>
>         at org.apache.camel.model.RouteType.addRoutes(RouteType.java:220)
>
>         at org.apache.camel.model.RouteType.addRoutes(RouteType.java:89)
>
>         at
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(Defau
>
> ltCamelContext.java:639)
>
>         at
> org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext
>
> .java:631)
>
>         at
> org.apache.camel.spring.SpringCamelContext.maybeDoStart(SpringCamelCo
>
> ntext.java:167)
>
>         at
> org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext
>
> .java:162)
>
>         at
> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:47)
>
>         at
> org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelCont
>
> ext.java:97)
>
>         at
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringC
>
> amelContext.java:116)
>
>         at
> org.springframework.context.event.SimpleApplicationEventMulticaster$1
>
> .run(SimpleApplicationEventMulticaster.java:78)
>
>         at
> org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecut
>
> or.java:49)
>
>         at
> org.springframework.context.event.SimpleApplicationEventMulticaster.m
>
> ulticastEvent(SimpleApplicationEventMulticaster.java:76)
>
>         at
> org.springframework.context.support.AbstractApplicationContext.publis
>
> hEvent(AbstractApplicationContext.java:275)
>
>         at
> org.springframework.context.support.AbstractApplicationContext.finish
>
> Refresh(AbstractApplicationContext.java:737)
>
>         at
> org.springframework.context.support.AbstractApplicationContext.refres
>
> h(AbstractApplicationContext.java:384)
>
>         at
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(
>
> ResourceXmlApplicationContext.java:64)
>
>         at
> org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(
>
> ResourceXmlApplicationContext.java:52)
>
>         at
> org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext
>
> (XBeanBrokerFactory.java:96)
>
>         at
> org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBroker
>
> Factory.java:52)
>
>         at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.j
>
> ava:71)
>
>         at
> org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.j
>
> ava:54)
>
>         at
> org.apache.activemq.console.command.StartCommand.startBroker(StartCom
>
> mand.java:115)
>
>         at
> org.apache.activemq.console.command.StartCommand.runTask(StartCommand
>
> .java:74)
>
>         ... 10 more
>
> INFO  BrokerService                  - ActiveMQ Message Broker (localhost,
> ID:A1
>
> 982A1D-2897-1351522723887-0:0) is shutting down
>
> INFO  NetworkConnector               - Network Connector default-nc Stopped
>
> INFO  TransportConnector             - Connector openwire Stopped
>
> INFO  TransportConnector             - Connector ssl Stopped
>
> INFO  TransportConnector             - Connector stomp Stopped
>
> INFO  TransportConnector             - Connector xmpp Stopped
>
> INFO  BrokerService                  - ActiveMQ JMS Message Broker
> (localhost, I
>
> D:A1982A1D-2897-1351522723887-0:0) stopped
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Server-failed-to-start-while-trying-to-run-JUEL-in-ActiveMQ-xml-tp4658393.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message