Hi Bengt

Just out of curiosity: What build of  the Web Console do you have which exports 
the o.a.f.webconsole package at version 4.0 ? 

We have a Web Console 4.0 bundle version, but that still exports the API at 
3.1.2 because it was not modified for the 4.0 bundle release.

Does Karaf have its own Web Console build, which exposes the wrong API version ?

Hmm, so it seems: Looking at [1] they in fact export just the package without 
an explicit version (bad habit) which causes newer bundle plugins to use the 
bundle version as the package export version, which is definitely wrong in this 
case (actually, I content it is wrong in most cases; except that you have at 
least an export version; but that is a different story).

So, in effect, either use the plain Felix Web Console or have the Karaf project 
fix their exports.

Regards
Felix

[1] https://svn.apache.org/repos/asf/karaf/trunk/webconsole/console/pom.xml

Am 30.05.2013 um 09:16 schrieb Bengt Rodehav:

> I ended up using Geronimo's json which solved that problem. However, I
> still can't get it to work. Now I get
> 
> ERROR: Bundle org.apache.felix.ipojo.webconsole [98] Error starting
> mvn:org.apache.felix/org.apache.felix.ipojo.webconsole/1.7.0
> (org.osgi.framework.BundleException: Unresolved constraint in bundle
> org.apache.felix.ipojo.webconsole [98]: Unable to resolve 98.0: missing
> requirement [98.0] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.1.0)(!(version>=4.0.0))))org.osgi.framework.BundleException:
> Unresolved constraint in bundle org.apache.felix.ipojo.webconsole [98]:
> Unable to resolve 98.0: missing requirement [98.0] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.1.0)(!(version>=4.0.0)))
>        at
> org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)
>        at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)
>        at
> org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
>        at
> org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
>        at java.lang.Thread.run(Thread.java:662)
> 
> I use Karaf 2.3.1 which comes with the bundle
> "org.apache.karaf.webconsole.console"
> - which I have always used. It exports the package
> org.apache.felix.webconsole version 4.0.0.
> 
> Looking at the stacktrace it seems like the new iPojo web console plugin
> does not work with version 4.0.0.  How did this happen? I guess this means
> I cannot use the new iPojo version with Karaf 2.3.1. Or am I missing
> something?
> 
> /Bengt
> 
> 
> 
> 2013/5/29 Bengt Rodehav <[email protected]>
> 
>> Thanks Clement,
>> 
>> /Bengt
>> 
>> 
>> 2013/5/29 Clement Escoffier <[email protected]>
>> 
>>> Hi,
>>> 
>>> You can use this bundle:
>>> 
>>> http://maven.ow2.org/maven2/org/json/org.ow2.chameleon.commons.json/20090911-0002/org.ow2.chameleon.commons.json-20090911-0002.jar
>>> 
>>> Regards,
>>> 
>>> Clement
>>> 
>>> 
>>> On 29 mai 2013, at 15:57, Bengt Rodehav <[email protected]> wrote:
>>> 
>>>> I just upgraded to the latest (recently released) iPOJO bundles. After
>>> the
>>>> upgrade I get the following exception:
>>>> 
>>>> java.lang.Exception: Could not start bundle
>>>> mvn:org.apache.felix/org.apache.felix.ipojo.webconsole/1.7.0 in
>>> feature(s)
>>>> seco-webconsole-1.7-SNAPSHOT: Unresolved constraint in bundle
>>>> org.apache.felix.ipojo.webconsole [98]: Unable to resolve 98.0: missing
>>>> requirement [98.0] osgi.wiring.package; (osgi.wiring.package=org.json)
>>>> at
>>>> 
>>> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:482)[40:org.apache.karaf.features.core:2.3.1]
>>>> at
>>>> 
>>> org.apache.karaf.features.internal.FeaturesServiceImpl$2.run(FeaturesServiceImpl.java:1150)[40:org.apache.karaf.features.core:2.3.1]
>>>> Caused by: org.osgi.framework.BundleException: Unresolved constraint in
>>>> bundle org.apache.felix.ipojo.webconsole [98]: Unable to resolve 98.0:
>>>> missing requirement [98.0] osgi.wiring.package;
>>>> (osgi.wiring.package=org.json)
>>>> at
>>>> 
>>> org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3826)[org.apache.felix.framework-4.0.3.jar:]
>>>> at
>>>> 
>>> org.apache.felix.framework.Felix.startBundle(Felix.java:1868)[org.apache.felix.framework-4.0.3.jar:]
>>>> at
>>>> 
>>> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)[org.apache.felix.framework-4.0.3.jar:]
>>>> at
>>>> 
>>> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:931)[org.apache.felix.framework-4.0.3.jar:]
>>>> at
>>>> 
>>> org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:479)[40:org.apache.karaf.features.core:2.3.1]
>>>> ... 1 more
>>>> 
>>>> I'm running under Karaf 2.3.1.
>>>> 
>>>> Is this a newly added dependency for the iPOJO web console? What bundle
>>> do
>>>> you recommend me to install to satisfy this dependency?
>>>> 
>>>> /Bengt
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>> 
>>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to