Re: Command not found: Error in Karaf shell
Hi Oleg, can you please if the full qualified name of the command still works ? Instead of restart, try bundle:restart for instance. I never had any issue on that kind. Regards JB On 24/10/2018 18:00, Oleg Cohen wrote: > Greetings, > > I run Karaf 4.2.1 on Mac in an iTerm2 window from the command line: > >> ./bin/karaf debug > > All works fine, but sometimes, and I can’t determine what leads to it > commands stop working. Name completion works, but when I execute a command, > for example restart 182, I get the following message: > > Command not found: restart > > I need to stop Karaf and re-launch. I am wondering if anybody ran into a > similar issue and if there is a way to diagnose/troubleshoot the system. > > Thank you! > Oleg >
Re: Karaf doesn't like Camel package with apache.commons.dbcp2
Hi, you can please try using feature:install -v and send the complete output ? Thanks Regards JB On 24/10/2018 19:37, bohnjerry wrote: > I am trying to install a maven Camel project and I get this error: > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)] > osgi.wiring.package; > (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))] > Unresolved requirements: > > I've tried to install every package and feature even remotely related (that > I could find).. still no dice. > Ideas? > > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html >
Re: Reload/restart bundle when installed with file://
Hi Oleg, If the bundle is located in the same location (as I'm assuming as you use the eclipse workspace, you can double check with bundle:list -l), then simply bundle:update works. In your case bundle:watch won't work as it's related to maven URL. So you have to use bundle:update command (generally or with the bundle id). Regards JB On 25/10/2018 02:11, Oleg Cohen wrote: > Hello, > > I have a number of bundles that I installed using the following command: > > install reference:file://$eclipse_worspace_path/bundleA > > > All works well until I change code and recompile the project in Eclipse. > What command should I use to refresh/reload/restart bundleA to pick up > the changes? > > I know there is an option to install by pointing to a JAR file in the > maven repo and use bundle:watch, but some of my bundles take a while to > be bundled and deploy, especially WAB ones. > > Thank you, > Oleg > > >
Reload/restart bundle when installed with file://
Hello, I have a number of bundles that I installed using the following command: install reference:file://$eclipse_worspace_path/bundleA All works well until I change code and recompile the project in Eclipse. What command should I use to refresh/reload/restart bundleA to pick up the changes? I know there is an option to install by pointing to a JAR file in the maven repo and use bundle:watch, but some of my bundles take a while to be bundled and deploy, especially WAB ones. Thank you, Oleg
Re: Karaf doesn't like Camel package with apache.commons.dbcp2
Weird, It should work because the javax.transaction.xa package is provided by the geronimo-jta_1.1_spec bundle. Could you share your project or send me in private ? I could test in local. regards, François Papon fpa...@apache.org Le 24/10/2018 à 22:40, John F. Berry a écrit : > 79 | Installed | 80 | 2.5.0 | Apache Commons DBCP
Re: Karaf doesn't like Camel package with apache.commons.dbcp2
Thanks François for your help! Karaf 4.2.1 karaf@root()> list START LEVEL 100 , List Threshold: 50 ID | State | Lvl | Version | Name ---+---+-++-- 23 | Active | 80 | 4.2.1 | Apache Karaf :: OSGi Services :: Event 51 | Active | 50 | 2.22.1 | camel-blueprint 52 | Active | 80 | 2.22.1 | camel-commands-core 53 | Active | 50 | 2.22.1 | camel-core 54 | Active | 80 | 2.22.1 | camel-karaf-commands 65 | Active | 50 | 2.22.1 | camel-stream 74 | Installed | 80 | 1.0.0 | EDM base64 HL7 documents to PeopleSoft 77 | Resolved | 80 | 2.3.0 | HAPI - Java HL7 API - OSGI Bundle 78 | Installed | 80 | 2.21.1 | camel-sql 79 | Installed | 80 | 2.5.0 | Apache Commons DBCP 80 | Active | 80 | 0.0.0 | example.xml 81 | Active | 50 | 2.22.1 | camel-sql 82 | Active | 50 | 1.1.1 | geronimo-jta_1.1_spec 94 | Active | 80 | 1.0.0.201505202023 | org.osgi:org.osgi.service.jdbc 95 | Active | 80 | 1.3.172 | H2 Database Engine 96 | Active | 80 | 1.3.0 | OPS4J Pax JDBC jTDS Driver Adapter 97 | Active | 80 | 0 | wrap_file__C__Users_jberry_.m2_repository_net_sourceforge_jtds_jtds_1.3.1_jtds-1.3.1.jar karaf@root()> On Wednesday, October 24, 2018, 1:47:05 PM EDT, Francois Papon wrote: Hi, Which version of Karaf are you using ? Can you paste "list" command ? regards, François Papon fpa...@apache.org Le 24/10/2018 à 21:37, bohnjerry a écrit : > I am trying to install a maven Camel project and I get this error: > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)] > osgi.wiring.package; > (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))] > Unresolved requirements: > > I've tried to install every package and feature even remotely related (that > I could find).. still no dice. > Ideas? > > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Command not found: Error in Karaf shell
Hi François, I didn’t notice anything specific, let me try reproduce and grab the log. Thank you, Oleg > On Oct 24, 2018, at 12:25 PM, Francois Papon > wrote: > > Hi Oleg, > > Did you have some logs when the error occured ? > > regards, > > François Papon > fpa...@apache.org > > Le 24/10/2018 à 20:00, Oleg Cohen a écrit : >> Greetings, >> >> I run Karaf 4.2.1 on Mac in an iTerm2 window from the command line: >> >>> ./bin/karaf debug >> All works fine, but sometimes, and I can’t determine what leads to it >> commands stop working. Name completion works, but when I execute a command, >> for example restart 182, I get the following message: >> >> Command not found: restart >> >> I need to stop Karaf and re-launch. I am wondering if anybody ran into a >> similar issue and if there is a way to diagnose/troubleshoot the system. >> >> Thank you! >> Oleg >
Re: Karaf doesn't like Camel package with apache.commons.dbcp2
Hi, Which version of Karaf are you using ? Can you paste "list" command ? regards, François Papon fpa...@apache.org Le 24/10/2018 à 21:37, bohnjerry a écrit : > I am trying to install a maven Camel project and I get this error: > Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing > requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)] > osgi.wiring.package; > (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))] > Unresolved requirements: > > I've tried to install every package and feature even remotely related (that > I could find).. still no dice. > Ideas? > > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Karaf doesn't like Camel package with apache.commons.dbcp2
I am trying to install a maven Camel project and I get this error: Unable to resolve org.apache.commons.commons-dbcp2 [79](R 79.0): missing requirement [org.apache.commons.commons-dbcp2 [79](R 79.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))] Unresolved requirements: I've tried to install every package and feature even remotely related (that I could find).. still no dice. Ideas? -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
Re: Command not found: Error in Karaf shell
Hi Oleg, Did you have some logs when the error occured ? regards, François Papon fpa...@apache.org Le 24/10/2018 à 20:00, Oleg Cohen a écrit : > Greetings, > > I run Karaf 4.2.1 on Mac in an iTerm2 window from the command line: > >> ./bin/karaf debug > All works fine, but sometimes, and I can’t determine what leads to it > commands stop working. Name completion works, but when I execute a command, > for example restart 182, I get the following message: > > Command not found: restart > > I need to stop Karaf and re-launch. I am wondering if anybody ran into a > similar issue and if there is a way to diagnose/troubleshoot the system. > > Thank you! > Oleg
Command not found: Error in Karaf shell
Greetings, I run Karaf 4.2.1 on Mac in an iTerm2 window from the command line: > ./bin/karaf debug All works fine, but sometimes, and I can’t determine what leads to it commands stop working. Name completion works, but when I execute a command, for example restart 182, I get the following message: Command not found: restart I need to stop Karaf and re-launch. I am wondering if anybody ran into a similar issue and if there is a way to diagnose/troubleshoot the system. Thank you! Oleg