You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Allen Lau <al...@gmail.com> on 2009/01/17 03:09:14 UTC

Installing WebConsole using OBR?

I'm trying to install the Felix Web Management Console in Felix 1.4.1 using
the obr client and this is popping up.

-> obr deploy "Apache Felix Web Management Console"
Unsatisfied requirement(s):
---------------------------
   (service=org.osgi.service.http.HttpService)
      Apache Felix Web Management Console
-> ps
START LEVEL 1
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (1.4.1)
[   1] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
[   2] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
[   3] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
[   4] [Resolved   ] [    1] OPS4J Pax Logging - API (1.3.0)
[   5] [Resolved   ] [    1] OSGi R4 Compendium Bundle (4)
[   6] [Active     ] [    1] OPS4J Pax Web - Service (0.5.1)


I already have the Pax Web Service installed, but I guess the
"service=org.osgi.service.http.HttpService" is referring to something else
or is the obr client not equipped to handle the service capability yet?

Thanks,
Allen

Re: Installing WebConsole using OBR?

Posted by Allen Lau <al...@gmail.com>.
Hi Felix,
   Just tried your snapshot, but I'm still having issues with Web Console
1.2.0.

Basically I get the same error:
-> obr deploy "Apache Felix Web Management Console";1.2.0
Unsatisfied requirement(s):
---------------------------
   (service=org.osgi.service.http.HttpService)
      Apache Felix Web Management Console

running services shows:
OPS4J Pax Web - Service (44) provides:
--------------------------------------
org.osgi.service.cm.ManagedService
org.osgi.service.http.HttpService, org.ops4j.pax.web.service.WebContainer

Is the new SNAPSHOT suppose to solve the
(service=org.osgi.service.http.HttpService) issue?

Thanks,
Allen

On Thu, Jan 22, 2009 at 2:49 AM, Felix Meschberger <fm...@gmail.com>wrote:

> Hi Allen,
>
> I habe now fixed two issues in the Bundle Repository bundle, which
> relate to your problems. So if you update to the latest SNAPSHOT version
>  (available from [1]) you should be able to deploy the web console in
> your setup.
>
> Regards
> Felix
>
> [1]
>
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/felix/org.apache.felix.bundlerepository/1.3.0-SNAPSHOT/org.apache.felix.bundlerepository-1.3.0-20090122.082408-2.jar
>
> Allen Lau schrieb:
> > I'm trying to install the Felix Web Management Console in Felix 1.4.1
> using
> > the obr client and this is popping up.
> >
> > -> obr deploy "Apache Felix Web Management Console"
> > Unsatisfied requirement(s):
> > ---------------------------
> >    (service=org.osgi.service.http.HttpService)
> >       Apache Felix Web Management Console
> > -> ps
> > START LEVEL 1
> >    ID   State         Level  Name
> > [   0] [Active     ] [    0] System Bundle (1.4.1)
> > [   1] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
> > [   2] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
> > [   3] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
> > [   4] [Resolved   ] [    1] OPS4J Pax Logging - API (1.3.0)
> > [   5] [Resolved   ] [    1] OSGi R4 Compendium Bundle (4)
> > [   6] [Active     ] [    1] OPS4J Pax Web - Service (0.5.1)
> >
> >
> > I already have the Pax Web Service installed, but I guess the
> > "service=org.osgi.service.http.HttpService" is referring to something
> else
> > or is the obr client not equipped to handle the service capability yet?
> >
> > Thanks,
> > Allen
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Re: Installing WebConsole using OBR?

Posted by Felix Meschberger <fm...@gmail.com>.
Hi Allen,

I habe now fixed two issues in the Bundle Repository bundle, which
relate to your problems. So if you update to the latest SNAPSHOT version
 (available from [1]) you should be able to deploy the web console in
your setup.

Regards
Felix

[1]
http://people.apache.org/repo/m2-snapshot-repository/org/apache/felix/org.apache.felix.bundlerepository/1.3.0-SNAPSHOT/org.apache.felix.bundlerepository-1.3.0-20090122.082408-2.jar

Allen Lau schrieb:
> I'm trying to install the Felix Web Management Console in Felix 1.4.1 using
> the obr client and this is popping up.
> 
> -> obr deploy "Apache Felix Web Management Console"
> Unsatisfied requirement(s):
> ---------------------------
>    (service=org.osgi.service.http.HttpService)
>       Apache Felix Web Management Console
> -> ps
> START LEVEL 1
>    ID   State         Level  Name
> [   0] [Active     ] [    0] System Bundle (1.4.1)
> [   1] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
> [   2] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
> [   3] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
> [   4] [Resolved   ] [    1] OPS4J Pax Logging - API (1.3.0)
> [   5] [Resolved   ] [    1] OSGi R4 Compendium Bundle (4)
> [   6] [Active     ] [    1] OPS4J Pax Web - Service (0.5.1)
> 
> 
> I already have the Pax Web Service installed, but I guess the
> "service=org.osgi.service.http.HttpService" is referring to something else
> or is the obr client not equipped to handle the service capability yet?
> 
> Thanks,
> Allen
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Installing WebConsole using OBR?

Posted by Felix Meschberger <fm...@gmail.com>.
Hi Allen

Allen Lau schrieb:
> Hi Felix,
>   Thanks for explanation.  As you suggested, I think (1) makes sense for the
> short term.
> 
> Although the 1.2.2 release is not available through
> http://felix.apache.org/obr/releases.xml yet, I was able to add it to my
> internal OBR setup and install it without issues.

Autsch ! You got me here ;-) I missed adding it, which I will do
sometime today -- omitting and service requirements for now.

Regards
Felix

> 
> Allen
> 
> On Sat, Jan 17, 2009 at 6:03 AM, Felix Meschberger <fm...@gmail.com>wrote:
> 
>> Hi,
>>
>> The problem is a bit tricky to answer, unfortunately.
>>
>> One part of the problem is, that the management console registration
>> declares, that a HttpService is required (not the API but an actual
>> instance).
>>
>> But the Pax Web - Service, though actually registering a HttpService
>> instance, is not seen by the OBR implementation as providing the service.
>>
>> I see two options: (1) we remove the HttpService requirement in the Web
>> Console entry of the repository and (2) we enhance the OBR implmentation
>> (Apache Felix Bundle Repository) such, that the LocalRepository
>> representing the installed bundles, automatically generates capabilities
>> for registered services.
>>
>> IMHO, (1) is easier to do but probably sub-optimal while (2) takes a bit
>> longer (code change) but is probably the better solution. I would go for
>> (1) in the short-term while implementing (2) to have the correct fix in
>> the medium and long run (release cycle).
>>
>> WDYT ?
>>
>> Regards
>> Felix
>>
>>
>> Allen Lau schrieb:
>>> I'm trying to install the Felix Web Management Console in Felix 1.4.1
>> using
>>> the obr client and this is popping up.
>>>
>>> -> obr deploy "Apache Felix Web Management Console"
>>> Unsatisfied requirement(s):
>>> ---------------------------
>>>    (service=org.osgi.service.http.HttpService)
>>>       Apache Felix Web Management Console
>>> -> ps
>>> START LEVEL 1
>>>    ID   State         Level  Name
>>> [   0] [Active     ] [    0] System Bundle (1.4.1)
>>> [   1] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
>>> [   2] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
>>> [   3] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
>>> [   4] [Resolved   ] [    1] OPS4J Pax Logging - API (1.3.0)
>>> [   5] [Resolved   ] [    1] OSGi R4 Compendium Bundle (4)
>>> [   6] [Active     ] [    1] OPS4J Pax Web - Service (0.5.1)
>>>
>>>
>>> I already have the Pax Web Service installed, but I guess the
>>> "service=org.osgi.service.http.HttpService" is referring to something
>> else
>>> or is the obr client not equipped to handle the service capability yet?
>>>
>>> Thanks,
>>> Allen
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Installing WebConsole using OBR?

Posted by Allen Lau <al...@gmail.com>.
Hi Felix,
  Thanks for explanation.  As you suggested, I think (1) makes sense for the
short term.

Although the 1.2.2 release is not available through
http://felix.apache.org/obr/releases.xml yet, I was able to add it to my
internal OBR setup and install it without issues.

Allen

On Sat, Jan 17, 2009 at 6:03 AM, Felix Meschberger <fm...@gmail.com>wrote:

> Hi,
>
> The problem is a bit tricky to answer, unfortunately.
>
> One part of the problem is, that the management console registration
> declares, that a HttpService is required (not the API but an actual
> instance).
>
> But the Pax Web - Service, though actually registering a HttpService
> instance, is not seen by the OBR implementation as providing the service.
>
> I see two options: (1) we remove the HttpService requirement in the Web
> Console entry of the repository and (2) we enhance the OBR implmentation
> (Apache Felix Bundle Repository) such, that the LocalRepository
> representing the installed bundles, automatically generates capabilities
> for registered services.
>
> IMHO, (1) is easier to do but probably sub-optimal while (2) takes a bit
> longer (code change) but is probably the better solution. I would go for
> (1) in the short-term while implementing (2) to have the correct fix in
> the medium and long run (release cycle).
>
> WDYT ?
>
> Regards
> Felix
>
>
> Allen Lau schrieb:
> > I'm trying to install the Felix Web Management Console in Felix 1.4.1
> using
> > the obr client and this is popping up.
> >
> > -> obr deploy "Apache Felix Web Management Console"
> > Unsatisfied requirement(s):
> > ---------------------------
> >    (service=org.osgi.service.http.HttpService)
> >       Apache Felix Web Management Console
> > -> ps
> > START LEVEL 1
> >    ID   State         Level  Name
> > [   0] [Active     ] [    0] System Bundle (1.4.1)
> > [   1] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
> > [   2] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
> > [   3] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
> > [   4] [Resolved   ] [    1] OPS4J Pax Logging - API (1.3.0)
> > [   5] [Resolved   ] [    1] OSGi R4 Compendium Bundle (4)
> > [   6] [Active     ] [    1] OPS4J Pax Web - Service (0.5.1)
> >
> >
> > I already have the Pax Web Service installed, but I guess the
> > "service=org.osgi.service.http.HttpService" is referring to something
> else
> > or is the obr client not equipped to handle the service capability yet?
> >
> > Thanks,
> > Allen
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Re: Installing WebConsole using OBR?

Posted by Felix Meschberger <fm...@gmail.com>.
Hi,

The problem is a bit tricky to answer, unfortunately.

One part of the problem is, that the management console registration
declares, that a HttpService is required (not the API but an actual
instance).

But the Pax Web - Service, though actually registering a HttpService
instance, is not seen by the OBR implementation as providing the service.

I see two options: (1) we remove the HttpService requirement in the Web
Console entry of the repository and (2) we enhance the OBR implmentation
(Apache Felix Bundle Repository) such, that the LocalRepository
representing the installed bundles, automatically generates capabilities
for registered services.

IMHO, (1) is easier to do but probably sub-optimal while (2) takes a bit
longer (code change) but is probably the better solution. I would go for
(1) in the short-term while implementing (2) to have the correct fix in
the medium and long run (release cycle).

WDYT ?

Regards
Felix


Allen Lau schrieb:
> I'm trying to install the Felix Web Management Console in Felix 1.4.1 using
> the obr client and this is popping up.
> 
> -> obr deploy "Apache Felix Web Management Console"
> Unsatisfied requirement(s):
> ---------------------------
>    (service=org.osgi.service.http.HttpService)
>       Apache Felix Web Management Console
> -> ps
> START LEVEL 1
>    ID   State         Level  Name
> [   0] [Active     ] [    0] System Bundle (1.4.1)
> [   1] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
> [   2] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
> [   3] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
> [   4] [Resolved   ] [    1] OPS4J Pax Logging - API (1.3.0)
> [   5] [Resolved   ] [    1] OSGi R4 Compendium Bundle (4)
> [   6] [Active     ] [    1] OPS4J Pax Web - Service (0.5.1)
> 
> 
> I already have the Pax Web Service installed, but I guess the
> "service=org.osgi.service.http.HttpService" is referring to something else
> or is the obr client not equipped to handle the service capability yet?
> 
> Thanks,
> Allen
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org