Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread yogu13
Hello Christian, You can check the karaf logs on why isn't your bundle installing / starting. Regards, -Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/Error-when-executing-install-s-mvn-com-packt-sample-tp5763885p5763896.html Sent from the Camel - Users mailing

camel-snmp TrapReceiveTest fails

2015-03-10 Thread gmanev
Hello The TrapReceiveTest test case from camel-snmp component passes with 2.14.1 and fails with 2.15-SNAPSHOT. Are there any additional requirements using the trap receiver? I am sending the stack trace below. org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint:

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread Christian Schneider
I am not sure under which circumstance the automatic detection of the LATEST version works but just add the actual version and you are fine. Christian On 10.03.2015 13:38, Christian Eugster wrote: The example is from Apache Karaf Cookbook. I didn't change anything and installed it in local

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread Christian Eugster
The example is from Apache Karaf Cookbook. I didn't change anything and installed it in local maven repository without any problems. Christian Christian Eugster Docuteam GmbH Langacker 16 Postfach CH-5405 Baden-Dättwil +41 (0)56 470 03 37 c.eugs...@docuteam.ch Am 10.03.2015 um 13:32

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread Christian Eugster
Hi Yogesh, thank you for responding. The log says, but I don't see what is wrong and I don't understand what No highest version found for com.packt:sample:jar:(0.0,] means. 2015-03-10 13:30:19,280 | ERROR | l for user karaf | ShellUtil | 25 -

Camel processor memory leak

2015-03-10 Thread majid
Hi all, I have a memory leak issue when I stop all my routes, I am still able to see my processor in the memory snapshot : public class ErrorHandlerProcessor implements org.apache.camel.Processor { private Logger logger = Logger.getLogger(getClass()); @Override public void

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread Christian Schneider
You probably forgot the version in the mvn: uri Christian On 10.03.2015 08:45, Christian Eugster wrote: Hi, I want to explore camel in karaf and for that I want install the sample bundle provided by Apache Karaf Cookbook (Chapter 2, Recipe 2), I ran mvn:install and found the installed

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread yogu13
Hello Christian! Looks like you did miss the version of the bundle installing. Try following readme @ chapter2-recipe2/sample https://github.com/jgoodyear/ApacheKarafCookbook/tree/master/chapter2/chapter2-recipe2/sample Regards, -Yogesh -- View this message in context:

web.xml not loading.

2015-03-10 Thread meenakshisekar
Hi, I'm just trying to load my web.xml into context from my Junit class. But the issue is , the test file only recogonizes the web.xml only is its in the same folder as the class. i.e InputStream is = this.getClass().getResourceAsStream(web.xml); I would like to have this web.xml in

Apache Camel 2.15.0 released

2015-03-10 Thread Willem Jiang
The Camel community announces the immediate availability of the new major release Camel 2.15.0. This release contains a total of 500+ fixes applied in the past 6 months by the community on the Camel master branch.   The artifacts are published and ready for you to download[1] either from the

Apache Camel 2.14.2 released

2015-03-10 Thread Willem Jiang
The Camel community announces the immediate availability of the new patch release Camel 2.14.2. This release contains a total of 101 fixes applied in the past 3 months by the community on the Camel master branch.   The artifacts are published and ready for you to download[1] either from the

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread Christian Eugster
My local maven repository is at ~/.m2e. Maybe I have to configure this location in karaf? Or reconfigure it in maven? Christian Christian Eugster Docuteam GmbH Langacker 16 Postfach CH-5405 Baden-Dättwil +41 (0)56 470 03 37 c.eugs...@docuteam.ch Am 10.03.2015 um 17:54 schrieb Christian

Re: Camel processor memory leak

2015-03-10 Thread majid
Hi All, I fixed the issue. Basically, when errorHandler(deadLetterChannel(seda:error)) is global to a route, some mbeanserver.NamedObject is retaining a reference to the processor. I used instead @Override public void configure() throws Exception { from(seda:error)

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread Christian Schneider
Can you try some of the examples from my site and see if you hit the same problems? I wonder if the problem is specific to the packt example or general. http://liquid-reality.de/display/liquid/Karaf+Tutorials https://github.com/cschneider/Karaf-Tutorial Christian On 10.03.2015 18:20,

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread Christian Eugster
Hi Christian, I tried tasklist/pom.xml and got the following stacktrace while mvn install: 2015-03-10 19:04:16,193 | WARN | FelixStartLevel | AetherBasedResolver | 44 - org.ops4j.pax.url.mvn - 1.6.0 | Error resolving

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread Christian Schneider
Maybe your maven repository is not at the default location. Karaf will then not use it and so at runtime you do not find the class. Christian On 10.03.2015 17:26, Christian Eugster wrote: HI Christian, sorry to bother you. I did like the book describes: I did first an mvn:install from

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread Christian Schneider
bundle:install should work. But you need to first build the example locally. Christian On 10.03.2015 16:39, Christian Eugster wrote: Hi Yogesh + Christian, that does not work neither: osgi:install is not known bei karaf (3.0.3). And bundle:install -s mvn:com.packt/sample/1.0.0-SNAPSHOT does

Re: Camel Project Executable Jar

2015-03-10 Thread blommish
And the alternative would be using this? But then I still get an error.. I'm using the same version for all my dependencies and so on dependency groupIdorg.apache.camel/groupId artifactIdcamel-spring/artifactId version${camel-version}/version /dependency plugin

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread Christian Eugster
HI Christian, sorry to bother you. I did like the book describes: I did first an mvn:install from eclipse (with success). After that I did the bundle:install -s mvn:com.packt/sample in different variations (with and without version). Does not work. Don't know, what I am missing. Regards

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread Christian Schneider
You can configure it in etc/org.ops4j.pax.url.mvn.cfg but using the default will save you from many problems. Christian On 10.03.2015 17:58, Christian Eugster wrote: My local maven repository is at ~/.m2e. Maybe I have to configure this location in karaf? Or reconfigure it in maven?

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread yogu13
Check the version in your pom.xml i hope it matches your install mvn parameter Regards, -Yogesh On Tuesday, March 10, 2015, Christian Eugster-2 [via Camel] ml-node+s465427n576394...@n5.nabble.com wrote: HI Christian, sorry to bother you. I did like the book describes: I did first an

Apache Camel 2.13.4 released

2015-03-10 Thread Willem Jiang
The Camel community announces the immediate availability of the new patch release Camel 2.13.4. This release contains a total of 81 fixes applied in the past 3 months by the community on the Camel master branch.   The artifacts are published and ready for you to download[1] either from the

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread Christian Eugster
Hi Yogesh + Christian, that does not work neither: osgi:install is not known bei karaf (3.0.3). And bundle:install -s mvn:com.packt/sample/1.0.0-SNAPSHOT does not work neither. Any idea? Thanks! Regards Christian Christian Eugster Docuteam GmbH Langacker 16 Postfach CH-5405 Baden-Dättwil

Re: Camel Project Executable Jar

2015-03-10 Thread Claus Ibsen
See this FAQ http://camel.apache.org/how-do-i-use-a-big-uber-jar.html On Tue, Mar 10, 2015 at 4:53 PM, blommish johan.blomgre...@gmail.com wrote: Hi, I want to package my project as a JAR file with all dependencies. * Or should I actually solve it in another way? We haven't decided how it

Camel Project Executable Jar

2015-03-10 Thread blommish
Hi, I want to package my project as a JAR file with all dependencies. * Or should I actually solve it in another way? We haven't decided how it should be hosted yet * Anyhow, I use maven-shade-plugin to package my project. 1. Get loads of warnings: [WARNING] We have a duplicate 2. Any

Re: Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread Achim Nierbeck
Hi Christian, I just verified if there is an issue with the sample, which isn't. Did you follow the instructions in the book, also did you make sure the Karaf is in a Vanilla state? For recipe2 of chapter2 to work you need to have camel installed: feature:repo-add

Re: Camel stop routes and start

2015-03-10 Thread harald
Hi Majid, you wrote that you stop all routes, have you tried to stop the CamelContext instead? According to [1] stopping and restarting the whole CamelContext it is performing a ‘cold’ start. That’s what I would try next. Regards, harald [1] http://camel.apache.org/lifecycle.html

Re: Camel stop routes and start

2015-03-10 Thread majid
Hi Harald, Yes, I can but I am using the same camel context for other tasks, I stop these routes and restart them when need and keep others. -- View this message in context: http://camel.465427.n5.nabble.com/Camel-stop-routes-and-start-tp5763950p5763957.html Sent from the Camel - Users

Re: HTTPS endpoint polling Camel

2015-03-10 Thread Morgan Hautman
Hello, You can always check the camel website. (http://camel.apache.org) But in your case you should need this: http://camel.apache.org/http.html On 9/03/2015 19:18, divakar109 wrote: Hi guys, I am extremely new to Camel, I need to configure an HTTPS endpoint in camel so that I could consume

Error when executing: install -s mvn:com.packt/sample

2015-03-10 Thread Christian Eugster
Hi, I want to explore camel in karaf and for that I want install the sample bundle provided by Apache Karaf Cookbook (Chapter 2, Recipe 2), I ran mvn:install and found the installed bundle in ~/m2e repository. But when I try install -s mvn:com.packt/sample from within karaf, I get an Error

Re: Camel stop routes and start

2015-03-10 Thread harald
Hmm .. you are stopping the route (shutdown) while processing a big XML file. A stopRoute is not like a kill (doesn’t exist - afair). Looking into the DefaultShutdownStrategy documentation might be of help. Do you see any warnings about the route shutdown within the logs?

Are transactions useful in these use-cases?

2015-03-10 Thread James Green
We have a number of routes: from(HTTP POST).to(JMS) from(JMS).to(SOAP Endpoint).to(JMS) from(JMS).to(MongoDB) from(MongoDB).to(JMS) Hugely simplified and these are across various JAR services. Are transactions actually useful in the above? Actually understanding the behaviour of code routes is