Hi

What version of Camel are you using?
And what JDK version?
And which web server are you using?




On Sat, Feb 11, 2012 at 11:47 AM, Samruben <ramyasri....@gmail.com> wrote:
> Hi
> I am new user to camel.
>
> I have tried to route the message from one queue to other queue. while
> running as java application, it works fine.
> I have created war file using the same java file but am getting this error.
>
>  ERROR - {1356bff3-d686-53fe-2640-165bffffffff} java.lang.NoSuchMethodError:
> com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.ascendingMap()Ljava/util/Map;
> java.lang.NoSuchMethodError:
> com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap.ascendingMap()Ljava/util/Map;
>        at org.apache.camel.util.LRUCache.entrySet(LRUCache.java:123)
>
> I dont have any idea about this error.
>
> java file:
>
> public class JmsToFileRoute extends RouteBuilder {
>        CamelContext context = new DefaultCamelContext();
>    ConnectionFactory connectionFactory = new
> ActiveMQConnectionFactory("tcp://localhost:61616");
>  context.addComponent("test-jms",
> JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
>     context.addComponent("routing-jms",
> JmsComponent.jmsComponentAutoAcknowledge(connectionFactory));
>     context.addRoutes(new RouteBuilder() {
>         public void configure() {
>
> from("test-jms:queue:test.queue").to("routing-jms:queue:routing.queue");
>             // set up a listener on the file component
>
>             from("routing-jms:queue:routing.queue").process(new Processor()
> {
>
>                 public void process(Exchange e) {
>                        System.out.println("Received exchange: " + e.getIn());
>                 }
>             });
>         }
>     });
>
>     context.start();
>     Thread.sleep(1000);
>     context.stop();
>
>    }
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/ERROR-while-running-camel-routing-as-war-file-tp5474775p5474775.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to