You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Henri Gomez <he...@gmail.com> on 2009/02/16 17:16:46 UTC

webconsole and pax

Hi to all,

I tried to use webconsole (1.2.2) with felix 1.4.1.

I follow the documentation and grabbed pax runner 0.5.2 and tried to start it :

-> install file:bundle/pax-web-service-0.5.2.jar
Bundle ID: 11
-> start 11
-> org.osgi.framework.BundleException: Unresolved constraint in bundle
11: package; (&(package=org.osgi.service.cm)(version>=1.0.0)(!(version>=2.0.0)))

I built the latest http-server from trunk :

->install file:bundle/org.apache.felix.http.jetty-0.9.0-SNAPSHOT.jar
Bundle ID: 12
->start 12
org.osgi.framework.BundleException: Unresolved constraint in bundle
12: package; (&(package=org.osgi.service.log)(version>=1.3.0))

Any idea what could be the problem ?

Here is the felix config file :

org.osgi.framework.storage=${felix.cache.rootdir}/cache

felix.auto.start.1= \
 file:bundle/org.apache.felix.shell-1.0.2.jar \
 file:bundle/org.apache.felix.shell.tui-1.0.2.jar \
 file:bundle/org.apache.felix.bundlerepository-1.2.1.jar

felix.log.level=1
org.osgi.service.http.port=8080
osgi.shell.telnet=on
obr.repository.url=http://felix.apache.org/obr/releases.xml

# IP Address on which the remote shell is accessible (since 1.0.4).
osgi.shell.telnet.ip=127.0.0.1
# Port on which the remote shell is accessible.
osgi.shell.telnet.port=6666
# The maximum number of simultaneous connections.
osgi.shell.telnet.maxconn=2
osgi.shell.telnet.socketTimeout=0


Regards

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


Re: webconsole and pax

Posted by Henri Gomez <he...@gmail.com>.
I built and added Apache Felix Log Service (0.9.0.SNAPSHOT) and it
works with HTTP Service (0.9.0.SNAPSHOT)

Sorry for the noise

2009/2/16 Henri Gomez <he...@gmail.com>:
> Hi to all,
>
> I tried to use webconsole (1.2.2) with felix 1.4.1.
>
> I follow the documentation and grabbed pax runner 0.5.2 and tried to start it :
>
> -> install file:bundle/pax-web-service-0.5.2.jar
> Bundle ID: 11
> -> start 11
> -> org.osgi.framework.BundleException: Unresolved constraint in bundle
> 11: package; (&(package=org.osgi.service.cm)(version>=1.0.0)(!(version>=2.0.0)))
>
> I built the latest http-server from trunk :
>
> ->install file:bundle/org.apache.felix.http.jetty-0.9.0-SNAPSHOT.jar
> Bundle ID: 12
> ->start 12
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> 12: package; (&(package=org.osgi.service.log)(version>=1.3.0))
>
> Any idea what could be the problem ?
>
> Here is the felix config file :
>
> org.osgi.framework.storage=${felix.cache.rootdir}/cache
>
> felix.auto.start.1= \
>  file:bundle/org.apache.felix.shell-1.0.2.jar \
>  file:bundle/org.apache.felix.shell.tui-1.0.2.jar \
>  file:bundle/org.apache.felix.bundlerepository-1.2.1.jar
>
> felix.log.level=1
> org.osgi.service.http.port=8080
> osgi.shell.telnet=on
> obr.repository.url=http://felix.apache.org/obr/releases.xml
>
> # IP Address on which the remote shell is accessible (since 1.0.4).
> osgi.shell.telnet.ip=127.0.0.1
> # Port on which the remote shell is accessible.
> osgi.shell.telnet.port=6666
> # The maximum number of simultaneous connections.
> osgi.shell.telnet.maxconn=2
> osgi.shell.telnet.socketTimeout=0
>
>
> Regards
>

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


Re: webconsole and pax

Posted by Henri Gomez <he...@gmail.com>.
> Pax implements the specs for Http Service (as Felix implementation)
> and adds some extensions that you may find them here:
> http://wiki.ops4j.org//x/uABN
> Problem is that if you use them you will be stuck with Pax Web as
> those extensions are not standard for Http Service implementations.

Good resume.

So I'd better stay with strict OSGI Http Service :)

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


Re: webconsole and pax

Posted by Alin Dreghiciu <ad...@gmail.com>.
Pax implements the specs for Http Service (as Felix implementation)
and adds some extensions that you may find them here:
http://wiki.ops4j.org//x/uABN
Problem is that if you use them you will be stuck with Pax Web as
those extensions are not standard for Http Service implementations.

On Tue, Feb 17, 2009 at 4:48 PM, Henri Gomez <he...@gmail.com> wrote:
>> I thin that in this case (webconsole) there is no difference which one
>> you use. It just matters that is an OSGi Http Service implementation.
>>
>> On Mon, Feb 16, 2009 at 10:01 PM, Henri Gomez <he...@gmail.com> wrote:
>>> Question.
>>>
>>> What's the differences between Felix HTTP service (powered by jetty) and PAX ?
>
> I'm interested about difference in general case
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>



-- 
Alin Dreghiciu
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org - New Energy for Java - Domain Driven Development.
http://www.codedragons.com - New Energy for Projects - Great People
working on Great Projects at Great Places

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


Re: webconsole and pax

Posted by Henri Gomez <he...@gmail.com>.
> I thin that in this case (webconsole) there is no difference which one
> you use. It just matters that is an OSGi Http Service implementation.
>
> On Mon, Feb 16, 2009 at 10:01 PM, Henri Gomez <he...@gmail.com> wrote:
>> Question.
>>
>> What's the differences between Felix HTTP service (powered by jetty) and PAX ?

I'm interested about difference in general case

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


Re: webconsole and pax

Posted by Alin Dreghiciu <ad...@gmail.com>.
I thin that in this case (webconsole) there is no difference which one
you use. It just matters that is an OSGi Http Service implementation.

On Mon, Feb 16, 2009 at 10:01 PM, Henri Gomez <he...@gmail.com> wrote:
> Question.
>
> What's the differences between Felix HTTP service (powered by jetty) and PAX ?
>
>
> 2009/2/16 Alin Dreghiciu <ad...@gmail.com>:
>> Pax Web Service requires that some bundle exports the
>> org.osgi.service.cm package  = Configuration Admin. You do not need an
>> implementation but you need a bundle to exports that package. You can
>> find a bundle that exports that package as either:
>> * as part of Felix implementation of config admin service:
>> http://repo2.maven.org/maven2/org/apache/felix/org.apache.felix.configadmin/1.0.10/org.apache.felix.configadmin-1.0.10.jar
>> * OSGi Alliance compendium bundle that you can find in
>> http://repository.ops4j.org/maven2/org/osgi/org.osgi.compendium (take
>> the version you want, but I suppose that
>> http://repository.ops4j.org/maven2/org/osgi/org.osgi.compendium/4.1.0/org.osgi.compendium-4.1.0.jar
>> will be just fine).
>>
>> If you go for the second option then you will only be able to use the
>> configuration properties set via system properties as in your felix
>> config file. If you go for the first option you can then use the
>> configuration admin to set up pax web properties.
>>
>> HTH,
>> Alin
>>
>> On Mon, Feb 16, 2009 at 5:16 PM, Henri Gomez <he...@gmail.com> wrote:
>>> Hi to all,
>>>
>>> I tried to use webconsole (1.2.2) with felix 1.4.1.
>>>
>>> I follow the documentation and grabbed pax runner 0.5.2 and tried to start it :
>>>
>>> -> install file:bundle/pax-web-service-0.5.2.jar
>>> Bundle ID: 11
>>> -> start 11
>>> -> org.osgi.framework.BundleException: Unresolved constraint in bundle
>>> 11: package; (&(package=org.osgi.service.cm)(version>=1.0.0)(!(version>=2.0.0)))
>>>
>>> I built the latest http-server from trunk :
>>>
>>> ->install file:bundle/org.apache.felix.http.jetty-0.9.0-SNAPSHOT.jar
>>> Bundle ID: 12
>>> ->start 12
>>> org.osgi.framework.BundleException: Unresolved constraint in bundle
>>> 12: package; (&(package=org.osgi.service.log)(version>=1.3.0))
>>>
>>> Any idea what could be the problem ?
>>>
>>> Here is the felix config file :
>>>
>>> org.osgi.framework.storage=${felix.cache.rootdir}/cache
>>>
>>> felix.auto.start.1= \
>>>  file:bundle/org.apache.felix.shell-1.0.2.jar \
>>>  file:bundle/org.apache.felix.shell.tui-1.0.2.jar \
>>>  file:bundle/org.apache.felix.bundlerepository-1.2.1.jar
>>>
>>> felix.log.level=1
>>> org.osgi.service.http.port=8080
>>> osgi.shell.telnet=on
>>> obr.repository.url=http://felix.apache.org/obr/releases.xml
>>>
>>> # IP Address on which the remote shell is accessible (since 1.0.4).
>>> osgi.shell.telnet.ip=127.0.0.1
>>> # Port on which the remote shell is accessible.
>>> osgi.shell.telnet.port=6666
>>> # The maximum number of simultaneous connections.
>>> osgi.shell.telnet.maxconn=2
>>> osgi.shell.telnet.socketTimeout=0
>>>
>>>
>>> Regards
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Alin Dreghiciu
>> http://www.ops4j.org - New Energy for OSS Communities - Open
>> Participation Software.
>> http://www.qi4j.org - New Energy for Java - Domain Driven Development.
>> http://www.codedragons.com - New Energy for Projects - Great People
>> working on Great Projects at Great Places
>>
>> ---------------------------------------------------------------------
>> 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
>
>



-- 
Alin Dreghiciu
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org - New Energy for Java - Domain Driven Development.
http://www.codedragons.com - New Energy for Projects - Great People
working on Great Projects at Great Places
Sent from: Amsterdam Nh Netherlands.

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


Re: webconsole and pax

Posted by Henri Gomez <he...@gmail.com>.
Question.

What's the differences between Felix HTTP service (powered by jetty) and PAX ?


2009/2/16 Alin Dreghiciu <ad...@gmail.com>:
> Pax Web Service requires that some bundle exports the
> org.osgi.service.cm package  = Configuration Admin. You do not need an
> implementation but you need a bundle to exports that package. You can
> find a bundle that exports that package as either:
> * as part of Felix implementation of config admin service:
> http://repo2.maven.org/maven2/org/apache/felix/org.apache.felix.configadmin/1.0.10/org.apache.felix.configadmin-1.0.10.jar
> * OSGi Alliance compendium bundle that you can find in
> http://repository.ops4j.org/maven2/org/osgi/org.osgi.compendium (take
> the version you want, but I suppose that
> http://repository.ops4j.org/maven2/org/osgi/org.osgi.compendium/4.1.0/org.osgi.compendium-4.1.0.jar
> will be just fine).
>
> If you go for the second option then you will only be able to use the
> configuration properties set via system properties as in your felix
> config file. If you go for the first option you can then use the
> configuration admin to set up pax web properties.
>
> HTH,
> Alin
>
> On Mon, Feb 16, 2009 at 5:16 PM, Henri Gomez <he...@gmail.com> wrote:
>> Hi to all,
>>
>> I tried to use webconsole (1.2.2) with felix 1.4.1.
>>
>> I follow the documentation and grabbed pax runner 0.5.2 and tried to start it :
>>
>> -> install file:bundle/pax-web-service-0.5.2.jar
>> Bundle ID: 11
>> -> start 11
>> -> org.osgi.framework.BundleException: Unresolved constraint in bundle
>> 11: package; (&(package=org.osgi.service.cm)(version>=1.0.0)(!(version>=2.0.0)))
>>
>> I built the latest http-server from trunk :
>>
>> ->install file:bundle/org.apache.felix.http.jetty-0.9.0-SNAPSHOT.jar
>> Bundle ID: 12
>> ->start 12
>> org.osgi.framework.BundleException: Unresolved constraint in bundle
>> 12: package; (&(package=org.osgi.service.log)(version>=1.3.0))
>>
>> Any idea what could be the problem ?
>>
>> Here is the felix config file :
>>
>> org.osgi.framework.storage=${felix.cache.rootdir}/cache
>>
>> felix.auto.start.1= \
>>  file:bundle/org.apache.felix.shell-1.0.2.jar \
>>  file:bundle/org.apache.felix.shell.tui-1.0.2.jar \
>>  file:bundle/org.apache.felix.bundlerepository-1.2.1.jar
>>
>> felix.log.level=1
>> org.osgi.service.http.port=8080
>> osgi.shell.telnet=on
>> obr.repository.url=http://felix.apache.org/obr/releases.xml
>>
>> # IP Address on which the remote shell is accessible (since 1.0.4).
>> osgi.shell.telnet.ip=127.0.0.1
>> # Port on which the remote shell is accessible.
>> osgi.shell.telnet.port=6666
>> # The maximum number of simultaneous connections.
>> osgi.shell.telnet.maxconn=2
>> osgi.shell.telnet.socketTimeout=0
>>
>>
>> Regards
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>
>
>
> --
> Alin Dreghiciu
> http://www.ops4j.org - New Energy for OSS Communities - Open
> Participation Software.
> http://www.qi4j.org - New Energy for Java - Domain Driven Development.
> http://www.codedragons.com - New Energy for Projects - Great People
> working on Great Projects at Great Places
>
> ---------------------------------------------------------------------
> 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: webconsole and pax

Posted by Alin Dreghiciu <ad...@gmail.com>.
Pax Web Service requires that some bundle exports the
org.osgi.service.cm package  = Configuration Admin. You do not need an
implementation but you need a bundle to exports that package. You can
find a bundle that exports that package as either:
* as part of Felix implementation of config admin service:
http://repo2.maven.org/maven2/org/apache/felix/org.apache.felix.configadmin/1.0.10/org.apache.felix.configadmin-1.0.10.jar
* OSGi Alliance compendium bundle that you can find in
http://repository.ops4j.org/maven2/org/osgi/org.osgi.compendium (take
the version you want, but I suppose that
http://repository.ops4j.org/maven2/org/osgi/org.osgi.compendium/4.1.0/org.osgi.compendium-4.1.0.jar
will be just fine).

If you go for the second option then you will only be able to use the
configuration properties set via system properties as in your felix
config file. If you go for the first option you can then use the
configuration admin to set up pax web properties.

HTH,
Alin

On Mon, Feb 16, 2009 at 5:16 PM, Henri Gomez <he...@gmail.com> wrote:
> Hi to all,
>
> I tried to use webconsole (1.2.2) with felix 1.4.1.
>
> I follow the documentation and grabbed pax runner 0.5.2 and tried to start it :
>
> -> install file:bundle/pax-web-service-0.5.2.jar
> Bundle ID: 11
> -> start 11
> -> org.osgi.framework.BundleException: Unresolved constraint in bundle
> 11: package; (&(package=org.osgi.service.cm)(version>=1.0.0)(!(version>=2.0.0)))
>
> I built the latest http-server from trunk :
>
> ->install file:bundle/org.apache.felix.http.jetty-0.9.0-SNAPSHOT.jar
> Bundle ID: 12
> ->start 12
> org.osgi.framework.BundleException: Unresolved constraint in bundle
> 12: package; (&(package=org.osgi.service.log)(version>=1.3.0))
>
> Any idea what could be the problem ?
>
> Here is the felix config file :
>
> org.osgi.framework.storage=${felix.cache.rootdir}/cache
>
> felix.auto.start.1= \
>  file:bundle/org.apache.felix.shell-1.0.2.jar \
>  file:bundle/org.apache.felix.shell.tui-1.0.2.jar \
>  file:bundle/org.apache.felix.bundlerepository-1.2.1.jar
>
> felix.log.level=1
> org.osgi.service.http.port=8080
> osgi.shell.telnet=on
> obr.repository.url=http://felix.apache.org/obr/releases.xml
>
> # IP Address on which the remote shell is accessible (since 1.0.4).
> osgi.shell.telnet.ip=127.0.0.1
> # Port on which the remote shell is accessible.
> osgi.shell.telnet.port=6666
> # The maximum number of simultaneous connections.
> osgi.shell.telnet.maxconn=2
> osgi.shell.telnet.socketTimeout=0
>
>
> Regards
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>



-- 
Alin Dreghiciu
http://www.ops4j.org - New Energy for OSS Communities - Open
Participation Software.
http://www.qi4j.org - New Energy for Java - Domain Driven Development.
http://www.codedragons.com - New Energy for Projects - Great People
working on Great Projects at Great Places

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