Re: KARAF/JMX Aries JMX whiteboard issue
Hi Lukasz, Could you please point me to an example? From your reply I understand that (pl correct me if I'm wrong), org.apache.karaf.management.core bundle exposes the MBean Server (Service Interface) which I can look it up and register my Mean using MBeanRegistrer. But still some solid example will greatey help me! Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/KARAF-JMX-Aries-JMX-whiteboard-issue-tp3624040p3629858.html Sent from the Karaf - User mailing list archive at Nabble.com.
KARAF/JMX Aries JMX whiteboard issue
Hello, I'm trying to instrument one of my Blueprint bean as follows: package com.hcsc.ccsp.dupcheck.jms.tester; public interface SendMsgServiceMBean { public void sendMsg(); } public class AMQSendMsgService implements SendMsgServiceMBean{ . } bean id=amqSendMsgServiceBean class=com.hcsc.ccsp.dupcheck.jms.tester.internal.AMQSendMsgService init-method=init destroy-method=destroy property name = connectionFactory ref=connectionFactory/ /bean service id = amqSendMsgService ref=amqSendMsgServiceBean interface=com.hcsc.ccsp.dupcheck.jms.tester.SendMsgServiceMBean service-properties entry key=jmx.objectname value=domain:name=sendMessage / /service-properties /service I have deployed this in Karaf (Felix). I see that Karaf has Aries JMX and JMX Blueprint bundes. In JConsole I not see my instrumented bean. Any ideas please? Am I missing some bundles? Thanks in advance! Matt -- View this message in context: http://karaf.922171.n3.nabble.com/KARAF-JMX-Aries-JMX-whiteboard-issue-tp3624040p3624040.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Karaf+ActiveMQ WebConsole Issue
Hi Andreas, I do have the system.properties file configured! And JB, In the mean time is there any way you can export the javax.jms.ConnrectionFactory of the web-console as an OSGi service like the one below! service ref=pooledConnectionFactory interface=javax.jms.ConnectionFactory service-properties entry key=name value=foundation / /service-properties /service I have a requirement where I had to look up the ConnectionFactory vid jndi/ServiceLookUp. I'm sure others will have a similar need as well. Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-ActiveMQ-WebConsole-Issue-tp3592914p3594802.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Basic question - Maven Plugin for creating Parent Projects/Bundle projects
Hello JB and Achim, Maven Pax Plugin might be a good starting point. Looks like it has not been updated for a while and does not work well at all with m2eclipse(When you try to create a bundle it totally cobbers the parent pom) and its tailored more towards PaxRunner. But I'm sure we can borrow lots of base knowledge and code from this. Just a thought! Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Basic-question-Maven-Plugin-for-creating-Parent-Projects-Bundle-projects-tp3586378p3589266.html Sent from the Karaf - User mailing list archive at Nabble.com.
Karaf+ActiveMQ Defining Queues
Hello, I would like to define Queues and Topics in ActiveMQ running inside Karaf. I'm used to defining them in activemq.xml. Where can I find this file in Karaf? Is there any other (better) way of defining Queues and Topics instead of defining from the Karaf console? Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-ActiveMQ-Defining-Queues-tp3589527p3589527.html Sent from the Karaf - User mailing list archive at Nabble.com.
Basic question - Maven Plugin for creating Parent Projects/Bundle projects
Hello, I'm trying to find some artifacts for creating Parent OSGi project and child bundle projects. I used to use the maven pax pluggin before I converted to Apache Karaf. (it used to create a project structure specific to Pax Runner etc). Anyway I would like to know how do a typical Karaf user creates his/her OSGi Parent/Bundle projects? Is it done manually or is there a good Maven plugin for that? Any suggestions will be appreciated. Thanks in advance! Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Basic-question-Maven-Plugin-for-creating-Parent-Projects-Bundle-projects-tp3586378p3586378.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Basic question - Maven Plugin for creating Parent Projects/Bundle projects
Hi JB, Yes that would fulfill my needs. Also for bundles since most people are using BluePrint Maven Felix Plugin if the archetypes can create folders/structures for these features as well it will be great. Is there a working archetype for web now? May be I can extend it. Also when you create a parent project for Karaf based project if it creates a project for features also it will be great. Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Basic-question-Maven-Plugin-for-creating-Parent-Projects-Bundle-projects-tp3586378p3586535.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Basic question - Maven Plugin for creating Parent Projects/Bundle projects
Hi JB, Please keep me informed. I'm very interested in participating. Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Basic-question-Maven-Plugin-for-creating-Parent-Projects-Bundle-projects-tp3586378p3586851.html Sent from the Karaf - User mailing list archive at Nabble.com.
Seamlessly switching from Felix and Equinox - data folder
Hello, My understanding is that when I switch OSGi runtime the data folder becomes stale and I have to start delete the data folder content and start installing my features and bundles again. Can I preserve the state of my Karaf between OSGi runtime switches? Will save some time! Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Seamlessly-switching-from-Felix-and-Equinox-data-folder-tp3478439p3478439.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: URGENT: Karaf 2.0 features:install problem cannot install ANY feature
Hello, I delete the data folder and started again. Seems like the problem arises after I add url to the Camel-Karaf. Looks like there are two problems. 1. Karaf features does not like version ranges 2. Camel-karf does not like Karaf 2.0.0 Can someone throw some light on this one please? Matt -- View this message in context: http://karaf.922171.n3.nabble.com/URGENT-Karaf-2-0-features-install-problem-cannot-install-ANY-feature-tp3459384p3462149.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Error Karaf 2.0 - No feature named 'spring' with version '[3,4)' available
Hi Johan, I'm stuck with Karaf 2.0 due to the limitation of IBM WAS 7.1 (my client's target platform - please refer to my previous posting in Karaf). Can I move back to an older version of Camel? Also can you please let me know what is latest version of KARFA I can use for Apache Aries 0.1 please? (Once again limitation caused by IBM WAS) Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Error-Karaf-2-0-No-feature-named-spring-with-version-3-4-available-tp3456296p3458769.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Error Karaf 2.0 - No feature named 'spring' with version '[3,4)' available
Johan, Before I started here my client's development tool of choice was IBM RAD tooling and the target platform is WAS 7.1 which has Equinox 3.5.x and Aries 0.1 (built around Oct 2010) I cannot do anything about WAS. My aim is to create a robust development process for OSGi applications that will be deployed to WAS. The process must have : * Fast turn around * Hot deploy * Debugging * Mavanized with Apache Maven Felix plugin * ITest with PAX etc Its almost impossible to develop OSGi apps in RAD using the RAD's OSGi tooling. Hot deploy is almost non existent. Deploying an EBA as an Asset and then starting the BLA in WAS takes almost 15 minutes. This is just not acceptable. So I went with the above tools with pax;provision and runner. But after my discussions with Andreas I chose Karaf and everyone here loves it. So I need to create a KAraf based development env which is as close as possible to IBM WAS. So I'm stuck with Aries 0.1 which IBM WAS has. Hence my problem. Any help regarding this willl be greatly appreciated. Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Error-Karaf-2-0-No-feature-named-spring-with-version-3-4-available-tp3456296p3458849.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Aries 0.1 - Latest Karaf version I can use
Hi Guillaume, I could make it work with 2.0.0 but now Camel does not like Karaf 2.0.0. Any idea which version of Camel will work with Karaf 2.0.0? Man IBM! Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Aries-0-1-Latest-Karaf-version-I-can-use-tp3458809p3459051.html Sent from the Karaf - User mailing list archive at Nabble.com.
URGENT: Karaf 2.0 features:install problem cannot install ANY feature
Hello, I added few URL's to Karaf. Any feature I try to install I'm getting the following error: karaf@root features:install camel Error executing command: Unknown operator: /The exception Trace is:/ 17:28:18,593 | INFO | l Console Thread | Console | araf.shell.console.jline.Console 198 | 9 - org.apache.karaf.shell.console - 2.0.0 | Exception caught while executing command org.osgi.framework.InvalidSyntaxException: Unknown operator: at org.apache.felix.framework.FilterImpl.init(FilterImpl.java:48)[org.apache.felix.framework-3.0.1.jar:] at org.osgi.framework.FrameworkUtil.createFilter(FrameworkUtil.java:76)[org.apache.felix.framework-3.0.1.jar:] at org.apache.karaf.features.internal.FeaturesServiceImpl.resolve(FeaturesServiceImpl.java:416)[29:org.apache.karaf.features.core:2.0.0] at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:400)[29:org.apache.karaf.features.core:2.0.0] at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:383)[29:org.apache.karaf.features.core:2.0.0] at org.apache.karaf.features.internal.FeaturesServiceImpl.doInstallFeature(FeaturesServiceImpl.java:383)[29:org.apache.karaf.features.core:2.0.0] at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:246)[29:org.apache.karaf.features.core:2.0.0] at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:235)[29:org.apache.karaf.features.core:2.0.0] at org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:231)[29:org.apache.karaf.features.core:2.0.0] at org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:51)[30:org.apache.karaf.features.command:2.0.0] at org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:39)[30:org.apache.karaf.features.command:2.0.0] at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:41)[9:org.apache.karaf.shell.console:2.0.0] at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[9:org.apache.karaf.shell.console:2.0.0] at org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:50)[15:org.apache.felix.gogo.runtime:0.4.0] at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:229)[15:org.apache.felix.gogo.runtime:0.4.0] at org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:162)[15:org.apache.felix.gogo.runtime:0.4.0] at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:101)[15:org.apache.felix.gogo.runtime:0.4.0] at org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:79)[15:org.apache.felix.gogo.runtime:0.4.0] at org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)[15:org.apache.felix.gogo.runtime:0.4.0] at org.apache.karaf.shell.console.jline.Console.run(Console.java:180)[9:org.apache.karaf.shell.console:2.0.0] at java.lang.Thread.run(Thread.java:662)[:1.6.0_23] Any ideas please? I'm really stuck now! Any help will be appreciated! Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/URGENT-Karaf-2-0-features-install-problem-cannot-install-ANY-feature-tp3459384p3459384.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: URGENT: Karaf 2.0 features:install problem cannot install ANY feature
Hi Raul, I'll do the posting tomorrow. Meanwhile I can not install any features including spring 3.5.2 which I added to the start up. I'mreally stuck on this. Any help on this would be gtratly appreciated. Matt -- View this message in context: http://karaf.922171.n3.nabble.com/URGENT-Karaf-2-0-features-install-problem-cannot-install-ANY-feature-tp3459384p3459499.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: URGENT: Karaf 2.0 features:install problem cannot install ANY feature
Hi Raul, Meant to say spring 3.5.0.RELEASE. Also if a bundle in the feature is missing package etc it does flag you. Its the final installation step. Also the spring feature does not have any version range! Thanks again Matt -- View this message in context: http://karaf.922171.n3.nabble.com/URGENT-Karaf-2-0-features-install-problem-cannot-install-ANY-feature-tp3459384p3459505.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: URGENT: Karaf 2.0 features:install problem cannot install ANY feature
Hi Willem, Thank you the reply. But it makes me a little sad! None of the features intall. Looks like I have to install everything manually. Do still love Karaf though. Oh Boy, the beauty of IBM! Matt On Oct 27, 2011 8:21 PM, Willem [via Karaf] ml-node+s922171n3459765...@n3.nabble.com wrote: Hi Matt, I'm afraid you have to install the spring 3.x feature yourself, maybe you can add a custom feature and let karaf load it for you. On Fri Oct 28 07:24:11 2011, Matt Madhavan wrote: Hi Raul, Meant to say spring 3.5.0.RELEASE. Also if a bundle in the feature is missing package etc it does flag you. Its the final installation step. Also the spring feature does not have any version range! Thanks again Matt -- View this message in context: http://karaf.922171.n3.nabble.com/URGENT-Karaf-2-0-features-install-problem-cannot-install-ANY-feature-tp3459384p3459505.html Sent from the Karaf - User mailing list archive at Nabble.com. -- Willem -- FuseSource Web: http://www.fusesource.com Blog:http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang -- If you reply to this email, your message will be added to the discussion below: http://karaf.922171.n3.nabble.com/URGENT-Karaf-2-0-features-install-problem-cannot-install-ANY-feature-tp3459384p3459765.html To unsubscribe from URGENT: Karaf 2.0 features:install problem cannot install ANY feature, click herehttp://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=3459384code=bWF0dG1hZGhhdmFuQGdtYWlsLmNvbXwzNDU5Mzg0fDEwMzM0OTkxMDE=. -- View this message in context: http://karaf.922171.n3.nabble.com/URGENT-Karaf-2-0-features-install-problem-cannot-install-ANY-feature-tp3459384p3459801.html Sent from the Karaf - User mailing list archive at Nabble.com.
Error Karaf 2.0 - No feature named 'spring' with version '[3,4)' available
Hello, I'm trying to install Camel in Karaf 2.0. I'm getting the error when I do *features:install camel* /Error executing command: No feature named 'spring' with version '[3,4)' available / I have spring feature 3.0.5 installed! [installed ] [3.0.5.RELEASE ] spring karaf-2.0.0 Any ideas please? Thanks in advance! Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Error-Karaf-2-0-No-feature-named-spring-with-version-3-4-available-tp3456296p3456296.html Sent from the Karaf - User mailing list archive at Nabble.com.
Customizing KARAF with my own version of Equinox/Aries/JPA etc
Hello, My client's target platform is IBM WAS(EQUINOX) and the development tool is IBM RAD. Its almost impossible to develop in RAD/WAS - Each BLA/ASSET deploy of EBA takes around 15 mns where us a hot deploy in Karaf takes only seconds! Thanks to Andreas I have become a big fan of KARAF. I have introduced it here and the developers like it. My development process I'm proposing involves using Eclipse/KARAF as a development tools and do the final deploy to WAS. I want to customize the KARAF so that it looks as close to WAS's Equinox. I want to use the following bundles/framework in kARAF! 1. Equinox (from IBM WAS) 2. Aries bundles (proabably 0.1.x :( ) 3. OpenJPA bundles Any ideas please? Thanks in advance! Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Customizing-KARAF-with-my-own-version-of-Equinox-Aries-JPA-etc-tp3424943p3424943.html Sent from the Karaf - User mailing list archive at Nabble.com.
Customizing KARAF with my own version of Equinox/Aries/JPA etc
Hello, My client's target platform is IBM WAS(EQUINOX) and the development tool is IBM RAD. Its almost impossible to develop in RAD/WAS - Each BLA/ASSET deploy of EBA takes around 15 mns where us a hot deploy in Karaf takes only seconds! Thanks to Andreas I have become a big fan of KARAF. I have introduced it here and the developers like it. My development process I'm proposing involves using Eclipse/KARAF as a development tools and do the final deploy to WAS. I want to customize the KARAF so that it looks as close to WAS's Equinox. I want to use the following bundles/framework in kARAF! 1. Equinox (from IBM WAS) 2. Aries bundles (proabably 0.1.x :( ) 3. OpenJPA bundles Any ideas please? Thanks in advance! Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Customizing-KARAF-with-my-own-version-of-Equinox-Aries-JPA-etc-tp3424947p3424947.html Sent from the Karaf - User mailing list archive at Nabble.com.
Camel Active MQ Queue Stopping polling - Make it eent driven
Hello, Please bear with me as I'm new to Camel. I have a my camel snippet as follows: camelContext xmlns=http://camel.apache.org/schema/blueprint; route id=in-bound autoStartup=true descriptionCamel In-Bound Route/description from uri=activemq:example.A/ to uri=bean:processMsgService?method=processmsg/ /route route id=out-bound autoStartup=true descriptionCamel Out-Bound Route/description from uri=bean:processMsgService?method=processmsg/ to uri=activemq:example.B/ /route /camelContext Event when I do not send any message the bean/method *uri=bean:processMsgService?method=processmsg* gets invoked periodically. how do I stop this? Looks like activemq:example.A keeps producing null msgs or the method above always called. Any help will be appreciated Thanks in advance! Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Camel-Active-MQ-Queue-Stopping-polling-Make-it-eent-driven-tp3419564p3419564.html Sent from the Karaf - User mailing list archive at Nabble.com.
Camel - ActiveMQ - Not getting teply back! Missing configuration?
Hello, I have my Queues configured as follows: camelContext id=cnBDCamelContext xmlns=http://camel.apache.org/schema/blueprint; route id=in-bound autoStartup=true descriptionCamel In-Bound Route/description from uri=activemq:TestHarness.A/ to uri=bean:processMsgService?method=processmsg/ /route /camelContext I'm sending an object msg as follows: ProducerTemplate template = camelContext.createProducerTemplate(); Transfer reply = (Transfer) template.requestBody(activemq:TestHarness.A, transfer); The message reaches the bean. The bean just returns the object (transfer). But I'm not receiving any thing back (reply!). It times out! What am I doing wrong? Thanks in advance! Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Camel-ActiveMQ-Not-getting-teply-back-Missing-configuration-tp3420369p3420369.html Sent from the Karaf - User mailing list archive at Nabble.com.
KARAF - SCA/Tuscany/ActiveMq binding example
Hello, Has any one point me to an OSGi/SCA/ActiveMQ binding example? Has any one done it? I'm looking to invoke an OSGi call upon receiving a msg from activemq. If not I'm happy with an ActiveMQ example running inside KARAF where upon receiving a msg from an ActiveMQ(JMS) queue invoke an OSGi service! Any help regarding this will be appreciated! Thanks in advance! Matt -- View this message in context: http://karaf.922171.n3.nabble.com/KARAF-SCA-Tuscany-ActiveMq-binding-example-tp3410784p3410784.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: KARAF - SCA/Tuscany/ActiveMq binding example
H Achim, Thank you very much for the reply! My client's run time is WAS/Equinox with SCA bindings for JMS/MDB. But developing any thing using RAD/WAS is a nightmare! So I'm trying to do as much development as possible using RAD(Juat the ecliose_ with KARAF and at the same time simulate the end environtment which is EQUINOX/SCA/BluePrint/JPA. But mean while it looks like except for a SCA (using Camel) I can develop/test much of the work in KARAF (which I really like it and the other developers getting hooked on to it after getting kind of burnt by WAD/RAD). So meanehile I'm looking at it. But at this point I'm pressed for time. Can you or some one else point me to come good example for the scenerio you mention above? active mq picking up a message and invoking a blueprint service - This is exactly what will happen in prod - some magic sending a JMS message any the starter bundle/bean with an onMessage method invoking an OSGi service! The only thing is instead of SCA I would use Camel at dev time for the invocation magic! So any example/doc please? Camel/activemq/onmessage/blueprint service invocation? I appreciate in advance! Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/KARAF-SCA-Tuscany-ActiveMq-binding-example-tp3410784p3411055.html Sent from the Karaf - User mailing list archive at Nabble.com.
Hi Charles - Steps to deploy/provision EBA in KARAF
Hi Charles, You had mentioned that you were able to deploy an EBA successfully to KARAF. Can you please share the steps you performed to install the EBA? I see the command to provision bundles and features but I do not see the command to install the EBA. I did enable the Airies features before I dropped the EBA in the deploy folder. I have deployed the EBA successfully with the same Aires bundles in Equinox/Felix using both PAX EXAM and stand alone Felix container. I'm not sure how to do the same in Karaf! Thanks in advance! Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Hi-Charles-Steps-to-deploy-provision-EBA-in-KARAF-tp3394140p3394140.html Sent from the Karaf - User mailing list archive at Nabble.com.
Hi Johan - Regarding signing the Apache contributor paperwork
Hi Johan, In response your reply as below: /Matt, Since you are a person that we've noticed. You are active, post really good questions and provide really good feedback - would you mind helping us in signing the Apache contributor paperwork and possibly helping us fix up the Jira? Thank you! / Its my honour being invited to the Apache Family. Please note that even though I have been using open source for a long time I have never contributed back. I do not have any experience. I would love to get involved. But I need some help in the beginning. Some pointers, some guidelines to get me started. I have been in conversation with Andreas regarding this. Andreas is going to send me some pointers/guidlines as well. I would like get involved in some thing small to start with and get going much further as I gain more insights. Please let me know I can I get involved slowly with out biting too much in the beginning. I would like to be useful. Thanks for the invite! Matt G. Madhavan -- View this message in context: http://karaf.922171.n3.nabble.com/Hi-Johan-Regarding-signing-the-Apache-contributor-paperwork-tp3383212p3383212.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: EBA and Karaf - Can I install an EBA to KARAF
Hi Charles, Can you please share the steps you performed to install the EBA? I see the command to install bundles and features but I do not see the command to install the EBA. I did enable the Airies features before I dropped the EBA in the deploy folder. I have deployed the EBA successfully with the same Aires bundles in Equinox/Felix using both PAX EXAM and stand alone Felix container. I'm not sure how to do the same in Karaf! Thanks in advance! Matt -- View this message in context: http://karaf.922171.n3.nabble.com/EBA-and-Karaf-Can-I-install-an-EBA-to-KARAF-tp3377768p3383222.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: KARAF - Long command problem(Can I wrap a command)
Hi Andreas, Can you please further explain what you mean by this one? You mean adding Felix Console? Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/KARAF-Long-command-problem-Can-I-wrap-a-command-tp3373275p3376479.html Sent from the Karaf - User mailing list archive at Nabble.com.
Queations On Child Instances - likely scenerios and Uses
Hello, Sorry bear with me am just beginning to grasp the usefulness of Karaf! I have some questions on Karaf! When under what situations you would want to create child instances. when is it useful? Can some one give me some info on this one? I'm looking for some likely scenerios! Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Queations-On-Child-Instances-likely-scenerios-and-Uses-tp3377626p3377626.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Child Instances - Webconsole http port numbers?
PLEASE IGNORE THIS ONE! I HAVE FIGURED THIS ONE OUT! I had to create a file called *etc/org.ops4j.pax.web.cfg* and have the prop org.osgi.service.http.port=8181 Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Child-Instances-Webconsole-http-port-numbers-tp3377692p3377718.html Sent from the Karaf - User mailing list archive at Nabble.com.
KARAF - Long command problem(Can I wrap a command)
Hello, I have a long command as follows: features:addUrl mvn:com.company.what.is.xservice.features/com.company.what.is.xservice.features/1.0.0.M1-SNAPSHOT/xml/features As you can see its long. And it exceeds my command prompts length. When I run this command the command gets chopped. Is there a workaround for this like command wrapping to a new line? Is increasing my window buffer my only option? Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/KARAF-Long-command-problem-Can-I-wrap-a-command-tp3373275p3373275.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: KARAF - Long command problem(Can I wrap a command)
Hi JB, yes I'm on windows! Will wait for 2.2.4! Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/KARAF-Long-command-problem-Can-I-wrap-a-command-tp3373275p3373378.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Not able to connect to Child Instance
Hello, Any one got some ideas for me here? I'm still not able to connect to the Child instance! Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Not-able-to-connect-to-Child-Instance-tp3367355p3370083.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Not able to connect to Child Instance
Hi JB, Its 2.2.3 and windows XP. Also the following is the stack trace from the log file: Thanks Matt 2011-09-25 14:59:49,718 | INFO | l Console Thread | Console | araf.shell.console.jline.Console 236 | 40 - org.apache.karaf.shell.console - 2.2.3 | Exception caught while executing command org.apache.sshd.common.RuntimeSshException: Failed to get the session. at org.apache.sshd.client.future.DefaultConnectFuture.getSession(DefaultConnectFuture.java:43)[14:sshd-core:0.5.0] at org.apache.karaf.shell.ssh.SshAction.doExecute(SshAction.java:111)[17:org.apache.karaf.shell.ssh:2.2.3] at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:79)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.karaf.admin.command.ConnectCommand.doExecute(ConnectCommand.java:56)[16:org.apache.karaf.admin.command:2.2.3] at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:79)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.karaf.shell.console.jline.Console.run(Console.java:218)[40:org.apache.karaf.shell.console:2.2.3] at java.lang.Thread.run(Thread.java:662)[:1.6.0_23] Caused by: java.net.ConnectException: Connection refused: no further information at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.6.0_23] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)[:1.6.0_23] at org.apache.mina.transport.socket.nio.NioSocketConnector.finishConnect(NioSocketConnector.java:223)[29:org.apache.mina.core:2.0.1] at org.apache.mina.transport.socket.nio.NioSocketConnector.finishConnect(NioSocketConnector.java:45)[29:org.apache.mina.core:2.0.1] -- View this message in context: http://karaf.922171.n3.nabble.com/Not-able-to-connect-to-Child-Instance-tp3367355p3367410.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Not able to connect to Child Instance
Hi JB, Its 2.2.3 and windows XP. Also the following is the stack trace from the log file: Thanks Matt 2011-09-25 14:59:49,718 | INFO | l Console Thread | Console | araf.shell.console.jline.Console 236 | 40 - org.apache.karaf.shell.console - 2.2.3 | Exception caught while executing command org.apache.sshd.common.RuntimeSshException: Failed to get the session. at org.apache.sshd.client.future.DefaultConnectFuture.getSession(DefaultConnectFuture.java:43)[14:sshd-core:0.5.0] at org.apache.karaf.shell.ssh.SshAction.doExecute(SshAction.java:111)[17:org.apache.karaf.shell.ssh:2.2.3] at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:79)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.karaf.admin.command.ConnectCommand.doExecute(ConnectCommand.java:56)[16:org.apache.karaf.admin.command:2.2.3] at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:79)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.karaf.shell.console.jline.Console.run(Console.java:218)[40:org.apache.karaf.shell.console:2.2.3] at java.lang.Thread.run(Thread.java:662)[:1.6.0_23] Caused by: java.net.ConnectException: Connection refused: no further information at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.6.0_23] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)[:1.6.0_23] at org.apache.mina.transport.socket.nio.NioSocketConnector.finishConnect(NioSocketConnector.java:223)[29:org.apache.mina.core:2.0.1] at org.apache.mina.transport.socket.nio.NioSocketConnector.finishConnect(NioSocketConnector.java:45)[29:org.apache.mina.core:2.0.1] -- View this message in context: http://karaf.922171.n3.nabble.com/Not-able-to-connect-to-Child-Instance-tp3367355p3367411.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Not able to connect to Child Instance
Hi JB, Its 2.2.3 and windows XP. Also the following is the stack trace from the log file: Thanks Matt 2011-09-25 14:59:49,718 | INFO | l Console Thread | Console | araf.shell.console.jline.Console 236 | 40 - org.apache.karaf.shell.console - 2.2.3 | Exception caught while executing command org.apache.sshd.common.RuntimeSshException: Failed to get the session. at org.apache.sshd.client.future.DefaultConnectFuture.getSession(DefaultConnectFuture.java:43)[14:sshd-core:0.5.0] at org.apache.karaf.shell.ssh.SshAction.doExecute(SshAction.java:111)[17:org.apache.karaf.shell.ssh:2.2.3] at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:79)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.karaf.admin.command.ConnectCommand.doExecute(ConnectCommand.java:56)[16:org.apache.karaf.admin.command:2.2.3] at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:79)[40:org.apache.karaf.shell.console:2.2.3] at org.apache.karaf.shell.console.jline.Console.run(Console.java:218)[40:org.apache.karaf.shell.console:2.2.3] at java.lang.Thread.run(Thread.java:662)[:1.6.0_23] Caused by: java.net.ConnectException: Connection refused: no further information at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[:1.6.0_23] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567)[:1.6.0_23] at org.apache.mina.transport.socket.nio.NioSocketConnector.finishConnect(NioSocketConnector.java:223)[29:org.apache.mina.core:2.0.1] at org.apache.mina.transport.socket.nio.NioSocketConnector.finishConnect(NioSocketConnector.java:45)[29:org.apache.mina.core:2.0.1] -- View this message in context: http://karaf.922171.n3.nabble.com/Not-able-to-connect-to-Child-Instance-tp3367355p3367412.html Sent from the Karaf - User mailing list archive at Nabble.com.
Question regarding Karaf features and configuration
Hello, I have asked this question couple of times bu I guess I'm not making my self clear, and so far I did not get the answer I was looking for. I have an installation of Karaf. I certain feature urls and enabled them. I also enabled some the builtin features. I also installed cetain bundles like debry etc. I want to replicate this setup to other developers/other installations of Karaf. Where does Karaf store my changes? I cannot find it in any folder. Can some one point me to this location please so that I can replicate this set up by just copying this changes. Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Question-regarding-Karaf-features-and-configuration-tp3367673p3367673.html Sent from the Karaf - User mailing list archive at Nabble.com.
Karaf - Bundles/features and configurations
Hello, I have started karaf successfully and also installed some features as well. I would like to know where does Karaf maintain the bundles/features configuration that its currently configured. (List of currently installed features and bundles). I looked at the maven repo and also at the etc folder. I cannot find it. Can someone point me to the right document on this one? Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-Bundles-features-and-configurations-tp3347026p3347026.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Karaf - Bundles/features and configurations
Hi Achim, Thanks for the reply! Also where does Karaf keep track of the features that are installed including the features I installed and the bundles I installed as well. I'm now testing KARAF as a viable development tool (And am starting to love it). I would like to replicate the same configuration that I have in other developers machines as well. Any ideas? Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-Bundles-features-and-configurations-tp3347026p3347196.html Sent from the Karaf - User mailing list archive at Nabble.com.
dev:watch - Frequency
Hello, If I want to watch a bundle using dev:watch, whats the frequency that the bundle will be scanned from mvn repo (local)? Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/dev-watch-Frequency-tp3345520p3345520.html Sent from the Karaf - User mailing list archive at Nabble.com.
Features/bundles for OpenJPA/JTA
Hello, I'm new to Karaf! I'm trying to port on of my app that uses Aries/OpenJPA/derby/JTA trasaction etc. I have tested this successfully using pax:provision in Felix container. I'm having some issues with KARAF. Looks like KARAF already has bunch of bundles installed like JTA/JNDI/JPA etc. My datasource bundle resolves ok (Embedded Derby). But when I install my persistence bundle it gets activate but does no create any service. The log says as follows: 2011-09-16 14:38:57,375 | ERROR | rint Extender: 2 | BlueprintContainerImpl | ntainer.BlueprintContainerImpl$1 293 | 9 - org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint container for bundle itso.bank.persistence due to unresolved dependencies [(((*org.apache.aries.jpa.proxy.factory*=true)(osgi.unit.name=itso.bank.persistence))(objectClass=javax.persistence.EntityManagerFactory))] java.util.concurrent.TimeoutException at org.apache.aries.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:287)[9:org.apache.aries.blueprint:0.3.1] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_23] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_23] at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_23] Any ideas please? Thanks in advance! Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Features-bundles-for-OpenJPA-JTA-tp3342895p3342895.html Sent from the Karaf - User mailing list archive at Nabble.com.
Kara - Bundles needed for the OpenJPA/JAT/Datasource/persistence
Hello, Can some one point me to the correct bundles I need to deploy to KARAF to successfull deploy a persistence bundles in addtion to the features that are already installed in KARAF (2.x) Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Kara-Bundles-needed-for-the-OpenJPA-JAT-Datasource-persistence-tp3342916p3342916.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Aries and Karaf
Hello, I'm facing similar issues my self. I have all the required bundles from the Blog I tests, but I persistence bundle never starts. Does anyone have a list of bundles/features to start the Aries Bog example in KARAF? Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/Aries-and-Karaf-tp2836655p3343319.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: KARAF with Nexus and maven and firewall Issues
HI Freeman, Will do that. But my question is should n't Karaf be pointing to my local maven repo first? And my local maven repo has the settings.xml pointing to our client's Nexus. That is how all the maven build worked for us. So was PaxRunner/PaxExam etc! It looks like Karaf does not even recognize my local maven repo! What happens when there is no Nexus and I have just plain Maven. I tried this set up also(by removing the settings.xml). It did not work even in that case! Any ideas? Thanks in advance! Matt -- View this message in context: http://karaf.922171.n3.nabble.com/KARAF-with-Nexus-and-maven-and-firewall-Issues-tp3299753p3301597.html Sent from the Karaf - User mailing list archive at Nabble.com.
KARAF with Nexus and maven and firewall Issues
Hello, I'm sitting behind a firewall. My maven .m2/settings.xml is pointing to our Nexus server Looks like mvn URL is not working properly! Every command I issue breaks. Any ideas? karaf@root features:addurl mvn:org.apache.camel/camel-example-osgi/2.7.0/xml/features Could not add Feature Repository: *java.lang.RuntimeException: URL [mvn:org.apache.camel/camel-example-osgi/2.7.0/xml/features] could not be resolved. *karaf@root karaf@root features:install webconsole *Error executing command: URL [mvn:org.apache.geronimo.specs/geronimo-activation_1.1_spec/1.1] could not be resolved. *karaf@root Thanks in advance! Matt -- View this message in context: http://karaf.922171.n3.nabble.com/KARAF-with-Nexus-and-maven-and-firewall-Issues-tp3299753p3299753.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: KARAF with Nexus and maven and firewall Issues
Hi, yes I can run Maven build from command line or using m2eclipse just fine! Only Karaf seems to have this issue. I use karaf 2.2.2 Thanks Matt -- View this message in context: http://karaf.922171.n3.nabble.com/KARAF-with-Nexus-and-maven-and-firewall-Issues-tp3299753p3299868.html Sent from the Karaf - User mailing list archive at Nabble.com.