You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Kevin Hein (Commented) (JIRA)" <ji...@apache.org> on 2012/03/12 01:46:38 UTC

[jira] [Commented] (KARAF-1008) WebConsole raise NCDF on service page

    [ https://issues.apache.org/jira/browse/KARAF-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227279#comment-13227279 ] 

Kevin Hein commented on KARAF-1008:
-----------------------------------


Tracked this down a bit further.  

Had to add the following bundles for the web console to operate without the warnings (added these for the necessary classes and dependency resolutions).

  <feature name='webconsole-missing' version='2.2.5'>
    <bundle>mvn:org.apache.felix/org.apache.felix.dependencymanager/3.0.0</bundle>
    <bundle>mvn:org.apache.felix/org.apache.felix.scr/1.6.0</bundle>
    <bundle>mvn:org.apache.felix/org.apache.felix.eventadmin/1.2.14</bundle>
    <bundle>mvn:org.apache.felix/org.apache.felix.deploymentadmin/0.9.0</bundle>
  </feature>

The 0.9.0 org.apache.felix.deploymentadmin bundle also needed a 'correction'.  It provides the org.osgi.service.deploymentademin.DeploymentException class, however the bundle doesn't correctly resolve to itself (by design?).  The current exports

Export-Package: org.osgi.service.deploymentadmin;uses:="org.osgi.framework";version="1.0",
                org.osgi.service.deploymentadmin.spi;uses:="org.osgi.framework,org.osgi.service.deploymentadmin";version="1.1"

but has a required import of:

Import-Package: org.osgi.service.deploymentadmin;version="[1.1,2)",
                org.osgi.service.deploymentadmin.spi;version="[1.0,2)"

The bundle can't resolve to itself.  As a temporary fix for my situation I had to change that bundle so that it would resolve to itself.  (it was importing deploymentadmin 1.1 but only exporting deploymentadmin 1.0).

Hope this helps.  (note:  couldn't find a more up to date version of the deploymentadmin jar.  but saw missing indications of a 1.1 and 1.1.0 bundle in other repositories)


                
> WebConsole raise NCDF on service page
> -------------------------------------
>
>                 Key: KARAF-1008
>                 URL: https://issues.apache.org/jira/browse/KARAF-1008
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-webconsole
>    Affects Versions: 3.0.0
>            Reporter: Jean-Baptiste Onofré
>             Fix For: 3.0.0
>
>
> In the Karaf webconsole, when going on the service tab, we can see:
> karaf@root> 2011-11-11 15:35:25.563:WARN:/:org.ops4j.pax.web.service.spi.model.ServletModel-7: Failed to instantiate plugin org.apache.felix.webconsole.internal.deppack.DepPackServlet
> java.lang.NoClassDefFoundError: org/osgi/service/deploymentadmin/DeploymentException
>         at java.lang.Class.getDeclaredConstructors0(Native Method)
>         at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
>         at java.lang.Class.getConstructor0(Class.java:2699)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira