osdir.com
mailing list archive

Subject: Re: webconsole and pax - msg#00159

List: users-felix-apache

Date: Prev Next Index Thread: Prev Next Index
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 <henri.gomez@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>



--
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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: Default value for <Private-Package> while using maven bundle plugin

2009/2/17 Sahoo <Sahoo@xxxxxxx> > Currently the default value of <Private-Package> is empty. Should it by > default not include all the classes of the current project? > hehe, see http://issues.apache.org/jira/browse/FELIX-912 The latest 1.5.0-SNAPSHOT now sets the default Export-Package / Private-Package based on the actual project source (if you set _either_ Export-Package or Private-Package then these defaults are not used). The distribution of packages is as follows: all packages with source files (ie. *.java) in the current project are exported, except for packages with "impl" or "internal" or the default package (".") which are kept as private. The one remaining question is what to do if only Export-Package is set... we could set Private-Package based on the actual project source which would guarantee all your local classes will be in the bundle, but what if you don't actually want these packages included... Any thoughts on this last point? Thanks, > Sahoo > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > -- Cheers, Stuart

Next Message by Date: click to view message preview

Re: Default value for <Private-Package> while using maven bundle plugin

On Mon, Feb 16, 2009 at 7:21 PM, Stuart McCulloch <mcculls@xxxxxxxxx> wrote: > 2009/2/17 Sahoo <Sahoo@xxxxxxx> > >> Currently the default value of <Private-Package> is empty. Should it by >> default not include all the classes of the current project? >> > > hehe, see http://issues.apache.org/jira/browse/FELIX-912 > > The latest 1.5.0-SNAPSHOT now sets the default Export-Package / > Private-Package based on the actual project source (if you set _either_ > Export-Package or Private-Package then these defaults are not used). > > The distribution of packages is as follows: all packages with source files > (ie. *.java) in the current project are exported, except for packages with > "impl" or "internal" or the default package (".") which are kept as private. > > The one remaining question is what to do if only Export-Package is set... we > could set Private-Package based on the actual project source which would > guarantee all your local classes will be in the bundle, but what if you > don't actually want these packages included... > > Any thoughts on this last point? This default behavior seems just fine to me. Maybe just give a warning that the default behavior is used as Export-Package is set but Private-Package is not. > > Thanks, >> Sahoo >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx >> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx >> > > -- > Cheers, Stuart > -- 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@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

Previous Message by Thread: click to view message preview

Re: webconsole and pax

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 <henri.gomez@xxxxxxxxx>: > 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@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

Next Message by Thread: click to view message preview

Re: webconsole and pax

Question. What's the differences between Felix HTTP service (powered by jetty) and PAX ? 2009/2/16 Alin Dreghiciu <adreghiciu@xxxxxxxxx>: > 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 <henri.gomez@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx >> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx >> >> > > > > -- > 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@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by