Re: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/config/applicationContext.xml]; nested exception is java.lang.NullPointerException

2012-10-16 Thread Claus Ibsen
Hi What JDK, Camel, and Spring versions do you use? If using JDK7 you need Spring 2.10 or better. On Wed, Oct 17, 2012 at 12:22 AM, raokanduri wrote: > I was getting below exception while starting up webpshere application server. > Can pointers would be greatly appreciated > > org.springframewo

Re: Exception not captured by Tracer

2012-10-16 Thread Willem jiang
As I know the Trace just log the exception, it will not catch the exception. Camel Error handler can do that kind of work. Please forget about the InOnly data format, I should say the InOnly Message Exchange Pattern. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://

Re: Unmarshalling stop working

2012-10-16 Thread Willem jiang
camel-jaxb just provides type convert as a fallback converter, it is last thing camel converter can do. The exception will be thrown, if the camel-jaxb data format can't convert the XML to the type you want. Using the Message Translator EIP can give you full control of the whole process. --

Re: Camel CXF Compnenent consuming a webservice having header of type X.(X maps to xsd)

2012-10-16 Thread Willem jiang
Which data formate are you using? You are just want o access the soap header there. BTW, if you want to access the CXF message from camel in message, you can do it like this org.apache.cxf.message.Message cxfMessage = in.getHeader(CxfConstants.CAMEL_CXF_MESSAGE, org.apache.cxf.message.Message

Re: Exception not captured by Tracer

2012-10-16 Thread Willem jiang
It looks like you are using InOnly data format. Can you check if there is any exception is thrown in the camel log? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.bl

Re: Webdav AHC component

2012-10-16 Thread Willem jiang
Hi I'm afraid camel-ahc component doesn't provides the Webdav implementation for you. It could be easy if you use the Sardine API to build up component for do kind of work. Anyway, it could be great if you can contribute the implemented component to camel :) -- Willem Jiang Red Hat, In

Re: Jetty proxy routes confused behavior.

2012-10-16 Thread Willem jiang
Hi, I don't think camel-jetty can leverage the spring-security out of box, as the security filter doesn't load by it. If you have a chance to check out the camel spring security example[1], you can find you can use camel-servlet to do kind of work. [1]http://camel.apache.org/spring-security-exa

Re: NPE in CxfProducer due to client prematurely closed.

2012-10-16 Thread Willem jiang
Hi, I just checked the camel-cxf trunk, it doesn't create the JaxWsClientProxy any more. Can you try to upgrade the camel version to pick latest CXF version for it ? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: htt

Re: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/config/applicationContext.xml]; nested exception is java.lang.NullPointerException

2012-10-16 Thread Willem jiang
It is hard to tell why the NPE was thrown. Can you try to deploy the application into other WebContainer to see if it works ? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://wi

Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/config/applicationContext.xml]; nested exception is java.lang.NullPointerException

2012-10-16 Thread raokanduri
I was getting below exception while starting up webpshere application server. Can pointers would be greatly appreciated org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/config/applicationContext.xml]; n

Is Spring ActiveProfiles annotation supported in camel test 2.10?

2012-10-16 Thread jiunjiunma
Hi, I am trying to use Spring 3.1's ActiveProfiles feature to start an embedded activemq in my test context. However, it doesn't seem the profile was chosen since the embedded broker was never created. I am using Spring 3.1.2 with Camel 2.10 and using testng. Here is the snippet of my appli

Re: Is Spring ActiveProfiles annotation supported in camel test 2.10?

2012-10-16 Thread jiunjiunma
Oops, the embed doesn't seem to be working, repost the app context snippet as follows: -- View this message in context: http://camel.465427

Re: NPE in CxfProducer due to client prematurely closed.

2012-10-16 Thread mconner
Forgot to add the route: This triggers it periodically till the finalizer runs: processMessage http://foo.org/MYService/ Hello There

NPE in CxfProducer due to client prematurely closed.

2012-10-16 Thread mconner
I'm using ActiveMQ, 5.5.1, camel-2.7.0. I'm trying to set up a CXF endpoint that calls on a web service. I couldn't find a conprehensive example, but after piecing together what I could find, I came up with the following (this example is distilled down, but I'm running it): http://localhost:

Re: JMS Transactions with ActiveMQ

2012-10-16 Thread Christian Müller
Could you share your route with us to see whether do you use the InOut MEP or ...? And could you try the brand new Camel 2.10.2 release together with ActiveMQ 5.7.0? [1] http://search.maven.org/#artifactdetails|org.apache.camel|camel-core|2.10.2|bundle Best, Christian On Thu, Aug 16, 2012 at 3:0

Re: Removing an Endpoint from a route

2012-10-16 Thread alerios
Hi, Using camel route reloading (REST API) looks like an option, but it stops the route in order to redefine the destinations, which looks like the service will stop processing messages for about 300ms if I change the route nodes in realtime: 2012-10-10 18:50:07,048 [ /routes/route1] INFO Defaul

Re: Jetty proxy routes confused behavior.

2012-10-16 Thread Charles Moulliard
As camel uses the Apache CXF project for the component camel-cxf, have you had a look about their documentation : http://cxf.apache.org/docs/jax-rs-oauth.html http://cxf.apache.org/docs/jax-rs-oauth2.html http://cxf.apache.org/docs/cxf-oauth-10.html On Tue, Oct 16, 2012 at 5:53 PM, dvsridhar < da

Re: Jetty proxy routes confused behavior.

2012-10-16 Thread dvsridhar
Let me know if i confused you with my explanation. I really struck here.. I have to think on a plan B approach.. if this doesn't work.. at the same time i don't want to use camel-cxf (cxfrs) .. i think it is kind of over kill for proxy routes.. Being an exchange layer.. we act as provider.. and i

Webdav AHC component

2012-10-16 Thread Borut Bolčina
Hello, can't find an example or documentation on how to configure/use AHC component or any other which can put/delete files on (secure) webdav server. Currently we are using custom logic using Sardine API as Processor, but I would like to have less code for greater effect. I know there was a deba

Re: Fetch size in mail component

2012-10-16 Thread Ketan Barapatre
"Contributions is welcome " wow great to hear. Can you please share your idea for mail filter. I have been through http://camel.apache.org/contributing I will follow instructions. Thank you Ketan On Oct 16, 2012 2:22 PM, "Claus Ibsen" wrote: > On Mon, Oct 15, 2012 at 6:57 AM, Ketan Barapatre >

Exception not captured by Tracer

2012-10-16 Thread Gnanaguru S
Hi I am using Tracer for Message Tracking. And it works fine. I have found out that the tracer was not able to capture the exception in a camel flow. I have a use case like this: Stream:IN -> File -> JMS -> JMS ->File I have set a delay in between the flow. I killed the JMS broker while the

Re: Fetch size in mail component

2012-10-16 Thread Claus Ibsen
On Mon, Oct 15, 2012 at 6:57 AM, Ketan Barapatre wrote: > Hello All, > > I have created following route > > from("imaps://imap.gmail.com?username=" + user.getUserName() + "&password=" > + user.getPassword() + "&unseen=false&fetchSize=10& > consumer.delay=6").filter( messageFilter).process(mail

Re: Camel - Move specific exchanges ONLY to a different location

2012-10-16 Thread Claus Ibsen
On Mon, Oct 15, 2012 at 7:44 AM, ravishankar.singaram wrote: > Absolutely... CamelFileNoop will be a very clear option for users. Fell free to log a JIRA ticket and as always we love contributions. Also provide unit tests with the patch. And take care with the preMove option as the file may have

Re: Dynamic jms destination from wsdl?

2012-10-16 Thread Lars-Erik Helander
Willem, thank you very much for your code. I will try out this method. Thanks Lars 2012/10/15 Willem jiang : > Hi, > > I'm not sure if you are using soap over jms which CXF supports. If so, you > should be able to get the information of the jms-uri by looking up the CXF > message context by u