Re: 3.0.1 snapshot : Unable to connect to container using bin/client or ssh

2014-07-15 Thread sprinz
I found the solution. It had nothing to do with ssh itself.

We have build a custom distribution and put a custom /bin/karaf file in
filtered-resources. Our build server builds this custom distribution and
installs it on an external system.
The problem was, that the build server replaced the JAVA_HOME variable in
/bin/karaf with a fixed java directory. This directory doesn't exist on the
external system, which produced the error.

Thx for your help and time!
Regards,
sprinz



--
View this message in context: 
http://karaf.922171.n3.nabble.com/3-0-1-snapshot-Unable-to-connect-to-container-using-bin-client-or-ssh-tp4031780p4034220.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: 3.0.1 snapshot : Unable to connect to container using bin/client or ssh

2014-07-15 Thread Jean-Baptiste Onofré

Thanks for the update.

As I wasn't able to reproduce your issue, I suspected something related 
to your environment ;)


Regards
JB

On 07/15/2014 09:53 AM, sprinz wrote:

I found the solution. It had nothing to do with ssh itself.

We have build a custom distribution and put a custom /bin/karaf file in
filtered-resources. Our build server builds this custom distribution and
installs it on an external system.
The problem was, that the build server replaced the JAVA_HOME variable in
/bin/karaf with a fixed java directory. This directory doesn't exist on the
external system, which produced the error.

Thx for your help and time!
Regards,
sprinz



--
View this message in context: 
http://karaf.922171.n3.nabble.com/3-0-1-snapshot-Unable-to-connect-to-container-using-bin-client-or-ssh-tp4031780p4034220.html
Sent from the Karaf - User mailing list archive at Nabble.com.



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: Karaf 2.3.5 Set the log Level programmatically

2014-07-15 Thread xav
Hi JB,

Thanks, I used LogService, it's works.

Thanks for your help.

Regards

Xav



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-2-3-5-Set-the-log-Level-programmatically-tp4034161p4034222.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Karaf 2.3.5 Set the log Level programmatically

2014-07-15 Thread Jean-Baptiste Onofré

Hi Xav,

no problem, we are dedicated for you guys ;)

Regards
JB

On 07/15/2014 12:15 PM, xav wrote:

Hi JB,

Thanks, I used LogService, it's works.

Thanks for your help.

Regards

Xav



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-2-3-5-Set-the-log-Level-programmatically-tp4034161p4034222.html
Sent from the Karaf - User mailing list archive at Nabble.com.



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Can I use a Karaf Feature as my Maven dependencies somehow?

2014-07-15 Thread David Bosschaert
Hi all,

Just wondering whether this is possible. I'm using a Karaf feature at
runtime and want to make sure that at build time I'm picking up all
the dependencies exactly like they are in the feature (i.e. same
bundles at compile time as at runtime).

So I was wondering is there a way to use a Karaf feature as some sort
of a composite dependency in Maven?

Thanks,

David


Re: Can I use a Karaf Feature as my Maven dependencies somehow?

2014-07-15 Thread Jean-Baptiste Onofré

Hi David,

the features-maven-plugin/karaf-maven-plugin, with the 
add-features-to-repo resolves the features and populate a system repo 
with bundles.


Regards
JB

On 07/15/2014 06:46 PM, David Bosschaert wrote:

Hi all,

Just wondering whether this is possible. I'm using a Karaf feature at
runtime and want to make sure that at build time I'm picking up all
the dependencies exactly like they are in the feature (i.e. same
bundles at compile time as at runtime).

So I was wondering is there a way to use a Karaf feature as some sort
of a composite dependency in Maven?

Thanks,

David



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: Can I use a Karaf Feature as my Maven dependencies somehow?

2014-07-15 Thread David Bosschaert
Thanks JB!
This is useful, but it doesn't really put the features in my maven
dependency tree, AFAICS.
What I'm looking for is a way to simply refer to a Karaf feature
instead of specifying dependency entries in my pom. So that I'm sure
that what I'm building with maven has the same dependencies as what is
provided by the feature...

Cheers,

David

On 15 July 2014 18:10, Jean-Baptiste Onofré j...@nanthrax.net wrote:
 Hi David,

 the features-maven-plugin/karaf-maven-plugin, with the add-features-to-repo
 resolves the features and populate a system repo with bundles.

 Regards
 JB


 On 07/15/2014 06:46 PM, David Bosschaert wrote:

 Hi all,

 Just wondering whether this is possible. I'm using a Karaf feature at
 runtime and want to make sure that at build time I'm picking up all
 the dependencies exactly like they are in the feature (i.e. same
 bundles at compile time as at runtime).

 So I was wondering is there a way to use a Karaf feature as some sort
 of a composite dependency in Maven?

 Thanks,

 David


 --
 Jean-Baptiste Onofré
 jbono...@apache.org
 http://blog.nanthrax.net
 Talend - http://www.talend.com


Re: Can I use a Karaf Feature as my Maven dependencies somehow?

2014-07-15 Thread Jean-Baptiste Onofré
Oh ok. You can create a kar based on the features and reference the kar 
in dependency/.


Not sure it will work exactly as you expect.

Regards
JB

On 07/15/2014 07:15 PM, David Bosschaert wrote:

Thanks JB!
This is useful, but it doesn't really put the features in my maven
dependency tree, AFAICS.
What I'm looking for is a way to simply refer to a Karaf feature
instead of specifying dependency entries in my pom. So that I'm sure
that what I'm building with maven has the same dependencies as what is
provided by the feature...

Cheers,

David

On 15 July 2014 18:10, Jean-Baptiste Onofré j...@nanthrax.net wrote:

Hi David,

the features-maven-plugin/karaf-maven-plugin, with the add-features-to-repo
resolves the features and populate a system repo with bundles.

Regards
JB


On 07/15/2014 06:46 PM, David Bosschaert wrote:


Hi all,

Just wondering whether this is possible. I'm using a Karaf feature at
runtime and want to make sure that at build time I'm picking up all
the dependencies exactly like they are in the feature (i.e. same
bundles at compile time as at runtime).

So I was wondering is there a way to use a Karaf feature as some sort
of a composite dependency in Maven?

Thanks,

David



--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Re: Custom karaf.main.lock.Lock implementation - is it possible?

2014-07-15 Thread jhammer03
Thanks for the confirmation, JB.

I had newbishly/foolishly assumed that any jar dropped in the
$KARAF_HOME/lib directory would be auto-magically added to the classpath.
One of the things that tripped me up was the less-than-informative message:
Exception instantiating lock class..., which I was receiving from Karaf
when I started debugging.

I was able to get my class loaded by prefacing the name of my jar with
karaf-, and also by appending the name of the jar to the $CLASSPATH
variable in the $KARAF_HOME/bin/karaf script.

Thanks again,

- j




--
View this message in context: 
http://karaf.922171.n3.nabble.com/Custom-karaf-main-lock-Lock-implementation-is-it-possible-tp4034214p4034228.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Can I use a Karaf Feature as my Maven dependencies somehow?

2014-07-15 Thread Michael Täschner
Hi David,

I don't know if this if helpful for you:
In Servicemix (last checked with SMX 4.5) the features are generated
inside a separate module based on declarations in dependencyManagement
section of the pom. I use this to import the pom of this module into
my project to gain access to all dependencies declared inside the
servicemix features. Locally I can then pick and select the needed
dependencies without having to worry about the version. In combination
with the option in M2E you can see all inherited dependencies for your
local project/module.

Cheers,
Michael

2014-07-15 18:46 GMT+02:00 David Bosschaert david.bosscha...@gmail.com:
 Hi all,

 Just wondering whether this is possible. I'm using a Karaf feature at
 runtime and want to make sure that at build time I'm picking up all
 the dependencies exactly like they are in the feature (i.e. same
 bundles at compile time as at runtime).

 So I was wondering is there a way to use a Karaf feature as some sort
 of a composite dependency in Maven?

 Thanks,

 David


Re: Can I use a Karaf Feature as my Maven dependencies somehow?

2014-07-15 Thread Charlie Mordant
Hi David,
A good thing could be to declare all your feature's dependencies on the
feature's pom with an exclusion*/ on them.

Then, you can reference that features pom on your business module

Example:
* In the feature's pom
artIdfeatArtId/artId
depMngmt
depcom.mycom:mydep:${myversion}
excl*/excl
/dep
/depMngmt
depcom.mycom:mydep/dep
!-- You also have to list transitive ones...--

* In the feature:
feat myFeat
bundlemvn:com.mycom:mydep:${myversion}/bundle
/feat


* In your business module pom:
dep
mygroup:featArtId:xml:feature
/dep

That's a little work and overhead, but it works :).

Regards,


2014-07-15 21:04 GMT+02:00 Michael Täschner m.taesch...@gmail.com:

 Hi David,

 I don't know if this if helpful for you:
 In Servicemix (last checked with SMX 4.5) the features are generated
 inside a separate module based on declarations in dependencyManagement
 section of the pom. I use this to import the pom of this module into
 my project to gain access to all dependencies declared inside the
 servicemix features. Locally I can then pick and select the needed
 dependencies without having to worry about the version. In combination
 with the option in M2E you can see all inherited dependencies for your
 local project/module.

 Cheers,
 Michael

 2014-07-15 18:46 GMT+02:00 David Bosschaert david.bosscha...@gmail.com:
  Hi all,
 
  Just wondering whether this is possible. I'm using a Karaf feature at
  runtime and want to make sure that at build time I'm picking up all
  the dependencies exactly like they are in the feature (i.e. same
  bundles at compile time as at runtime).
 
  So I was wondering is there a way to use a Karaf feature as some sort
  of a composite dependency in Maven?
 
  Thanks,
 
  David




-- 
Charlie Mordant

Full OSGI/EE stack made with Karaf:
https://github.com/OsgiliathEnterprise/net.osgiliath.parent