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.

Reply via email to