felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-3947) ClassDefNotFoundError in Inventory bundle setup if Servlet API cannot be wired
Date Mon, 04 Mar 2013 08:19:12 GMT

     [ https://issues.apache.org/jira/browse/FELIX-3947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Felix Meschberger resolved FELIX-3947.
--------------------------------------

    Resolution: Fixed

Fixed in Rev. 1452205

* Move Web Console Plugin registration from DefaultWebConsolePlugin class (static method with
DefaultWebConsolePlugin creation) to InventoryPrinterManagerImpl
* Define constants for the DefaultWebConsolePlugin in ConsoleConstants to prevent loading
the class

                
> ClassDefNotFoundError in Inventory bundle setup if Servlet API cannot be wired
> ------------------------------------------------------------------------------
>
>                 Key: FELIX-3947
>                 URL: https://issues.apache.org/jira/browse/FELIX-3947
>             Project: Felix
>          Issue Type: Bug
>          Components: Inventory
>    Affects Versions: inventory-1.0.0
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: inventory-1.0.0
>
>
> If the Servlet API cannot be wired to the Inventory bundle because it is missing, the
bundle starts but the Activator throws a ClassDefNotFoundError because the Web Console plugin
service cannot be created and registered.
> It makes sense to dynamically bind the Servlet API to not prevent this bundle from starting.
But then the Web Console plugin class must not be loaded to register the service factory service.
Otherwise the API is still "statically" required and the bundle fails to properly start if
not available.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message