Re: Multiple instances of Karaf on same host
Hey Triet, +1, Can you please create an issue for this problem? I'll include this change into the soon coming 2.2.1 release Thanks and kind regards, Andreas On Wed, Apr 20, 2011 at 3:37 AM, tm...@yahoo.com tm...@yahoo.com wrote: I observed that by default both 8080 and 8181 will be in used if starting karaf with http feature installed. This is because jetty default port is set to 8080 in jetty.xml and http org.osgi.service.http.port is set to 8181. I would expect only one of these 2 configurations to be used, but look like they listen on both ports. I verified that by setting the default port in jetty.xml to 8181. Then I observed only port 8181 was in used. - Triet -- View this message in context: http://karaf.922171.n3.nabble.com/Multiple-instances-of-Karaf-on-same-host-tp1997807p2840993.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Aries and Karaf
Hi Patrick, Karaf provide Enterprise feature which provide: - Aries JTA - Aires JPA - Aries JNDI - Aries EBA You can take a look on the features descriptor: http://repo2.maven.org/maven2/org/apache/karaf/assemblies/features/enterprise/2.2.0/enterprise-2.2.0-features.xml Regards JB On 04/19/2011 12:39 AM, Tario wrote: Hi, I've worked with OSGi before and would now like to use some of the OSGi enterprise features, like deploying eba and using jpa. I've found karaf and it makes a solid impression as a container (I especially like the out of the box OS integration). I'm currently using the standard osgi container (felix) but could also switch to equinox. I'd like to deploy the jpa example from apache aries on karaf. Is there any description what the required steps are? Karaf seems to already include some aries stuff, does it require some additional bundles for the example? Which ones? I've seen some discussions about the examples in google, but did not find a description what to do, to actually deploy the example. What is required to get eba files deployed in karaf? Does the jpa feature provide the necessary stuff for the aries jpa example? Thanks, Patrick -- View this message in context: http://karaf.922171.n3.nabble.com/Aries-and-Karaf-tp2836655p2836655.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Aries and Karaf
Hi JB, I did now install the features jpa and application-without-isolation. But if I copy the eba into the deploy folder, still nothing happens. It doesn't even generate any log entry in data/log/karaf.log What am I doing wrong? What is the right way to do this? Thanks, Patrick -- View this message in context: http://karaf.922171.n3.nabble.com/Aries-and-Karaf-tp2836655p2842541.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Aries and Karaf
You did right :) If you dropped the EBA into the deploy folder and nothing occurs, it means that there is no deployer for the EBA artifacts. The Aries bundles managing the EBA deployment is the deployment.management one. I'm not sure that it's a Karaf compliant deployer. I will make a try and raise an Aries Jira (with a Karaf deployer patch attached). Thanks Regards JB On 04/20/2011 02:45 PM, Tario wrote: Hi JB, I did now install the features jpa and application-without-isolation. But if I copy the eba into the deploy folder, still nothing happens. It doesn't even generate any log entry in data/log/karaf.log What am I doing wrong? What is the right way to do this? Thanks, Patrick -- View this message in context: http://karaf.922171.n3.nabble.com/Aries-and-Karaf-tp2836655p2842541.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Aries and Karaf
Hi, Can you check the log of karaf to see if Aries Application has generated some errors. Sometimes, this is a bit tricky to find them but eba application without should be deployed if all the required bundles are there ;-) Regards, Charles On 20/04/11 14:49, Jean-Baptiste Onofré wrote: You did right :) If you dropped the EBA into the deploy folder and nothing occurs, it means that there is no deployer for the EBA artifacts. The Aries bundles managing the EBA deployment is the deployment.management one. I'm not sure that it's a Karaf compliant deployer. I will make a try and raise an Aries Jira (with a Karaf deployer patch attached). Thanks Regards JB On 04/20/2011 02:45 PM, Tario wrote: Hi JB, I did now install the features jpa and application-without-isolation. But if I copy the eba into the deploy folder, still nothing happens. It doesn't even generate any log entry in data/log/karaf.log What am I doing wrong? What is the right way to do this? Thanks, Patrick -- View this message in context: http://karaf.922171.n3.nabble.com/Aries-and-Karaf-tp2836655p2842541.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Aries and Karaf
No log entries appear in data/log/karaf.log after copying the eba in the deploy folder. -- View this message in context: http://karaf.922171.n3.nabble.com/Aries-and-Karaf-tp2836655p2842911.html Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Aries and Karaf
Did you try to deploy an EBA example from Aries project ? If yes, can you tell me which one to allow us to make a test On Wed, Apr 20, 2011 at 4:07 PM, Tario patr...@tario.org wrote: No log entries appear in data/log/karaf.log after copying the eba in the deploy folder. -- View this message in context: http://karaf.922171.n3.nabble.com/Aries-and-Karaf-tp2836655p2842911.html Sent from the Karaf - User mailing list archive at Nabble.com.
Karaf shell problem with long lines
Hi, I'm experiencing some weird behavior using karaf shell command with terminal's macosx. When I tried to install a feature with a long line pasted inside one terminal window (with the size smaller than the copied line) I got a RuntimeException... See: I copied this from a text editor: features:addurl mvn:org.jbehave.osgi/jbehave-osgi-karaf-features/1.0-SNAPSHOT/xml/features and paste it on Karaf command shell... the text is truncated karaf@root features:addurl mvn:org.jbehave.osgi/jbehave-osgi-karaf-features/1.0-SNAPSHOT/xml/featur Could not add Feature Repository: java.lang.RuntimeException: URL [mvn:org.jbehave.osgi/jbehave-osgi-karaf-features/1.0-SNAPSHOT/xml/featur] could not be resolved. But if I enlarge the window size and try again, everything works ok... :-D Could this be a Terminal's or Karaf's problem ? cheers Cristiano
Re: Karaf shell problem with long lines
Yes, and that i've fixed those issues trunk and 2.2.x branch, though that's not released yet. On Wed, Apr 20, 2011 at 23:56, Cristiano Gavião cvgav...@gmail.com wrote: Hi, I'm experiencing some weird behavior using karaf shell command with terminal's macosx. When I tried to install a feature with a long line pasted inside one terminal window (with the size smaller than the copied line) I got a RuntimeException... See: I copied this from a text editor: features:addurl mvn:org.jbehave.osgi/jbehave-osgi-karaf-features/1.0-SNAPSHOT/xml/features and paste it on Karaf command shell... the text is truncated karaf@root features:addurl mvn:org.jbehave.osgi/jbehave-osgi-karaf-features/1.0-SNAPSHOT/xml/featur Could not add Feature Repository: java.lang.RuntimeException: URL [mvn:org.jbehave.osgi/jbehave-osgi-karaf-features/1.0-SNAPSHOT/xml/featur] could not be resolved. But if I enlarge the window size and try again, everything works ok... :-D Could this be a Terminal's or Karaf's problem ? cheers Cristiano -- Cheers, Guillaume Nodet Blog: http://gnodet.blogspot.com/ Open Source SOA http://fusesource.com Connect at CamelOne May 24-26 The Open Source Integration Conference http://camelone.com/
Re: Karaf shell problem with long lines
Hi Guillaume, thanks for the clarification cheers Cristiano On 20/04/11 19:07, Guillaume Nodet wrote: Yes, and that i've fixed those issues trunk and 2.2.x branch, though that's not released yet. On Wed, Apr 20, 2011 at 23:56, Cristiano Gaviãocvgav...@gmail.com wrote: Hi, I'm experiencing some weird behavior using karaf shell command with terminal's macosx. When I tried to install a feature with a long line pasted inside one terminal window (with the size smaller than the copied line) I got a RuntimeException... See: I copied this from a text editor: features:addurl mvn:org.jbehave.osgi/jbehave-osgi-karaf-features/1.0-SNAPSHOT/xml/features and paste it on Karaf command shell... the text is truncated karaf@root features:addurl mvn:org.jbehave.osgi/jbehave-osgi-karaf-features/1.0-SNAPSHOT/xml/featur Could not add Feature Repository: java.lang.RuntimeException: URL [mvn:org.jbehave.osgi/jbehave-osgi-karaf-features/1.0-SNAPSHOT/xml/featur] could not be resolved. But if I enlarge the window size and try again, everything works ok... :-D Could this be a Terminal's or Karaf's problem ? cheers Cristiano
Re: Looking for bundle service to download a maven artifact
Just want to follow up with this topic. Under Karaf URL class understands mvn url protocol out of the box. There is no need to implement URLStreamFactoryHandler Thanks -Dan On Tue, Apr 5, 2011 at 7:55 PM, Dan Tran dant...@gmail.com wrote: coolest. Thanks for all the helps -D On Tue, Apr 5, 2011 at 6:30 PM, Guillaume Nodet gno...@gmail.com wrote: Yes. From the karaf console just try: shell:cat mvn:org.apache.karaf.assemblies.features/standard/2.2.0-SNAPSHOT/xml/features It will work and it just creates a java.net.URL and display the content. On Wed, Apr 6, 2011 at 00:00, Dan Tran dant...@gmail.com wrote: umm, standard URL class understand karaf's maven specific url? Thanks -Dan On Tue, Apr 5, 2011 at 2:57 PM, Gert Vanthienen gert.vanthie...@gmail.com wrote: L.S., Since the mvn: URL handler is available to you when you're running your code inside the container, you should be able to just create a URL instance and read from its InputStream. Something like URL url = new URL(mvn:commons-codec/commons-codec/1.4) InputStream is = url.openConnection().getInputStream() // now read from the stream and write the bytes to a FileOutputStream Regards, Gert Vanthienen FuseSource Web: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ On Tue, Apr 5, 2011 at 7:46 AM, Dan Tran dant...@gmail.com wrote: I was hoping to to take advantage of the service that already aware of org.ops4j.pax.url.mvn.cfg -Dan On Mon, Apr 4, 2011 at 10:35 PM, Andreas Pieber anpie...@gmail.com wrote: hey dan, for that uc I am afraid the features service is not sufficient. I think it is best to directly take the aether libs. kind regards, Andreas On Apr 5, 2011 5:32 AM, Dan Tran dant...@gmail.com wrote: Hi Andreas, I just need to download any arbitrary artifact ( for example mvn:commons-codec/commons-codec/1.4 ), to a specify directory under karaf On Mon, Apr 4, 2011 at 8:15 PM, Andreas Pieber anpie...@gmail.com wrote: Hey Dan, I assume you're looking for org.apache.karaf.features.FeaturesService [1]. Simply add the following to your blueprint file to use it: reference id=featuresService interface=org.apache.karaf.features.FeaturesService / Hope this helps and kind regards, Andreas [1] http://svn.apache.org/repos/asf/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/FeaturesService.java On Tue, Apr 5, 2011 at 2:57 AM, Dan Tran dant...@gmail.com wrote: Hi Karaf can download and install features with bundles using mvn:xxx url. Does that interface ( service ) expose somewhere? so that I can download a given maven artifact into karaf's local disk space, to be processed later? Thanks for all the help. -Dan -- Cheers, Guillaume Nodet Blog: http://gnodet.blogspot.com/ Open Source SOA http://fusesource.com
Re: Aries and Karaf
I tried to deploy the blog jpa example. org.apache.aries.samples.blog.jpa.eba-0.3.eba Thanks, Patrick -- View this message in context: http://karaf.922171.n3.nabble.com/Aries-and-Karaf-tp2836655p2845110.html Sent from the Karaf - User mailing list archive at Nabble.com.