You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by David Jencks <da...@yahoo.com> on 2011/04/05 09:19:14 UTC

is minimal server complete?

I spent some time making the framework kar contents match better with the minimal server from the old style karaf assembly and think there might be missing bundles.  I'm hoping to convince everyone to move to the new style assemblies so I'm not concerned with actually fixing the old one but want to make sure that the following jars should be in the minimal server:

Here are the bits of the mvn dependency:tree I think are more correct than the old style karaf assembly contents:

[INFO] +- org.apache.karaf.shell:org.apache.karaf.shell.ssh:jar:3.0.0-SNAPSHOT:compile
[INFO] |  \- org.apache.sshd:sshd-core:jar:0.5.0:compile
[INFO] |     \- org.apache.mina:mina-core:jar:2.0.1:compile

sshd-core and mina-core are missing from the minimal assembly

[INFO] +- org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.0-SNAPSHOT:compile
[INFO] |  +- org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.4:compile
[INFO] |  \- org.apache.karaf.shell:org.apache.karaf.shell.obr:jar:3.0.0-SNAPSHOT:compile

bunderepository and karaf obr are missing from the minimal assembly.

Should these 4 jars be in the minimal server?

Other than this and a few config files I haven't sorted through yet the newer assemblies/apache-karaf-minimal appears to me to be the same as the old one.

thanks
david jencks

Re: is minimal server complete?

Posted by Ioannis Canellos <io...@gmail.com>.
Andreas here's how I imagine it would look:

    <feature name="webconsole" version="${project.version}">
        <feature version="${project.version}">webconsole-base</feature>

 <bundle>mvn:org.apache.karaf.webconsole/org.apache.karaf.webconsole.admin/${project.version}</bundle>

 <bundle>mvn:org.apache.karaf.webconsole/org.apache.karaf.webconsole.gogo/${project.version}</bundle>

 <bundle>mvn:org.apache.felix/org.apache.felix.webconsole.plugins.event/${felix.eventadmin-plugin.version}</bundle>
        <module>

 <bundle>mvn:org.apache.karaf.webconsole/org.apache.karaf.webconsole.features/${project.version}</bundle>
        </module>
    </feature>

We could declare it like this. I used an element instead of an attribute
because it could involve more bundles.

Its behaviour could be, to install all bundles and then try to install the
modules. If the module dependencies are not meet, then the module would be
left uninstalled till all its dependencies are meet.


On Tue, Apr 5, 2011 at 7:16 PM, Andreas Pieber <an...@gmail.com> wrote:

> TBH I'm a little bit curious how the structure of this would look like
> then? Sections in the features with "predefined" lables such as core
> and extension?
>
> Kind regards,
> Andreas
>
> On Tue, Apr 5, 2011 at 5:51 PM, Ioannis Canellos <io...@gmail.com>
> wrote:
> > I think that we need to make features a bit more dynamic. By dynamic I
> mean
> > to have a single feature that would install features-core by default and
> > features-management if all the dependencies are meet.
> > In the case that management bundles are not available at the time of
> > installation, we could have a listener that would listen when the
> management
> > bundles are installed and install the features-management bundles then.
> (I
> > hope that this wasn't very confusing).
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Tue, Apr 5, 2011 at 5:08 PM, Andreas Pieber <an...@gmail.com>
> wrote:
> >
> >> I'm just asking myself if it wouldn't be better to simply differ the
> >> features a little bit more having a features-core feature and a
> >> features-management feature. Right now this sounds much cleaner to me
> >> than defining optional parts with non-optional dependencies in one
> >> feature. WDYT?
> >>
> >> Kind regards,
> >> Andreas
> >>
> >> On Tue, Apr 5, 2011 at 11:28 AM, Guillaume Nodet <gn...@gmail.com>
> wrote:
> >> > Imho, the minimal distribution should be made as thin as possible.
> >> > SSH is optional, though some features of the Admin service won't work
> >> > if it's not installed.  The problem is that we have features with
> >> > optional parts that have non optional dependnecies and we haven't a
> >> > way to model that yet.
> >> >
> >> > For example, we could imagine installing the features-core bundle
> >> > without features-management, and only install features-management if
> >> > jmx has been installed.  I think without that, it's quite difficult to
> >> > really minimize the dependencies.
> >> >
> >> > On Tue, Apr 5, 2011 at 09:19, David Jencks <da...@yahoo.com>
> >> wrote:
> >> >> I spent some time making the framework kar contents match better with
> >> the minimal server from the old style karaf assembly and think there
> might
> >> be missing bundles.  I'm hoping to convince everyone to move to the new
> >> style assemblies so I'm not concerned with actually fixing the old one
> but
> >> want to make sure that the following jars should be in the minimal
> server:
> >> >>
> >> >> Here are the bits of the mvn dependency:tree I think are more correct
> >> than the old style karaf assembly contents:
> >> >>
> >> >> [INFO] +-
> >>
> org.apache.karaf.shell:org.apache.karaf.shell.ssh:jar:3.0.0-SNAPSHOT:compile
> >> >> [INFO] |  \- org.apache.sshd:sshd-core:jar:0.5.0:compile
> >> >> [INFO] |     \- org.apache.mina:mina-core:jar:2.0.1:compile
> >> >>
> >> >> sshd-core and mina-core are missing from the minimal assembly
> >> >>
> >> >> [INFO] +-
> >>
> org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.0-SNAPSHOT:compile
> >> >> [INFO] |  +-
> >> org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.4:compile
> >> >> [INFO] |  \-
> >>
> org.apache.karaf.shell:org.apache.karaf.shell.obr:jar:3.0.0-SNAPSHOT:compile
> >> >>
> >> >> bunderepository and karaf obr are missing from the minimal assembly.
> >> >>
> >> >> Should these 4 jars be in the minimal server?
> >> >>
> >> >> Other than this and a few config files I haven't sorted through yet
> the
> >> newer assemblies/apache-karaf-minimal appears to me to be the same as
> the
> >> old one.
> >> >>
> >> >> thanks
> >> >> david jencks
> >> >
> >> >
> >> >
> >> > --
> >> > Cheers,
> >> > Guillaume Nodet
> >> > ------------------------
> >> > Blog: http://gnodet.blogspot.com/
> >> > ------------------------
> >> > Open Source SOA
> >> > http://fusesource.com
> >> >
> >>
> >
> >
> >
> > --
> > *Ioannis Canellos*
> > *
> >  http://iocanel.blogspot.com
> >
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > Apache ServiceMix <http://servicemix.apache.org/>  Committer
> > *
> >
>



-- 
*Ioannis Canellos*
*
 http://iocanel.blogspot.com

Apache Karaf <http://karaf.apache.org/> Committer & PMC
Apache ServiceMix <http://servicemix.apache.org/>  Committer
*

Re: is minimal server complete?

Posted by Andreas Pieber <an...@gmail.com>.
TBH I'm a little bit curious how the structure of this would look like
then? Sections in the features with "predefined" lables such as core
and extension?

Kind regards,
Andreas

On Tue, Apr 5, 2011 at 5:51 PM, Ioannis Canellos <io...@gmail.com> wrote:
> I think that we need to make features a bit more dynamic. By dynamic I mean
> to have a single feature that would install features-core by default and
> features-management if all the dependencies are meet.
> In the case that management bundles are not available at the time of
> installation, we could have a listener that would listen when the management
> bundles are installed and install the features-management bundles then. (I
> hope that this wasn't very confusing).
>
>
>
>
>
>
>
>
>
> On Tue, Apr 5, 2011 at 5:08 PM, Andreas Pieber <an...@gmail.com> wrote:
>
>> I'm just asking myself if it wouldn't be better to simply differ the
>> features a little bit more having a features-core feature and a
>> features-management feature. Right now this sounds much cleaner to me
>> than defining optional parts with non-optional dependencies in one
>> feature. WDYT?
>>
>> Kind regards,
>> Andreas
>>
>> On Tue, Apr 5, 2011 at 11:28 AM, Guillaume Nodet <gn...@gmail.com> wrote:
>> > Imho, the minimal distribution should be made as thin as possible.
>> > SSH is optional, though some features of the Admin service won't work
>> > if it's not installed.  The problem is that we have features with
>> > optional parts that have non optional dependnecies and we haven't a
>> > way to model that yet.
>> >
>> > For example, we could imagine installing the features-core bundle
>> > without features-management, and only install features-management if
>> > jmx has been installed.  I think without that, it's quite difficult to
>> > really minimize the dependencies.
>> >
>> > On Tue, Apr 5, 2011 at 09:19, David Jencks <da...@yahoo.com>
>> wrote:
>> >> I spent some time making the framework kar contents match better with
>> the minimal server from the old style karaf assembly and think there might
>> be missing bundles.  I'm hoping to convince everyone to move to the new
>> style assemblies so I'm not concerned with actually fixing the old one but
>> want to make sure that the following jars should be in the minimal server:
>> >>
>> >> Here are the bits of the mvn dependency:tree I think are more correct
>> than the old style karaf assembly contents:
>> >>
>> >> [INFO] +-
>> org.apache.karaf.shell:org.apache.karaf.shell.ssh:jar:3.0.0-SNAPSHOT:compile
>> >> [INFO] |  \- org.apache.sshd:sshd-core:jar:0.5.0:compile
>> >> [INFO] |     \- org.apache.mina:mina-core:jar:2.0.1:compile
>> >>
>> >> sshd-core and mina-core are missing from the minimal assembly
>> >>
>> >> [INFO] +-
>> org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.0-SNAPSHOT:compile
>> >> [INFO] |  +-
>> org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.4:compile
>> >> [INFO] |  \-
>> org.apache.karaf.shell:org.apache.karaf.shell.obr:jar:3.0.0-SNAPSHOT:compile
>> >>
>> >> bunderepository and karaf obr are missing from the minimal assembly.
>> >>
>> >> Should these 4 jars be in the minimal server?
>> >>
>> >> Other than this and a few config files I haven't sorted through yet the
>> newer assemblies/apache-karaf-minimal appears to me to be the same as the
>> old one.
>> >>
>> >> thanks
>> >> david jencks
>> >
>> >
>> >
>> > --
>> > Cheers,
>> > Guillaume Nodet
>> > ------------------------
>> > Blog: http://gnodet.blogspot.com/
>> > ------------------------
>> > Open Source SOA
>> > http://fusesource.com
>> >
>>
>
>
>
> --
> *Ioannis Canellos*
> *
>  http://iocanel.blogspot.com
>
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> Apache ServiceMix <http://servicemix.apache.org/>  Committer
> *
>

Re: is minimal server complete?

Posted by Ioannis Canellos <io...@gmail.com>.
I think that we need to make features a bit more dynamic. By dynamic I mean
to have a single feature that would install features-core by default and
features-management if all the dependencies are meet.
In the case that management bundles are not available at the time of
installation, we could have a listener that would listen when the management
bundles are installed and install the features-management bundles then. (I
hope that this wasn't very confusing).









On Tue, Apr 5, 2011 at 5:08 PM, Andreas Pieber <an...@gmail.com> wrote:

> I'm just asking myself if it wouldn't be better to simply differ the
> features a little bit more having a features-core feature and a
> features-management feature. Right now this sounds much cleaner to me
> than defining optional parts with non-optional dependencies in one
> feature. WDYT?
>
> Kind regards,
> Andreas
>
> On Tue, Apr 5, 2011 at 11:28 AM, Guillaume Nodet <gn...@gmail.com> wrote:
> > Imho, the minimal distribution should be made as thin as possible.
> > SSH is optional, though some features of the Admin service won't work
> > if it's not installed.  The problem is that we have features with
> > optional parts that have non optional dependnecies and we haven't a
> > way to model that yet.
> >
> > For example, we could imagine installing the features-core bundle
> > without features-management, and only install features-management if
> > jmx has been installed.  I think without that, it's quite difficult to
> > really minimize the dependencies.
> >
> > On Tue, Apr 5, 2011 at 09:19, David Jencks <da...@yahoo.com>
> wrote:
> >> I spent some time making the framework kar contents match better with
> the minimal server from the old style karaf assembly and think there might
> be missing bundles.  I'm hoping to convince everyone to move to the new
> style assemblies so I'm not concerned with actually fixing the old one but
> want to make sure that the following jars should be in the minimal server:
> >>
> >> Here are the bits of the mvn dependency:tree I think are more correct
> than the old style karaf assembly contents:
> >>
> >> [INFO] +-
> org.apache.karaf.shell:org.apache.karaf.shell.ssh:jar:3.0.0-SNAPSHOT:compile
> >> [INFO] |  \- org.apache.sshd:sshd-core:jar:0.5.0:compile
> >> [INFO] |     \- org.apache.mina:mina-core:jar:2.0.1:compile
> >>
> >> sshd-core and mina-core are missing from the minimal assembly
> >>
> >> [INFO] +-
> org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.0-SNAPSHOT:compile
> >> [INFO] |  +-
> org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.4:compile
> >> [INFO] |  \-
> org.apache.karaf.shell:org.apache.karaf.shell.obr:jar:3.0.0-SNAPSHOT:compile
> >>
> >> bunderepository and karaf obr are missing from the minimal assembly.
> >>
> >> Should these 4 jars be in the minimal server?
> >>
> >> Other than this and a few config files I haven't sorted through yet the
> newer assemblies/apache-karaf-minimal appears to me to be the same as the
> old one.
> >>
> >> thanks
> >> david jencks
> >
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> > ------------------------
> > Open Source SOA
> > http://fusesource.com
> >
>



-- 
*Ioannis Canellos*
*
 http://iocanel.blogspot.com

Apache Karaf <http://karaf.apache.org/> Committer & PMC
Apache ServiceMix <http://servicemix.apache.org/>  Committer
*

Re: is minimal server complete?

Posted by Andreas Pieber <an...@gmail.com>.
I'm just asking myself if it wouldn't be better to simply differ the
features a little bit more having a features-core feature and a
features-management feature. Right now this sounds much cleaner to me
than defining optional parts with non-optional dependencies in one
feature. WDYT?

Kind regards,
Andreas

On Tue, Apr 5, 2011 at 11:28 AM, Guillaume Nodet <gn...@gmail.com> wrote:
> Imho, the minimal distribution should be made as thin as possible.
> SSH is optional, though some features of the Admin service won't work
> if it's not installed.  The problem is that we have features with
> optional parts that have non optional dependnecies and we haven't a
> way to model that yet.
>
> For example, we could imagine installing the features-core bundle
> without features-management, and only install features-management if
> jmx has been installed.  I think without that, it's quite difficult to
> really minimize the dependencies.
>
> On Tue, Apr 5, 2011 at 09:19, David Jencks <da...@yahoo.com> wrote:
>> I spent some time making the framework kar contents match better with the minimal server from the old style karaf assembly and think there might be missing bundles.  I'm hoping to convince everyone to move to the new style assemblies so I'm not concerned with actually fixing the old one but want to make sure that the following jars should be in the minimal server:
>>
>> Here are the bits of the mvn dependency:tree I think are more correct than the old style karaf assembly contents:
>>
>> [INFO] +- org.apache.karaf.shell:org.apache.karaf.shell.ssh:jar:3.0.0-SNAPSHOT:compile
>> [INFO] |  \- org.apache.sshd:sshd-core:jar:0.5.0:compile
>> [INFO] |     \- org.apache.mina:mina-core:jar:2.0.1:compile
>>
>> sshd-core and mina-core are missing from the minimal assembly
>>
>> [INFO] +- org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.0-SNAPSHOT:compile
>> [INFO] |  +- org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.4:compile
>> [INFO] |  \- org.apache.karaf.shell:org.apache.karaf.shell.obr:jar:3.0.0-SNAPSHOT:compile
>>
>> bunderepository and karaf obr are missing from the minimal assembly.
>>
>> Should these 4 jars be in the minimal server?
>>
>> Other than this and a few config files I haven't sorted through yet the newer assemblies/apache-karaf-minimal appears to me to be the same as the old one.
>>
>> thanks
>> david jencks
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>

Re: is minimal server complete?

Posted by Guillaume Nodet <gn...@gmail.com>.
Imho, the minimal distribution should be made as thin as possible.
SSH is optional, though some features of the Admin service won't work
if it's not installed.  The problem is that we have features with
optional parts that have non optional dependnecies and we haven't a
way to model that yet.

For example, we could imagine installing the features-core bundle
without features-management, and only install features-management if
jmx has been installed.  I think without that, it's quite difficult to
really minimize the dependencies.

On Tue, Apr 5, 2011 at 09:19, David Jencks <da...@yahoo.com> wrote:
> I spent some time making the framework kar contents match better with the minimal server from the old style karaf assembly and think there might be missing bundles.  I'm hoping to convince everyone to move to the new style assemblies so I'm not concerned with actually fixing the old one but want to make sure that the following jars should be in the minimal server:
>
> Here are the bits of the mvn dependency:tree I think are more correct than the old style karaf assembly contents:
>
> [INFO] +- org.apache.karaf.shell:org.apache.karaf.shell.ssh:jar:3.0.0-SNAPSHOT:compile
> [INFO] |  \- org.apache.sshd:sshd-core:jar:0.5.0:compile
> [INFO] |     \- org.apache.mina:mina-core:jar:2.0.1:compile
>
> sshd-core and mina-core are missing from the minimal assembly
>
> [INFO] +- org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.0-SNAPSHOT:compile
> [INFO] |  +- org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.4:compile
> [INFO] |  \- org.apache.karaf.shell:org.apache.karaf.shell.obr:jar:3.0.0-SNAPSHOT:compile
>
> bunderepository and karaf obr are missing from the minimal assembly.
>
> Should these 4 jars be in the minimal server?
>
> Other than this and a few config files I haven't sorted through yet the newer assemblies/apache-karaf-minimal appears to me to be the same as the old one.
>
> thanks
> david jencks



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Re: is minimal server complete?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Thanks David ;)

Regards
JB

On 04/05/2011 09:55 AM, David Jencks wrote:
> Thanks, I'll fix the dependencies to reflect this
>
> david jencks
>
> On Apr 5, 2011, at 12:28 AM, Ioannis Canellos wrote:
>
>> Hi David,
>>
>> I have worked on the minimal distribution and the idea behind it was to keep
>> it as minimal as possible (in terms of size).
>> If a user of the minimal distribution wished to use the ssh feature (which
>> was optional in the minimal distro) could always install it (and it
>> transitive dependencies) afterwards.
>>
>> So I will agree with JB that it makes sense that these bundles are missing
>> from the minimal distribution.
>>
>> On Tue, Apr 5, 2011 at 10:21 AM, Jean-Baptiste Onofré<jb...@nanthrax.net>wrote:
>>
>>> Hi David,
>>>
>>> Karaf can act as an OBR client. But it's optional. If no OBR are provided,
>>> Karaf doesn't use it.
>>> So, I think it's "normal" that OBR is not part of the minimal distribution.
>>>
>>> For sshd, it's the same. In a minimal distro, the users doesn't expect to
>>> have the SSH server started.
>>>
>>> My 0.02 cents :)
>>>
>>> Regards
>>> JB
>>>
>>>
>>> On 04/05/2011 09:19 AM, David Jencks wrote:
>>>
>>>> I spent some time making the framework kar contents match better with the
>>>> minimal server from the old style karaf assembly and think there might be
>>>> missing bundles.  I'm hoping to convince everyone to move to the new style
>>>> assemblies so I'm not concerned with actually fixing the old one but want to
>>>> make sure that the following jars should be in the minimal server:
>>>>
>>>> Here are the bits of the mvn dependency:tree I think are more correct than
>>>> the old style karaf assembly contents:
>>>>
>>>> [INFO] +-
>>>> org.apache.karaf.shell:org.apache.karaf.shell.ssh:jar:3.0.0-SNAPSHOT:compile
>>>> [INFO] |  \- org.apache.sshd:sshd-core:jar:0.5.0:compile
>>>> [INFO] |     \- org.apache.mina:mina-core:jar:2.0.1:compile
>>>>
>>>> sshd-core and mina-core are missing from the minimal assembly
>>>>
>>>> [INFO] +-
>>>> org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.0-SNAPSHOT:compile
>>>> [INFO] |  +-
>>>> org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.4:compile
>>>> [INFO] |  \-
>>>> org.apache.karaf.shell:org.apache.karaf.shell.obr:jar:3.0.0-SNAPSHOT:compile
>>>>
>>>> bunderepository and karaf obr are missing from the minimal assembly.
>>>>
>>>> Should these 4 jars be in the minimal server?
>>>>
>>>> Other than this and a few config files I haven't sorted through yet the
>>>> newer assemblies/apache-karaf-minimal appears to me to be the same as the
>>>> old one.
>>>>
>>>> thanks
>>>> david jencks
>>>>
>>>
>>
>>
>> --
>> *Ioannis Canellos*
>> *
>> http://iocanel.blogspot.com
>>
>> Apache Karaf<http://karaf.apache.org/>  Committer&  PMC
>> Apache ServiceMix<http://servicemix.apache.org/>   Committer
>> *
>

Re: is minimal server complete?

Posted by David Jencks <da...@yahoo.com>.
Thanks, I'll fix the dependencies to reflect this

david jencks

On Apr 5, 2011, at 12:28 AM, Ioannis Canellos wrote:

> Hi David,
> 
> I have worked on the minimal distribution and the idea behind it was to keep
> it as minimal as possible (in terms of size).
> If a user of the minimal distribution wished to use the ssh feature (which
> was optional in the minimal distro) could always install it (and it
> transitive dependencies) afterwards.
> 
> So I will agree with JB that it makes sense that these bundles are missing
> from the minimal distribution.
> 
> On Tue, Apr 5, 2011 at 10:21 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:
> 
>> Hi David,
>> 
>> Karaf can act as an OBR client. But it's optional. If no OBR are provided,
>> Karaf doesn't use it.
>> So, I think it's "normal" that OBR is not part of the minimal distribution.
>> 
>> For sshd, it's the same. In a minimal distro, the users doesn't expect to
>> have the SSH server started.
>> 
>> My 0.02 cents :)
>> 
>> Regards
>> JB
>> 
>> 
>> On 04/05/2011 09:19 AM, David Jencks wrote:
>> 
>>> I spent some time making the framework kar contents match better with the
>>> minimal server from the old style karaf assembly and think there might be
>>> missing bundles.  I'm hoping to convince everyone to move to the new style
>>> assemblies so I'm not concerned with actually fixing the old one but want to
>>> make sure that the following jars should be in the minimal server:
>>> 
>>> Here are the bits of the mvn dependency:tree I think are more correct than
>>> the old style karaf assembly contents:
>>> 
>>> [INFO] +-
>>> org.apache.karaf.shell:org.apache.karaf.shell.ssh:jar:3.0.0-SNAPSHOT:compile
>>> [INFO] |  \- org.apache.sshd:sshd-core:jar:0.5.0:compile
>>> [INFO] |     \- org.apache.mina:mina-core:jar:2.0.1:compile
>>> 
>>> sshd-core and mina-core are missing from the minimal assembly
>>> 
>>> [INFO] +-
>>> org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.0-SNAPSHOT:compile
>>> [INFO] |  +-
>>> org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.4:compile
>>> [INFO] |  \-
>>> org.apache.karaf.shell:org.apache.karaf.shell.obr:jar:3.0.0-SNAPSHOT:compile
>>> 
>>> bunderepository and karaf obr are missing from the minimal assembly.
>>> 
>>> Should these 4 jars be in the minimal server?
>>> 
>>> Other than this and a few config files I haven't sorted through yet the
>>> newer assemblies/apache-karaf-minimal appears to me to be the same as the
>>> old one.
>>> 
>>> thanks
>>> david jencks
>>> 
>> 
> 
> 
> -- 
> *Ioannis Canellos*
> *
> http://iocanel.blogspot.com
> 
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> Apache ServiceMix <http://servicemix.apache.org/>  Committer
> *


Re: is minimal server complete?

Posted by David Jencks <da...@yahoo.com>.
OK, I restored the transitive dependency o.a.k.shell.ssh >> sshd-core and removed the o.a.k.shell.ssh from the framework kar ( and thus the apache-karaf-minimal assembly) so all the bundles in minimal can start OK.

thanks
david jencks

On Apr 7, 2011, at 10:16 PM, Guillaume Nodet wrote:

> No, you're right.
> The SSH feature consists of o.a.karaf.shell.ssh, sshd-core and
> mina-core bundles as described in the features definition in the older
> branch:
>    http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/assemblies/features/standard/src/main/resources/features.xml?view=markup
> The whole SSH thing should be optional, but kinda required when using
> the AdminService for creating child instances.
> 
> On Fri, Apr 8, 2011 at 01:32, David Jencks <da...@yahoo.com> wrote:
>> I might have misunderstood you.  apache-karaf-3.0.0-SNAPSHOT/system/org/apache/karaf/shell/org.apache.karaf.shell.ssh/3.0.0-SNAPSHOT/org.apache.karaf.shell.ssh-3.0.0-SNAPSHOT.jar is present in the trunk "old" minimal assembly.  Based on this I assume it should work.  If it's not supposed to be there at all, I can just remove it from the "new" apache-karaf-minimal assembly and make the dependencies of org.apache.karaf.shell.ssh on sshd-core and mina compile scope rather than provided scope again.
>> 
>> I've been experimenting with trying to get the (new) apache-karaf-minimal assembly to fully start and I can't yet.  I'm wondering if sshd-core is actually optional.
>> 
>> In an assembly missing sshd-core and mina, you get an exception like this trying to start org.apache.karaf.shell.ssh (which I believe you are claiming should start, below)
>>  Unresolved constraint in bundle org.apache.karaf.shell.ssh [17]: Unable to resolve 17.0: missing requirement [17.0] package; (&(package=org.apache.sshd)(version>=0.5.0)(!(version>=1.0.0)))
>> 
>> I tried adding this to the Import-Package instructions:
>> 
>>                            org.apache.sshd.*;resolution:=optional,
>>                            org.apache.sshd.server.keyprovider;resolution:=optional,
>>                            org.apache.sshd.server.jaas;resolution:=optional,
>> 
>> 
>> in shell/ssh but now although the bundle itself starts the blueprint stuff fails (according to list -t 0).  I don't see any information about why.
>> 
>> This makes me think that sshd-core is currently a required bundle for any ssh functionality.  Am I missing something?
>> 
>> thanks
>> david jencks
>> 
>> 
>> On Apr 5, 2011, at 12:28 AM, Ioannis Canellos wrote:
>> 
>>> Hi David,
>>> 
>>> I have worked on the minimal distribution and the idea behind it was to keep
>>> it as minimal as possible (in terms of size).
>>> If a user of the minimal distribution wished to use the ssh feature (which
>>> was optional in the minimal distro) could always install it (and it
>>> transitive dependencies) afterwards.
>>> 
>>> So I will agree with JB that it makes sense that these bundles are missing
>>> from the minimal distribution.
>>> 
>>> On Tue, Apr 5, 2011 at 10:21 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:
>>> 
>>>> Hi David,
>>>> 
>>>> Karaf can act as an OBR client. But it's optional. If no OBR are provided,
>>>> Karaf doesn't use it.
>>>> So, I think it's "normal" that OBR is not part of the minimal distribution.
>>>> 
>>>> For sshd, it's the same. In a minimal distro, the users doesn't expect to
>>>> have the SSH server started.
>>>> 
>>>> My 0.02 cents :)
>>>> 
>>>> Regards
>>>> JB
>>>> 
>>>> 
>>>> On 04/05/2011 09:19 AM, David Jencks wrote:
>>>> 
>>>>> I spent some time making the framework kar contents match better with the
>>>>> minimal server from the old style karaf assembly and think there might be
>>>>> missing bundles.  I'm hoping to convince everyone to move to the new style
>>>>> assemblies so I'm not concerned with actually fixing the old one but want to
>>>>> make sure that the following jars should be in the minimal server:
>>>>> 
>>>>> Here are the bits of the mvn dependency:tree I think are more correct than
>>>>> the old style karaf assembly contents:
>>>>> 
>>>>> [INFO] +-
>>>>> org.apache.karaf.shell:org.apache.karaf.shell.ssh:jar:3.0.0-SNAPSHOT:compile
>>>>> [INFO] |  \- org.apache.sshd:sshd-core:jar:0.5.0:compile
>>>>> [INFO] |     \- org.apache.mina:mina-core:jar:2.0.1:compile
>>>>> 
>>>>> sshd-core and mina-core are missing from the minimal assembly
>>>>> 
>>>>> [INFO] +-
>>>>> org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.0-SNAPSHOT:compile
>>>>> [INFO] |  +-
>>>>> org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.4:compile
>>>>> [INFO] |  \-
>>>>> org.apache.karaf.shell:org.apache.karaf.shell.obr:jar:3.0.0-SNAPSHOT:compile
>>>>> 
>>>>> bunderepository and karaf obr are missing from the minimal assembly.
>>>>> 
>>>>> Should these 4 jars be in the minimal server?
>>>>> 
>>>>> Other than this and a few config files I haven't sorted through yet the
>>>>> newer assemblies/apache-karaf-minimal appears to me to be the same as the
>>>>> old one.
>>>>> 
>>>>> thanks
>>>>> david jencks
>>>>> 
>>>> 
>>> 
>>> 
>>> --
>>> *Ioannis Canellos*
>>> *
>>> http://iocanel.blogspot.com
>>> 
>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> Apache ServiceMix <http://servicemix.apache.org/>  Committer
>>> *
>> 
>> 
> 
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com


Re: is minimal server complete?

Posted by Guillaume Nodet <gn...@gmail.com>.
No, you're right.
The SSH feature consists of o.a.karaf.shell.ssh, sshd-core and
mina-core bundles as described in the features definition in the older
branch:
    http://svn.apache.org/viewvc/karaf/branches/karaf-2.2.x/assemblies/features/standard/src/main/resources/features.xml?view=markup
The whole SSH thing should be optional, but kinda required when using
the AdminService for creating child instances.

On Fri, Apr 8, 2011 at 01:32, David Jencks <da...@yahoo.com> wrote:
> I might have misunderstood you.  apache-karaf-3.0.0-SNAPSHOT/system/org/apache/karaf/shell/org.apache.karaf.shell.ssh/3.0.0-SNAPSHOT/org.apache.karaf.shell.ssh-3.0.0-SNAPSHOT.jar is present in the trunk "old" minimal assembly.  Based on this I assume it should work.  If it's not supposed to be there at all, I can just remove it from the "new" apache-karaf-minimal assembly and make the dependencies of org.apache.karaf.shell.ssh on sshd-core and mina compile scope rather than provided scope again.
>
> I've been experimenting with trying to get the (new) apache-karaf-minimal assembly to fully start and I can't yet.  I'm wondering if sshd-core is actually optional.
>
> In an assembly missing sshd-core and mina, you get an exception like this trying to start org.apache.karaf.shell.ssh (which I believe you are claiming should start, below)
>  Unresolved constraint in bundle org.apache.karaf.shell.ssh [17]: Unable to resolve 17.0: missing requirement [17.0] package; (&(package=org.apache.sshd)(version>=0.5.0)(!(version>=1.0.0)))
>
> I tried adding this to the Import-Package instructions:
>
>                            org.apache.sshd.*;resolution:=optional,
>                            org.apache.sshd.server.keyprovider;resolution:=optional,
>                            org.apache.sshd.server.jaas;resolution:=optional,
>
>
> in shell/ssh but now although the bundle itself starts the blueprint stuff fails (according to list -t 0).  I don't see any information about why.
>
> This makes me think that sshd-core is currently a required bundle for any ssh functionality.  Am I missing something?
>
> thanks
> david jencks
>
>
> On Apr 5, 2011, at 12:28 AM, Ioannis Canellos wrote:
>
>> Hi David,
>>
>> I have worked on the minimal distribution and the idea behind it was to keep
>> it as minimal as possible (in terms of size).
>> If a user of the minimal distribution wished to use the ssh feature (which
>> was optional in the minimal distro) could always install it (and it
>> transitive dependencies) afterwards.
>>
>> So I will agree with JB that it makes sense that these bundles are missing
>> from the minimal distribution.
>>
>> On Tue, Apr 5, 2011 at 10:21 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:
>>
>>> Hi David,
>>>
>>> Karaf can act as an OBR client. But it's optional. If no OBR are provided,
>>> Karaf doesn't use it.
>>> So, I think it's "normal" that OBR is not part of the minimal distribution.
>>>
>>> For sshd, it's the same. In a minimal distro, the users doesn't expect to
>>> have the SSH server started.
>>>
>>> My 0.02 cents :)
>>>
>>> Regards
>>> JB
>>>
>>>
>>> On 04/05/2011 09:19 AM, David Jencks wrote:
>>>
>>>> I spent some time making the framework kar contents match better with the
>>>> minimal server from the old style karaf assembly and think there might be
>>>> missing bundles.  I'm hoping to convince everyone to move to the new style
>>>> assemblies so I'm not concerned with actually fixing the old one but want to
>>>> make sure that the following jars should be in the minimal server:
>>>>
>>>> Here are the bits of the mvn dependency:tree I think are more correct than
>>>> the old style karaf assembly contents:
>>>>
>>>> [INFO] +-
>>>> org.apache.karaf.shell:org.apache.karaf.shell.ssh:jar:3.0.0-SNAPSHOT:compile
>>>> [INFO] |  \- org.apache.sshd:sshd-core:jar:0.5.0:compile
>>>> [INFO] |     \- org.apache.mina:mina-core:jar:2.0.1:compile
>>>>
>>>> sshd-core and mina-core are missing from the minimal assembly
>>>>
>>>> [INFO] +-
>>>> org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.0-SNAPSHOT:compile
>>>> [INFO] |  +-
>>>> org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.4:compile
>>>> [INFO] |  \-
>>>> org.apache.karaf.shell:org.apache.karaf.shell.obr:jar:3.0.0-SNAPSHOT:compile
>>>>
>>>> bunderepository and karaf obr are missing from the minimal assembly.
>>>>
>>>> Should these 4 jars be in the minimal server?
>>>>
>>>> Other than this and a few config files I haven't sorted through yet the
>>>> newer assemblies/apache-karaf-minimal appears to me to be the same as the
>>>> old one.
>>>>
>>>> thanks
>>>> david jencks
>>>>
>>>
>>
>>
>> --
>> *Ioannis Canellos*
>> *
>> http://iocanel.blogspot.com
>>
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> Apache ServiceMix <http://servicemix.apache.org/>  Committer
>> *
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Re: is minimal server complete?

Posted by David Jencks <da...@yahoo.com>.
I might have misunderstood you.  apache-karaf-3.0.0-SNAPSHOT/system/org/apache/karaf/shell/org.apache.karaf.shell.ssh/3.0.0-SNAPSHOT/org.apache.karaf.shell.ssh-3.0.0-SNAPSHOT.jar is present in the trunk "old" minimal assembly.  Based on this I assume it should work.  If it's not supposed to be there at all, I can just remove it from the "new" apache-karaf-minimal assembly and make the dependencies of org.apache.karaf.shell.ssh on sshd-core and mina compile scope rather than provided scope again.

I've been experimenting with trying to get the (new) apache-karaf-minimal assembly to fully start and I can't yet.  I'm wondering if sshd-core is actually optional.

In an assembly missing sshd-core and mina, you get an exception like this trying to start org.apache.karaf.shell.ssh (which I believe you are claiming should start, below)
 Unresolved constraint in bundle org.apache.karaf.shell.ssh [17]: Unable to resolve 17.0: missing requirement [17.0] package; (&(package=org.apache.sshd)(version>=0.5.0)(!(version>=1.0.0)))

I tried adding this to the Import-Package instructions:

                            org.apache.sshd.*;resolution:=optional,
                            org.apache.sshd.server.keyprovider;resolution:=optional,
                            org.apache.sshd.server.jaas;resolution:=optional,


in shell/ssh but now although the bundle itself starts the blueprint stuff fails (according to list -t 0).  I don't see any information about why.

This makes me think that sshd-core is currently a required bundle for any ssh functionality.  Am I missing something?

thanks
david jencks


On Apr 5, 2011, at 12:28 AM, Ioannis Canellos wrote:

> Hi David,
> 
> I have worked on the minimal distribution and the idea behind it was to keep
> it as minimal as possible (in terms of size).
> If a user of the minimal distribution wished to use the ssh feature (which
> was optional in the minimal distro) could always install it (and it
> transitive dependencies) afterwards.
> 
> So I will agree with JB that it makes sense that these bundles are missing
> from the minimal distribution.
> 
> On Tue, Apr 5, 2011 at 10:21 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:
> 
>> Hi David,
>> 
>> Karaf can act as an OBR client. But it's optional. If no OBR are provided,
>> Karaf doesn't use it.
>> So, I think it's "normal" that OBR is not part of the minimal distribution.
>> 
>> For sshd, it's the same. In a minimal distro, the users doesn't expect to
>> have the SSH server started.
>> 
>> My 0.02 cents :)
>> 
>> Regards
>> JB
>> 
>> 
>> On 04/05/2011 09:19 AM, David Jencks wrote:
>> 
>>> I spent some time making the framework kar contents match better with the
>>> minimal server from the old style karaf assembly and think there might be
>>> missing bundles.  I'm hoping to convince everyone to move to the new style
>>> assemblies so I'm not concerned with actually fixing the old one but want to
>>> make sure that the following jars should be in the minimal server:
>>> 
>>> Here are the bits of the mvn dependency:tree I think are more correct than
>>> the old style karaf assembly contents:
>>> 
>>> [INFO] +-
>>> org.apache.karaf.shell:org.apache.karaf.shell.ssh:jar:3.0.0-SNAPSHOT:compile
>>> [INFO] |  \- org.apache.sshd:sshd-core:jar:0.5.0:compile
>>> [INFO] |     \- org.apache.mina:mina-core:jar:2.0.1:compile
>>> 
>>> sshd-core and mina-core are missing from the minimal assembly
>>> 
>>> [INFO] +-
>>> org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.0-SNAPSHOT:compile
>>> [INFO] |  +-
>>> org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.4:compile
>>> [INFO] |  \-
>>> org.apache.karaf.shell:org.apache.karaf.shell.obr:jar:3.0.0-SNAPSHOT:compile
>>> 
>>> bunderepository and karaf obr are missing from the minimal assembly.
>>> 
>>> Should these 4 jars be in the minimal server?
>>> 
>>> Other than this and a few config files I haven't sorted through yet the
>>> newer assemblies/apache-karaf-minimal appears to me to be the same as the
>>> old one.
>>> 
>>> thanks
>>> david jencks
>>> 
>> 
> 
> 
> -- 
> *Ioannis Canellos*
> *
> http://iocanel.blogspot.com
> 
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> Apache ServiceMix <http://servicemix.apache.org/>  Committer
> *


Re: is minimal server complete?

Posted by Ioannis Canellos <io...@gmail.com>.
Hi David,

I have worked on the minimal distribution and the idea behind it was to keep
it as minimal as possible (in terms of size).
If a user of the minimal distribution wished to use the ssh feature (which
was optional in the minimal distro) could always install it (and it
transitive dependencies) afterwards.

So I will agree with JB that it makes sense that these bundles are missing
from the minimal distribution.

On Tue, Apr 5, 2011 at 10:21 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:

> Hi David,
>
> Karaf can act as an OBR client. But it's optional. If no OBR are provided,
> Karaf doesn't use it.
> So, I think it's "normal" that OBR is not part of the minimal distribution.
>
> For sshd, it's the same. In a minimal distro, the users doesn't expect to
> have the SSH server started.
>
> My 0.02 cents :)
>
> Regards
> JB
>
>
> On 04/05/2011 09:19 AM, David Jencks wrote:
>
>> I spent some time making the framework kar contents match better with the
>> minimal server from the old style karaf assembly and think there might be
>> missing bundles.  I'm hoping to convince everyone to move to the new style
>> assemblies so I'm not concerned with actually fixing the old one but want to
>> make sure that the following jars should be in the minimal server:
>>
>> Here are the bits of the mvn dependency:tree I think are more correct than
>> the old style karaf assembly contents:
>>
>> [INFO] +-
>> org.apache.karaf.shell:org.apache.karaf.shell.ssh:jar:3.0.0-SNAPSHOT:compile
>> [INFO] |  \- org.apache.sshd:sshd-core:jar:0.5.0:compile
>> [INFO] |     \- org.apache.mina:mina-core:jar:2.0.1:compile
>>
>> sshd-core and mina-core are missing from the minimal assembly
>>
>> [INFO] +-
>> org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.0-SNAPSHOT:compile
>> [INFO] |  +-
>> org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.4:compile
>> [INFO] |  \-
>> org.apache.karaf.shell:org.apache.karaf.shell.obr:jar:3.0.0-SNAPSHOT:compile
>>
>> bunderepository and karaf obr are missing from the minimal assembly.
>>
>> Should these 4 jars be in the minimal server?
>>
>> Other than this and a few config files I haven't sorted through yet the
>> newer assemblies/apache-karaf-minimal appears to me to be the same as the
>> old one.
>>
>> thanks
>> david jencks
>>
>


-- 
*Ioannis Canellos*
*
 http://iocanel.blogspot.com

Apache Karaf <http://karaf.apache.org/> Committer & PMC
Apache ServiceMix <http://servicemix.apache.org/>  Committer
*

Re: is minimal server complete?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi David,

Karaf can act as an OBR client. But it's optional. If no OBR are 
provided, Karaf doesn't use it.
So, I think it's "normal" that OBR is not part of the minimal distribution.

For sshd, it's the same. In a minimal distro, the users doesn't expect 
to have the SSH server started.

My 0.02 cents :)

Regards
JB

On 04/05/2011 09:19 AM, David Jencks wrote:
> I spent some time making the framework kar contents match better with the minimal server from the old style karaf assembly and think there might be missing bundles.  I'm hoping to convince everyone to move to the new style assemblies so I'm not concerned with actually fixing the old one but want to make sure that the following jars should be in the minimal server:
>
> Here are the bits of the mvn dependency:tree I think are more correct than the old style karaf assembly contents:
>
> [INFO] +- org.apache.karaf.shell:org.apache.karaf.shell.ssh:jar:3.0.0-SNAPSHOT:compile
> [INFO] |  \- org.apache.sshd:sshd-core:jar:0.5.0:compile
> [INFO] |     \- org.apache.mina:mina-core:jar:2.0.1:compile
>
> sshd-core and mina-core are missing from the minimal assembly
>
> [INFO] +- org.apache.karaf.features:org.apache.karaf.features.core:jar:3.0.0-SNAPSHOT:compile
> [INFO] |  +- org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.4:compile
> [INFO] |  \- org.apache.karaf.shell:org.apache.karaf.shell.obr:jar:3.0.0-SNAPSHOT:compile
>
> bunderepository and karaf obr are missing from the minimal assembly.
>
> Should these 4 jars be in the minimal server?
>
> Other than this and a few config files I haven't sorted through yet the newer assemblies/apache-karaf-minimal appears to me to be the same as the old one.
>
> thanks
> david jencks