Hi Liav,
Have you checked the packages in the camel context block of the
camel-context.xml in the resources directory to see if the Camel processor
have been correctly defined.
Cheers,
Ashwin...
Liav Ezer wrote:
>
> Hi,
>
> I use servicemix-fuse 3.3.1.3 with Camel 1.4.
> In my Camel Builder i try to add interceptor & it's causing me an
> NoSuchMethodError.
>
> My configure method is:
>
> public void configure() throws Exception {
>
> getContext().addInterceptStrategy(new MyFromEndpointInterceptor());
>
> from("jbi:service:http://oxp/oXpInternalService")
> .process(new OXpServicesAuthenticationProcessor());
> }
>
> This is the context i use (i println it)
> org.apache.camel.spring.SpringCamelContext
>
> My exception is at deploy time:
>
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'camel:beanPostProcessor': Cannot resolve reference to bean
> 'camel' while setting bean property 'camelContext'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '
> camel': Invocation of init method failed; nested exception is
> java.lang.NoSuchMethodError:
> org.apache.camel.CamelContext.addInterceptStrategy(Lorg/apache/camel/spi/InterceptStrategy;)
>
>
> Thanks in advance,
> 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/Why-getContext%28%29.addInterceptStrategy-is-throwing-an-exception--tp21551665s22882p21561853.html
Sent from the Camel - Users mailing list archive at Nabble.com.