Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 87763 invoked from network); 26 Jan 2009 20:57:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jan 2009 20:57:51 -0000 Received: (qmail 2815 invoked by uid 500); 26 Jan 2009 20:57:51 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 2792 invoked by uid 500); 26 Jan 2009 20:57:51 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 2781 invoked by uid 500); 26 Jan 2009 20:57:51 -0000 Delivered-To: apmail-activemq-camel-user@activemq.apache.org Received: (qmail 2778 invoked by uid 99); 26 Jan 2009 20:57:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jan 2009 12:57:51 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jan 2009 20:57:41 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LRYWF-0007tm-1t for camel-user@activemq.apache.org; Mon, 26 Jan 2009 12:57:19 -0800 Message-ID: <21673691.post@talk.nabble.com> Date: Mon, 26 Jan 2009 12:57:19 -0800 (PST) From: Ashwin Karpe To: camel-user@activemq.apache.org Subject: Re: Need assistance to solve a camelContext exception In-Reply-To: <21591380.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: askarpe@progress.com References: <21591380.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Liav, I have also answered in another thread... Why the Lorg/apache/camel/spi/InterceptStrategy ? Could this be a typo... I would have expected to see org/apache/camel/spi/InterceptStrategy as the one that could not load... But since you have all the jars in the path it should be fine... Cheers, Ashwin... Liav Ezer wrote: > > Hi, > > This is another try to post my problem - maybe you ran into something > similar... > > I use fuse-esb 3.3.1.3 with camel 1.4. > > I have a Camel SA & i try to add an interceptor via the following code: > > Router class: > public void configure() throws Exception { > > getContext().addInterceptStrategy(new MyFromEndpointInterceptor()); > > from("jbi:service:http://oxp/oXpInternalService") > .process(new OXpServicesAuthenticationProcessor()); > } > > & i get the following exception: > > org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'camelContext:beanPostProcessor': Cannot > resolve reference to bean 'camelContext' while setting bean property > 'camelContext'; nested exception is > org.springframework.beans.factory.BeanCreationException: Error creating be > an with name 'camelContext': Invocation of init method failed; nested > exception is java.lang.NoSuchMethodError: > org.apache.camel.CamelContext.addInterceptStrategy(Lorg/apache/camel > /spi/InterceptStrategy;) > > What i tried to do is to remove camel-core 1.4 from my classpath & to add > 1.5 (after getting it via pom dependecy) > > Here is my camel-context > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://activemq.apache.org/camel/schema/spring > http://activemq.apache.org/camel/schema/spring/camel-spring.xsd"> > xmlns="http://activemq.apache.org/camel/schema/spring"> > > com.liav.oxp.esb.poc > > > > Many thanks. > Liav. > ----- --- Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence Progress Software Corporation 14 Oak Park Drive Bedford, MA 01730 --- +1-972-304-9084 (Office) +1-972-971-1700 (Mobile) ---- Blog: http://opensourceknowledge.blogspot.com/ -- View this message in context: http://www.nabble.com/Need-assistance-to-solve-a-camelContext-exception-tp21591380s22882p21673691.html Sent from the Camel - Users mailing list archive at Nabble.com.